The graph external property map class, which maps each element in a container to a property.
More...
|
| graph_external_property_map (C &c, Functor f) |
| Constructor, which takes the container and functor as parameters and sets them as data members.
|
|
| graph_external_property_map (C &c) |
| Constructor which takes the container and sets it as a data member. No functor is given, so a default one of type Functor is used.
|
|
template<typename Object , typename Functor2 > |
void | apply (Object o, Functor2 f2) |
| Applies an alternate functor to the specified object. More...
|
|
template<typename Object > |
void | put (Object o, property_value_type c) |
| Assigns a property to the specified object. More...
|
|
template<typename Object > |
property_value_type | get (Object o) |
| Returns the property of a given object. More...
|
|
void | reset () |
| Resets the properties of each object in the container to a default property.
|
|
|
typedef Functor::value_type | property_value_type |
|
template<class G, class C, class Functor = ident_prop_func< typename C::value_type>>
class stapl::sequential::graph_external_property_map< G, C, Functor >
The graph external property map class, which maps each element in a container to a property.
- Template Parameters
-
G | The graph type for the map. |
C | The container type for the property map. |
Functor | The functor class for the property map. |
◆ apply()
template<class G, class C, class Functor = ident_prop_func< typename C::value_type>>
template<typename Object , typename Functor2 >
Applies an alternate functor to the specified object.
- Parameters
-
o | The object to apply the alternate functor to. |
f2 | The alternate functor. |
◆ put()
template<class G, class C, class Functor = ident_prop_func< typename C::value_type>>
template<typename Object >
Assigns a property to the specified object.
- Parameters
-
o | The object to assign a property to. |
v | The property to assign. |
◆ get()
template<class G, class C, class Functor = ident_prop_func< typename C::value_type>>
template<typename Object >
Returns the property of a given object.
- Parameters
-
o | The object whose property will be returned. |
The documentation for this class was generated from the following file: