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::vector_property_map< G, T, Functor > Class Template Reference

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

Public Member Functions

 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.
 

Public Types

typedef base_type::property_value_type property_value_type
 

Protected Attributes

std::vector< T > * m_c
 
Functor m_f
 

Detailed Description

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
GThe graph type for the property map.
TThe type of object held in the vector.
FunctorThe functor class for the property map.

Member Function Documentation

◆ put()

template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object >
void stapl::sequential::vector_property_map< G, T, Functor >::put ( Object  o,
property_value_type  v 
)

Assigns a property to the specified object, resizing the vector if needed.

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

◆ get()

template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object >
property_value_type stapl::sequential::vector_property_map< G, T, Functor >::get ( Object  o)

Returns the property of a given object, or a default property if the object doesn't have an associated property.

Parameters
oThe object whose property will be returned.

◆ apply()

template<class G , class T , class Functor = ident_prop_func<T>>
template<typename Object , typename Functor2 >
void stapl::sequential::vector_property_map< G, T, Functor >::apply ( Object  o,
Functor2  f2 
)

Applies an alternate functor to the specified object, resizing the vector if needed.

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

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