A specialized external property map class, which uses a vector as the container type.
More...
|
| vector_property_map () |
| Basic constructor, calls graph_external_property constructor with a container of type container_type.
|
|
| vector_property_map (Functor f) |
| Constructor which specifies the functor to be used. Calls the constructor of graph_external_property with a container of type container_type and the functor provided.
|
|
template<typename Object > |
void | put (Object o, property_value_type v) |
| Assigns a property to the specified object, resizing the vector if needed. More...
|
|
template<typename Object > |
property_value_type | get (Object o) |
| Returns the property of a given object, or a default property if the object doesn't have an associated property. More...
|
|
template<typename Object , typename Functor2 > |
void | apply (Object o, Functor2 f2) |
| Applies an alternate functor to the specified object, resizing the vector if needed. More...
|
|
void | reset () |
| Resets the properties of each object in the container to a default property.
|
|
|
typedef base_type::property_value_type | property_value_type |
|
|
std::vector< T > * | m_c |
|
Functor | m_f |
|
template<class G, class T, class Functor = ident_prop_func<T>>
class stapl::sequential::vector_property_map< G, T, Functor >
A specialized external property map class, which uses a vector as the container type.
- Template Parameters
-
G | The graph type for the property map. |
T | The type of object held in the vector. |
Functor | The functor class for the property map. |
◆ put()
template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object >
Assigns a property to the specified object, resizing the vector if needed.
- Parameters
-
o | The object to assign a property to. |
v | The property to assign. |
◆ get()
template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object >
Returns the property of a given object, or a default property if the object doesn't have an associated property.
- Parameters
-
o | The object whose property will be returned. |
◆ apply()
template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object , typename Functor2 >
Applies an alternate functor to the specified object, resizing the vector if needed.
- Parameters
-
o | The object to apply the alternate functor to. |
f2 | The alternate functor. |
The documentation for this class was generated from the following file: