STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Friends
stapl::member_accessor< Selector, OptionalAccessor > Class Template Reference

Accessor used to reference struct/class member through the struct/class Accessor. More...

Public Member Functions

 member_accessor (accessor_type const &acc, Selector const &s=Selector())
 
template<typename F >
void apply_set (F const &f) const
 
template<typename F >
F::result_type apply_get (F const &f) const
 
value_type read (void) const
 
template<typename U >
void write (U const &value) 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
 
value_type & ref () const
 
bool is_null (void) const
 
bool is_local (void) const
 

Public Types

using value_type = typename Selector::result_type
 
using property_reference = void
 Allow proxies to compares containing graph vertex to be properly constructed (not accessed).
 
using const_property_reference = void
 Allow proxies to compares containing graph vertex to be properly constructed (not accessed).
 

Friends

class accessor_core_access
 

Detailed Description

template<typename Selector, typename... OptionalAccessor>
class stapl::member_accessor< Selector, OptionalAccessor >

Accessor used to reference struct/class member through the struct/class Accessor.

This accessor uses a parent accessor to forward the method invocations, encapsulating the member's method invocation before it is forwarded.

Template Parameters
TType of data accessed.
SelectorType of functor to get/set the referenced data.
OptionalAccessorType of accessor used to forward the invocation requests. If not provided, the accessor type must be reflected in Selector.

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