unifexp::partTypes< numType > Class Template Reference

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>

List of all members.

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.


Detailed Description

template<class numType>
class unifexp::partTypes< numType >

This class gathers all the available partition types and allows to select a partition class object by its name.

Definition at line 65 of file parttypes.h.


Constructor & Destructor Documentation

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

The constructor.

Definition at line 99 of file parttypes.h.

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

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

The destructor.

Definition at line 114 of file parttypes.h.

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

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

The copy constructor is not allowed.

Definition at line 125 of file parttypes.h.


Member Function Documentation

template<class numType>
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 141 of file parttypes.h.

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

template<class numType>
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 154 of file parttypes.h.

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

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

The assignment operator is not allowed.

Definition at line 133 of file parttypes.h.


Member Data Documentation

template<class numType>
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 92 of file parttypes.h.

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


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