MapRegistry Class Template Reference
[Tools to Make It Easier to Make Graph Maps]

#include <map_registry.h>

List of all members.


Detailed Description

template<typename G, typename K, typename KIt>
class lemon::MapRegistry< G, K, KIt >

Registry class to register edge or node maps into the graph. The registry helps you to implement an observer pattern. If you add or erase an edge or node you must notify all the maps about the event.

Definition at line 40 of file map_registry.h.

Public Member Functions

 MapRegistry ()
 MapRegistry (const MapRegistry &)
MapRegistryoperator= (const MapRegistry &)
 ~MapRegistry ()
void attach (MapBase &map)
void detach (MapBase &map)
void add (KeyType &key)
void erase (KeyType &key)
void clear ()

Protected Types

typedef std::vector< MapBase * > Container

Protected Attributes

Container container


Member Typedef Documentation

typedef std::vector<MapBase*> Container [protected]
 

The container type of the maps. Definition at line 178 of file map_registry.h.


Constructor & Destructor Documentation

MapRegistry  )  [inline]
 

Default Constructor of the MapRegistry. It creates an empty registry. Definition at line 191 of file map_registry.h.

MapRegistry const MapRegistry< G, K, KIt > &   )  [inline]
 

Copy Constructor of the MapRegistry. The new registry does not steal the maps from the right value. The new registry will be an empty. Definition at line 197 of file map_registry.h.

~MapRegistry  )  [inline]
 

Destructor of the MapRegistry. Definition at line 215 of file map_registry.h.

References MapRegistry::container.


Member Function Documentation

MapRegistry& operator= const MapRegistry< G, K, KIt > &   )  [inline]
 

Assign operator. The left value does not steal the maps from the right value. The left value will be an empty registry. Definition at line 203 of file map_registry.h.

References MapRegistry::container.

void attach MapBase map  )  [inline]
 

Attach a map into thr registry. If the map has been attached into an other registry it is detached from that automaticly. Definition at line 231 of file map_registry.h.

References MapRegistry::container, MapRegistry::MapBase::registry, and MapRegistry::MapBase::registry_index.

void detach MapBase map  )  [inline]
 

Detach the map from the registry. Definition at line 243 of file map_registry.h.

References MapRegistry::container, MapRegistry::MapBase::graph, MapRegistry::MapBase::registry, and MapRegistry::MapBase::registry_index.

void add KeyType &  key  )  [inline]
 

Notify all the registered maps about a Key added. Definition at line 255 of file map_registry.h.

References MapRegistry::container.

void erase KeyType &  key  )  [inline]
 

Notify all the registered maps about a Key erased. Definition at line 265 of file map_registry.h.

References MapRegistry::container.

void clear  )  [inline]
 

Notify all the registered maps about the map should be cleared. Definition at line 275 of file map_registry.h.

References MapRegistry::container.


Member Data Documentation

Container container [protected]
 

The container of the registered maps. Definition at line 183 of file map_registry.h.


The documentation for this class was generated from the following file:
Generated on Thu Sep 30 12:18:38 2004 for LEMON by doxygen 1.3.8