Public Member Functions | Private Member Functions | Private Attributes

unifexp::mapTypes< numType > Class Template Reference

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>

List of all members.

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.

Detailed Description

template<class numType>
class unifexp::mapTypes< numType >

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.


Constructor & Destructor Documentation

template<class numType >
unifexp::mapTypes< numType >::mapTypes (  ) [inline]

The constructor.

Definition at line 95 of file maptypes.h.

template<class numType >
unifexp::mapTypes< numType >::~mapTypes (  ) [inline]

The destructor.

Definition at line 118 of file maptypes.h.

template<class numType>
unifexp::mapTypes< numType >::mapTypes ( const mapTypes< numType > &   ) [inline, private]

The copy constructor is not allowed.

Definition at line 129 of file maptypes.h.


Member Function Documentation

template<class numType >
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.

template<class numType >
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.

template<class numType>
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.


Member Data Documentation

template<class numType>
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.


The documentation for this class was generated from the following file: