#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. |
Definition at line 66 of file maptypes.h.
unifexp::mapTypes< numType >::mapTypes | ( | ) | [inline] |
The constructor.
Definition at line 100 of file maptypes.h.
References unifexp::mapTypes< numType >::objects.
unifexp::mapTypes< numType >::~mapTypes | ( | ) | [inline] |
The destructor.
Definition at line 123 of file maptypes.h.
References unifexp::mapTypes< numType >::objects.
unifexp::mapTypes< numType >::mapTypes | ( | const mapTypes< numType > & | ) | [inline, private] |
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 149 of file maptypes.h.
References unifexp::mapTypes< numType >::objects.
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 162 of file maptypes.h.
References unifexp::mapTypes< numType >::objects.
mapTypes< numType > & unifexp::mapTypes< numType >::operator= | ( | const mapTypes< numType > & | ) | [inline, private] |
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 93 of file maptypes.h.
Referenced by unifexp::mapTypes< numType >::get(), unifexp::mapTypes< numType >::getNames(), unifexp::mapTypes< numType >::mapTypes(), and unifexp::mapTypes< numType >::~mapTypes().