Public Member Functions | Private Member Functions | Private Attributes

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 60 of file parttypes.h.


Constructor & Destructor Documentation

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

The constructor.

Definition at line 94 of file parttypes.h.

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

The destructor.

Definition at line 109 of file parttypes.h.

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

The copy constructor is not allowed.

Definition at line 120 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 136 of file parttypes.h.

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 149 of file parttypes.h.

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


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 77 of file parttypes.h.


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