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

Defines a read only accessor that references a local element. More...

Public Member Functions

 cref_accessor (T const &t_)
 
 cref_accessor (null_reference const &)
 
 cref_accessor (cref_accessor const &other)
 
bool is_null () const
 
read () const
 
template<typename Class , typename Arg1 >
void invoke (void(Class::*memberFuncPtr)(Arg1), typename invoke_arg< Arg1 >::type const &arg1) const
 
template<typename Class , typename Arg1 , typename Arg2 >
void invoke (void(Class::*memberFuncPtr)(Arg1, Arg2), const typename invoke_arg< Arg1 >::type &arg1, const typename invoke_arg< Arg2 >::type &arg2) const
 
template<typename Class , typename Rtn >
Rtn invoke (Rtn(Class::*memberFuncPtr)(void)) const
 
template<typename Class , typename Rtn , typename Arg1 , typename Arg2 >
Rtn invoke (Rtn(Class::*memberFuncPtr)(Arg1, Arg2), typename invoke_arg< Arg1 >::type const &arg1, typename invoke_arg< Arg2 >::type const &arg2) const
 
template<typename Class , typename Rtn >
Rtn const_invoke (Rtn(Class::*const memberFuncPtr)(void) const) const
 

Public Types

typedef T value_type
 

Public Attributes

const T * t
 

Detailed Description

template<typename T>
class stapl::cref_accessor< T >

Defines a read only accessor that references a local element.

Member Function Documentation

◆ invoke() [1/2]

template<typename T >
template<typename Class , typename Arg1 >
void stapl::cref_accessor< T >::invoke ( void(Class::*)(Arg1)  memberFuncPtr,
typename invoke_arg< Arg1 >::type const &  arg1 
) const

◆ invoke() [2/2]

template<typename T >
template<typename Class , typename Rtn >
Rtn stapl::cref_accessor< T >::invoke ( Rtn(Class::*)(void)  memberFuncPtr) const

Member Data Documentation

◆ t

template<typename T >
const T* stapl::cref_accessor< T >::t

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