MapRegistry::MapBase Class Reference

#include <map_registry.h>

Inheritance diagram for MapRegistry::MapBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

MapBase is the base class of the registered maps. It defines the core modification operations on the maps and implements some helper functions.

Definition at line 51 of file map_registry.h.

Public Member Functions

 MapBase ()
 MapBase (const Graph &g, Registry &r)
 MapBase (const MapBase &copy)
const MapBaseoperator= (const MapBase &copy)
virtual ~MapBase ()

Protected Member Functions

virtual void init ()
virtual void destroy ()
virtual void add (const KeyType &)=0
virtual void erase (const KeyType &)=0
virtual void clear ()=0


Constructor & Destructor Documentation

MapBase  )  [inline]
 

Default constructor for MapBase. Definition at line 65 of file map_registry.h.

MapBase const Graph &  g,
Registry r
[inline]
 

Simple constructor to register into a graph registry. Definition at line 71 of file map_registry.h.

References MapRegistry::attach().

Here is the call graph for this function:

MapBase const MapBase copy  )  [inline]
 

Copy constructor to register into the registry. Definition at line 79 of file map_registry.h.

References MapRegistry::attach(), and MapRegistry::MapBase::registry.

Here is the call graph for this function:

virtual ~MapBase  )  [inline, virtual]
 

Destructor. Definition at line 104 of file map_registry.h.

References MapRegistry::detach().

Here is the call graph for this function:


Member Function Documentation

const MapBase& operator= const MapBase copy  )  [inline]
 

Assign operator. Definition at line 88 of file map_registry.h.

References MapRegistry::attach(), MapRegistry::detach(), MapRegistry::MapBase::graph, and MapRegistry::MapBase::registry.

Here is the call graph for this function:

virtual void init  )  [inline, protected, virtual]
 

Helper function to implement constructors in the subclasses. Definition at line 129 of file map_registry.h.

References MapRegistry::MapBase::add(), and lemon::INVALID.

Here is the call graph for this function:

virtual void destroy  )  [inline, protected, virtual]
 

Helper function to implement the destructor in the subclasses. Definition at line 139 of file map_registry.h.

References MapRegistry::MapBase::erase(), and lemon::INVALID.

Here is the call graph for this function:

virtual void add const KeyType &   )  [protected, pure virtual]
 

The add member function should be overloaded in the subclasses. Add extends the map with the new node.

Implemented in ArrayMap, and VectorMap.

virtual void erase const KeyType &   )  [protected, pure virtual]
 

The erase member function should be overloaded in the subclasses. Erase removes the node from the map.

Implemented in ArrayMap, and VectorMap.

virtual void clear  )  [protected, pure virtual]
 

The clear member function should be overloaded in the subclasses. Clear makes empty the data structure.

Implemented in ArrayMap, and VectorMap.


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