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::detail::index_accessor< View > Class Template Reference

Accessor used to access the element referenced for the given index in the specified view. More...

Public Member Functions

bool is_null (void) const
 
 index_accessor (null_reference const &)
 
 index_accessor (index_accessor const &other)
 
 index_accessor (View *view, index_type index)
 
 index_accessor (const View *view, index_type const &index)
 
 index_accessor (View const &view, index_type const &index)
 
template<typename F >
F::result_type apply_get (F const &f) const
 
template<typename F >
void apply_set (F const &f) const
 
template<typename T >
void write (const T &val) const
 
value_type read () const
 
template<typename Class , typename... Args>
void invoke (void(Class::*const pmf)(Args...), typename std::decay< Args >::type const &... args) const
 
template<typename Class , typename Rtn , typename... Args>
Rtn invoke (Rtn(Class::*const pmf)(Args...), typename std::decay< Args >::type const &... args) const
 
template<typename Class , typename Rtn , typename... Args>
Rtn const_invoke (Rtn(Class::*const pmf)(Args...) const, typename std::decay< Args >::type const &... args) const
 
index_type index (void) const
 

Public Types

typedef view_traits< View >::index_type index_type
 
typedef view_traits< View >::container container
 
typedef view_traits< View >::value_type value_type
 
typedef view_traits< View >::map_function::gid_type gid_type
 

Protected Attributes

container * m_container
 
gid_type m_gid
 
index_type m_index
 

Friends

class accessor_core_access
 

Detailed Description

template<typename View>
class stapl::detail::index_accessor< View >

Accessor used to access the element referenced for the given index in the specified view.

The internal representation keeps a reference to the view's container and the referenced index.


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