|
cosi::LabelMap< T2 > Class Template Reference#include <LabelMap.hpp>
Inheritance diagram for cosi::LabelMap< T2 >:
Detailed Descriptiontemplate<class T2>
This template class defines a map between two objects. In COSI, this template class is used to attach labels to nodes and links. |
cosi::LabelMap< T2 >::LabelMap | ( | ) | [inline] |
Default constructor.
cosi::LabelMap< T2 >::~LabelMap | ( | ) | [inline] |
Destructor.
The destructor clears the intermal map.
void cosi::LabelMap< T2 >::Set | ( | Vertex | V, | |
T2 | pD | |||
) | [inline] |
Assigns the value pD to pK.
void cosi::LabelMap< T2 >::Set | ( | Edge | E, | |
T2 | pD | |||
) | [inline] |
void cosi::LabelMap< T2 >::Erase | ( | Vertex | V | ) | [inline] |
void cosi::LabelMap< T2 >::Erase | ( | Edge | E | ) | [inline] |
T2& cosi::LabelMap< T2 >::Get | ( | Vertex | V | ) | [inline] |
Returns the value associated to pK.
If no value has been associated to pK, this function returns the default object T2(). A default constructur should always be availalbe for type T2.
T2& cosi::LabelMap< T2 >::Get | ( | Edge | E | ) | [inline] |
bool cosi::LabelMap< T2 >::Assigned | ( | Vertex | V | ) | [inline] |
Returns false if no value has been previously assigned to pK (by an appropiate call to the Set function).
bool cosi::LabelMap< T2 >::Assigned | ( | Edge | E | ) | [inline] |
multiset<string> cosi::LabelMap< T2 >::GetQuantityNames | ( | ) | [inline] |
map<Vertex,T2> cosi::LabelMap< T2 >::mV [private] |
The internal map storage.
map<Edge,T2> cosi::LabelMap< T2 >::mE [private] |