This class gathers all the available partition types and allows to select a partition class object by its name. More...
#include </cur/unifexp/parttypes.h>
Public Member Functions | |
partTypes () | |
The constructor. | |
~partTypes () | |
The destructor. | |
partType< numType > * | get (const std::string &name) const |
Retrieves a pointer to a partition 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 partition objects. | |
Private Member Functions | |
partTypes (const partTypes< numType > &) | |
The copy constructor is not allowed. | |
partTypes< numType > & | operator= (const partTypes< numType > &) |
The assignment operator is not allowed. | |
Private Attributes | |
std::vector< partType< numType > * > | objects |
A vector of all the map objects to choose from. |
This class gathers all the available partition types and allows to select a partition class object by its name.
Definition at line 60 of file parttypes.h.
unifexp::partTypes< numType >::partTypes | ( | ) | [inline] |
The constructor.
Definition at line 94 of file parttypes.h.
unifexp::partTypes< numType >::~partTypes | ( | ) | [inline] |
The destructor.
Definition at line 109 of file parttypes.h.
unifexp::partTypes< numType >::partTypes | ( | const partTypes< numType > & | ) | [inline, private] |
The copy constructor is not allowed.
Definition at line 120 of file parttypes.h.
partType< numType > * unifexp::partTypes< numType >::get | ( | const std::string & | name ) | const [inline] |
Retrieves a pointer to a partition object with the given name.
Returns 0 if such an object cannot be found.
Definition at line 136 of file parttypes.h.
void unifexp::partTypes< numType >::getNames | ( | std::vector< std::string > & | names ) | const [inline] |
Fills in a vector of text strings with the names of all the available partition objects.
Definition at line 149 of file parttypes.h.
partTypes< numType > & unifexp::partTypes< numType >::operator= | ( | const partTypes< numType > & | ) | [inline, private] |
The assignment operator is not allowed.
Definition at line 128 of file parttypes.h.
std::vector<partType<numType> *> unifexp::partTypes< 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 77 of file parttypes.h.