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_graph_accessor< Container > Class Template Reference

accessor for vertices of a graph. More...

Public Member Functions

 const_graph_accessor (null_reference const &)
 
 const_graph_accessor (const_graph_accessor const &other)
 
 const_graph_accessor (container_type *container, index_type const &index)
 
 const_graph_accessor (container_type const *container, index_type const &index)
 
property_reference property ()
 
property_reference property () const
 
const_property_reference const_property () const
 
const value_type ref (void) const
 Provide a copy of the underlying variable this accessor provides access for, to apply functors below. More...
 
bool is_local (void) const
 
bool is_null (void) const
 Returns whether or not this is a null accessor.
 
index_type index (void) const
 Return the index of the reference.
 
value_type read (void) const
 Read the 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
 
typedef const_property_reference_constructor< typename container_type::vertex_property, container_type, index_type > referencer_t
 
typedef referencer_t::result_type property_reference
 
typedef property_reference const_property_reference
 

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_graph_accessor< Container >

accessor for vertices of a graph.

Template Parameters
ContainerType of the pGraph container.

Member Function Documentation

◆ ref()

template<typename Container >
const value_type stapl::const_graph_accessor< Container >::ref ( void  ) const

Provide a copy of the underlying variable this accessor provides access for, to apply functors below.

◆ 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
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: