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 66 of file maptypes.h.


Constructor & Destructor Documentation

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

The constructor.

Definition at line 100 of file maptypes.h.

References unifexp::mapTypes< numType >::objects.

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

The destructor.

Definition at line 123 of file maptypes.h.

References unifexp::mapTypes< numType >::objects.

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

The copy constructor is not allowed.

Definition at line 134 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 149 of file maptypes.h.

References unifexp::mapTypes< numType >::objects.

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 162 of file maptypes.h.

References unifexp::mapTypes< numType >::objects.

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

The assignment operator is not allowed.

Definition at line 142 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 93 of file maptypes.h.

Referenced by unifexp::mapTypes< numType >::get(), unifexp::mapTypes< numType >::getNames(), unifexp::mapTypes< numType >::mapTypes(), and unifexp::mapTypes< numType >::~mapTypes().


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 11:08:42 2007 for The Uniform Expansion Software by  doxygen 1.5.3