The ChainCon Software (Release 0.03)
|
A class whose instances can be used to generate names of cells with subsequent numbers, in each dimension separately. More...
#include <cellnames.h>
Public Types | |
typedef CellT | CellType |
The type of a cell identifier. More... | |
typedef std::string | NameType |
The type of the name of a cell. More... | |
Public Member Functions | |
tCellNames () | |
The default constructor of an empty object. More... | |
tCellNames (const tCellNames< CellT > &c) | |
The copy constructor. More... | |
tCellNames< CellT > & | operator= (const tCellNames< CellT > &s) |
The assignment operator. More... | |
~tCellNames () | |
The destructor. More... | |
void | setPrefix (const std::string &s) |
Sets the prefix for cell names. More... | |
void | setPostfix (const std::string &s) |
Sets the postfix for cell names. More... | |
std::string | operator() (const CellT &c) |
Returns the name of the given cell. More... | |
int | maxDim () const |
Returns the smallest strict upper bound for the dimensions of named cells. More... | |
bool | operator== (const tCellNames< CellT > &s) const |
The equality operator. More... | |
void | swap (tCellNames< CellT > &s) |
Swaps the data with another object. More... | |
Private Attributes | |
chomp::homology::multitable< chomp::homology::hashedset< CellT > > | cells |
An array of sets of cells whose names have been requested. More... | |
std::string | prefix |
A prefix for cell names (use none for alphabetic names). More... | |
std::string | postfix |
A postfix for cell names. More... | |
int | nSets |
The number of sets of encountered cells, indexed by their dimension. More... | |
A class whose instances can be used to generate names of cells with subsequent numbers, in each dimension separately.
Definition at line 61 of file cellnames.h.
typedef CellT tCellNames< CellT >::CellType |
The type of a cell identifier.
Definition at line 65 of file cellnames.h.
typedef std::string tCellNames< CellT >::NameType |
The type of the name of a cell.
Definition at line 68 of file cellnames.h.
|
inline |
The default constructor of an empty object.
Definition at line 126 of file cellnames.h.
|
inline |
The copy constructor.
Definition at line 132 of file cellnames.h.
|
inline |
The destructor.
Definition at line 151 of file cellnames.h.
|
inline |
Returns the smallest strict upper bound for the dimensions of named cells.
Definition at line 171 of file cellnames.h.
References tCellNames< CellT >::nSets.
|
inline |
Returns the name of the given cell.
Definition at line 177 of file cellnames.h.
References tCellNames< CellT >::cells, tCellNames< CellT >::nSets, tCellNames< CellT >::postfix, and tCellNames< CellT >::prefix.
|
inline |
The assignment operator.
Definition at line 141 of file cellnames.h.
References tCellNames< CellT >::cells, tCellNames< CellT >::nSets, tCellNames< CellT >::postfix, and tCellNames< CellT >::prefix.
|
inline |
The equality operator.
Definition at line 215 of file cellnames.h.
References tCellNames< CellT >::cells, tCellNames< CellT >::postfix, and tCellNames< CellT >::prefix.
|
inline |
Sets the postfix for cell names.
This is a string that is appended at the end of every cell name.
Definition at line 164 of file cellnames.h.
References tCellNames< CellT >::postfix.
|
inline |
Sets the prefix for cell names.
If the prefix is nonempty then the cell names are formed from this perfix with dimension indicator and a subsequent number.
Definition at line 157 of file cellnames.h.
References tCellNames< CellT >::prefix.
|
inline |
Swaps the data with another object.
Definition at line 222 of file cellnames.h.
References tCellNames< CellT >::cells, tCellNames< CellT >::nSets, tCellNames< CellT >::postfix, and tCellNames< CellT >::prefix.
|
private |
An array of sets of cells whose names have been requested.
Definition at line 107 of file cellnames.h.
Referenced by tCellNames< CellT >::operator()(), tCellNames< CellT >::operator=(), tCellNames< CellT >::operator==(), and tCellNames< CellT >::swap().
|
private |
The number of sets of encountered cells, indexed by their dimension.
In other words, this is the minimal strict upper bound for the dimensions of cells.
Definition at line 119 of file cellnames.h.
Referenced by tCellNames< CellT >::maxDim(), tCellNames< CellT >::operator()(), tCellNames< CellT >::operator=(), and tCellNames< CellT >::swap().
|
private |
A postfix for cell names.
Definition at line 113 of file cellnames.h.
Referenced by tCellNames< CellT >::operator()(), tCellNames< CellT >::operator=(), tCellNames< CellT >::operator==(), tCellNames< CellT >::setPostfix(), and tCellNames< CellT >::swap().
|
private |
A prefix for cell names (use none for alphabetic names).
Definition at line 110 of file cellnames.h.
Referenced by tCellNames< CellT >::operator()(), tCellNames< CellT >::operator=(), tCellNames< CellT >::operator==(), tCellNames< CellT >::setPrefix(), and tCellNames< CellT >::swap().