STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Attributes | Friends
stapl::const_container_accessor< Container > Class Template Reference

Const_accessor for global proxies over pContainers. More...

Public Member Functions

bool is_null (void) const
 Returns whether or not this is a null accessor.
 
 const_container_accessor (void)
 Construct a const_accessor for a null reference.
 
 const_container_accessor (null_reference const &)
 Construct a const_accessor for a null reference.
 
 const_container_accessor (const_container_accessor const &other)
 
 const_container_accessor (container_type const *container, index_type const &index)
 Construct a global const_accessor with the container and index. More...
 
index_type index (void) const
 Return the index of the reference.
 
bool is_local (void) const
 Return whether or not this is a local or remote reference.
 
value_type read (void) const
 Read the reference by returning a copy of the value in the container at the index.
 
value_type ref (void) const
 Return a reference by returning a copy of the value in the container at the index.
 
template<typename F >
boost::result_of< F(value_type)>::type apply_get (F const &f) const
 Applies an arbitrary functor to the reference element and returns the result. More...
 
void write (U const &value) const
 
void invoke (void(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const
 
Rtn invoke (Rtn(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const
 
Rtn const_invoke (Rtn(Class::*const memberFuncPtr)(Args...) const, typename std::decay< Args >::type const &... args) const
 

Public Types

typedef Container container_type
 
typedef container_traits< Container >::gid_type index_type
 
typedef container_traits< Container >::value_type value_type
 

Protected Attributes

container_type const * m_container
 
index_type m_index
 

Friends

template<typename Derived , typename A , typename C , typename D >
class iterator_facade
 
class accessor_core_access
 

Detailed Description

template<typename Container>
class stapl::const_container_accessor< Container >

Const_accessor for global proxies over pContainers.

Template Parameters
ContainerType of the container
See also
proxy

Constructor & Destructor Documentation

◆ const_container_accessor()

template<typename Container >
stapl::const_container_accessor< Container >::const_container_accessor ( container_type const *  container,
index_type const &  index 
)

Construct a global const_accessor with the container and index.

Parameters
containerPointer to the container
indexIndex of the reference

Member Function Documentation

◆ apply_get()

template<typename Container >
template<typename F >
boost::result_of<F(value_type)>::type stapl::const_container_accessor< Container >::apply_get ( F const &  f) const

Applies an arbitrary functor to the reference element and returns the result.

Parameters
fFunctor to apply. The function object must export a nested trait for result_type and its function operator must be declared const.
Returns
Result of applying the functor to the element

The documentation for this class was generated from the following file: