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

A specialized external property map class, which uses a std::mad as the container type. More...

Public Member Functions

 map_property_map ()
 A constructor, which calls the graph_external_property_map constructor with a container of type container_type.
 
 map_property_map (Functor f)
 A constructor, which calls the graph_external_property_map constructor with a container of type container_type and the specified functor.
 
void reset ()
 Resets the properties of each vertex to a default property.
 
void apply (Object o, Functor2 f2)
 Applies an alternate functor to the specified object. More...
 
void put (Object o, property_value_type c)
 Assigns a property to the specified object. More...
 
property_value_type get (Object o)
 Returns the property of a given object. More...
 

Public Types

typedef base_type::property_value_type property_value_type
 

Protected Attributes

std::map< G::vertex_descriptor, T > * m_c
 
Functor m_f
 

Detailed Description

template<class G, class T, class Functor = ident_prop_func<T>>
class stapl::sequential::map_property_map< G, T, Functor >

A specialized external property map class, which uses a std::mad as the container type.

Template Parameters
GThe graph type for the property map.
TThe type of object held by the map.
FunctorThe functor for the property map.

Member Function Documentation

◆ apply()

void stapl::sequential::graph_external_property_map< G, std::map< G::vertex_descriptor, T > , Functor >::apply ( Object  o,
Functor2  f2 
)
inherited

Applies an alternate functor to the specified object.

Parameters
oThe object to apply the alternate functor to.
f2The alternate functor.

◆ put()

void stapl::sequential::graph_external_property_map< G, std::map< G::vertex_descriptor, T > , Functor >::put ( Object  o,
property_value_type  c 
)
inherited

Assigns a property to the specified object.

Parameters
oThe object to assign a property to.
vThe property to assign.

◆ get()

property_value_type stapl::sequential::graph_external_property_map< G, std::map< G::vertex_descriptor, T > , Functor >::get ( Object  o)
inherited

Returns the property of a given object.

Parameters
oThe object whose property will be returned.

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