This class gathers all the available map types and allows to select a map class object by its name. More...
#include </cur/unifexp/maptypes.h>
Public Member Functions | |
mapTypes () | |
The constructor. | |
~mapTypes () | |
The destructor. | |
mapType< numType > * | get (const std::string &name) const |
Retrieves a pointer to a map object with the given name. | |
void | getNames (std::vector< std::string > &names) const |
Fills in a vector of text strings with the names of all the available map objects. | |
Private Member Functions | |
mapTypes (const mapTypes< numType > &) | |
The copy constructor is not allowed. | |
mapTypes< numType > & | operator= (const mapTypes< numType > &) |
The assignment operator is not allowed. | |
Private Attributes | |
std::vector< mapType< numType > * > | objects |
A vector of all the map objects to choose from. |
This class gathers all the available map types and allows to select a map class object by its name.
Definition at line 61 of file maptypes.h.
unifexp::mapTypes< numType >::mapTypes | ( | ) | [inline] |
The constructor.
Definition at line 95 of file maptypes.h.
unifexp::mapTypes< numType >::~mapTypes | ( | ) | [inline] |
The destructor.
Definition at line 118 of file maptypes.h.
unifexp::mapTypes< numType >::mapTypes | ( | const mapTypes< numType > & | ) | [inline, private] |
The copy constructor is not allowed.
Definition at line 129 of file maptypes.h.
mapType< numType > * unifexp::mapTypes< numType >::get | ( | const std::string & | name ) | const [inline] |
Retrieves a pointer to a map object with the given name.
Returns 0 if such an object cannot be found.
Definition at line 144 of file maptypes.h.
void unifexp::mapTypes< numType >::getNames | ( | std::vector< std::string > & | names ) | const [inline] |
Fills in a vector of text strings with the names of all the available map objects.
Definition at line 157 of file maptypes.h.
mapTypes< numType > & unifexp::mapTypes< numType >::operator= | ( | const mapTypes< numType > & | ) | [inline, private] |
The assignment operator is not allowed.
Definition at line 137 of file maptypes.h.
std::vector<mapType<numType> *> unifexp::mapTypes< numType >::objects [private] |
A vector of all the map objects to choose from.
The objects must be created with the 'new' operator. They are automatically deallocated by the destructor.
Definition at line 78 of file maptypes.h.