The vertex property map class, which maps a set of vertices to a set of properties.
More...
|
| vertex_property_map (G &g, Functor f) |
| Constructor for the vertex_property_map class. Takes in a graph and a functor, and stores them as data members.
|
|
| vertex_property_map (G &g) |
| Constructor for the vertex_property_map class. No functor is specified, so a default functor of type Functor is used.
|
|
template<typename Vertex , typename Functor2 > |
void | apply (Vertex v, Functor2 f2) |
| Applies an alternate functor to a vertex in the map. More...
|
|
template<typename Vertex > |
void | put (Vertex v, property_value_type c) |
| Changes the property of a vertex to the provided property. More...
|
|
template<typename Vertex > |
property_value_type | get (Vertex v) |
| Returns the property of a given vertex. More...
|
|
void | reset () |
| Resets the properties of all vertices in the graph to a default property.
|
|
|
typedef Functor::value_type | property_value_type |
|
template<class G, class Functor = ident_prop_func<typename G::vertex_property>>
class stapl::sequential::vertex_property_map< G, Functor >
The vertex property map class, which maps a set of vertices to a set of properties.
- Template Parameters
-
G | The graph class for the property map. |
Functor | The functor for the property map, which extracts a sub-property from a property class. |
◆ apply()
template<class G , class Functor = ident_prop_func<typename G::vertex_property>>
template<typename Vertex , typename Functor2 >
Applies an alternate functor to a vertex in the map.
- Parameters
-
v | The vertex to apply the functor to. |
f2 | The alternate functor. |
◆ put()
template<class G , class Functor = ident_prop_func<typename G::vertex_property>>
template<typename Vertex >
Changes the property of a vertex to the provided property.
- Parameters
-
v | The desired vertex. |
c | The new property to assign to v. |
◆ get()
template<class G , class Functor = ident_prop_func<typename G::vertex_property>>
template<typename Vertex >
Returns the property of a given vertex.
- Parameters
-
v | The vertex whose property will be returned. |
The documentation for this class was generated from the following file: