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::const_local_accessor_graph< C > Class Template Reference

Local accessor for pGraph's vertices.Derives from local_accessor and adds methods for property. More...

Public Member Functions

 const_local_accessor_graph (C const *container, iterator const &it)
 
 const_local_accessor_graph (null_reference const &nr)
 Construct an accessor for a null reference. More...
 
 const_local_accessor_graph (const_local_accessor_graph const &other)
 
value_type const & ref () const
 Read the reference by returning a true reference of the value pointed to by the iterator. More...
 
property_reference property ()
 
property_reference property () const
 
property_reference const_property () const
 
gid_type index () const
 
bool is_null () const
 Returns whether or not this is a null accessor.
 
value_type read () const
 Read the reference by returning a copy of the value pointed to by the iterator.
 
template<typename F >
F::result_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 C::value_type value_type
 
typedef base_type::gid_type gid_type
 
typedef const_local_property_reference_constructor< typename value_type::property_type, typename value_type::const_property_reference > referencer_t
 
typedef referencer_t::result_type property_reference
 
typedef property_reference const_property_reference
 
typedef gid_type index_type
 

Public Attributes

const_iterator m_itr
 
C const * m_container
 

Detailed Description

template<typename C>
class stapl::const_local_accessor_graph< C >

Local accessor for pGraph's vertices.

Derives from local_accessor and adds methods for property.

Template Parameters
Ctype of the pGraph.

Constructor & Destructor Documentation

◆ const_local_accessor_graph()

Construct an accessor for a null reference.

Member Function Documentation

◆ ref()

template<typename C >
value_type const& stapl::const_local_accessor_graph< C >::ref ( ) const

Read the reference by returning a true reference of the value pointed to by the iterator.

◆ apply_get()

template<typename C >
template<typename F >
F::result_type stapl::const_local_accessor< C >::apply_get ( F const &  f) const
inherited

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: