The Original CHomP Software
|
This class defines cubical cell in R^n with edges parallel to the axes and with size 0 or 1 in each direction. More...
#include <cellfix.h>
Public Types | |
enum | OutputBitValues { BitProduct = 0x01 , BitSpace = 0x02 } |
Bit masks that define how to output the cell. More... | |
typedef coordtype | CoordType |
The type of the coordinates. More... | |
typedef tCubeFix< dimfix, coordtype >::PointBase | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCellFix () | |
The constructor of an empty cubical cell. More... | |
tCellFix (const coordtype *c1, const coordtype *c2, int spcdim=0, int celldim=-1) | |
The constructor of a cell spanning from one point to another. More... | |
tCellFix (const tCubeFix< dimfix, coordtype > &q1, const tCubeFix< dimfix, coordtype > &q2) | |
The constructor of a cell as an intersection of two cubes. More... | |
tCellFix (const tCubeFix< dimfix, coordtype > &q, int facedim) | |
The constructor of an arbitrary k-dimensional face of a full cube. More... | |
tCellFix (const tCubeFix< dimfix, coordtype > &q) | |
The constructor of a full-dimensional cubical cell. More... | |
template<int dimhigh> | |
tCellFix (const tCellFix< dimhigh, coordtype > &q, int offset, int ncoords) | |
The constructor of a projection of a cell to the given number of coordinates that start at the given offset. More... | |
tCellFix (const tCellFix< dimfix, coordtype > &c) | |
The copy constructor. More... | |
tCellFix< dimfix, coordtype > & | operator= (const tCellFix< dimfix, coordtype > &c) |
The assignment operator. More... | |
int | dim () const |
Returns the dimension of the cubical cell. More... | |
int | spacedim () const |
Returns the dimension of the embedding space. More... | |
coordtype * | leftcoord (coordtype *c) const |
Fills in the given table with the left corner coordinates. More... | |
coordtype * | rightcoord (coordtype *c) const |
Fills in the given table with the right corner coordinates. More... | |
int_t | hashkey1 () const |
Returns hashing key no. 1 required by the hashing set template. More... | |
int_t | hashkey2 () const |
Returns hashing key no. 2 required by the hashing set template. More... | |
Static Public Member Functions | |
static const char * | name () |
Returns the name of the objects represented by this class. More... | |
static const char * | pluralname () |
Returns the plural name of the objects represented by this class. More... | |
Static Public Attributes | |
static const int | MaxDim |
The maximal dimension of a cell. More... | |
static const int | MaxSpaceDim = dimfix |
The maximal dimension of the embedding space of a cell. More... | |
static int | OutputBits = 0 |
The output bits which determine how a cell is written. More... | |
Private Member Functions | |
void | initialize (const coordtype *c1, const coordtype *c2, int celldim=-1) |
Initializes a new cell, given its two corners. More... | |
Private Attributes | |
coordtype | tab [dimfix] |
A table with the left coordinate of the cell. More... | |
int_t | n |
High 6 bits = the dimension of the cell (not: space). More... | |
Friends | |
template<int _dimfix, class _coordtype > | |
int | operator== (const tCellFix< _dimfix, _coordtype > &c1, const tCellFix< _dimfix, _coordtype > &c2) |
Verifies if two cells are identical. More... | |
This class defines cubical cell in R^n with edges parallel to the axes and with size 0 or 1 in each direction.
This implementation assumes that the embedding space dimension is known at time of compilation.
typedef coordtype chomp::homology::tCellFix< dimfix, coordtype >::CoordType |
typedef tCubeFix<dimfix,coordtype>::PointBase chomp::homology::tCellFix< dimfix, coordtype >::PointBase |
enum chomp::homology::tCellFix::OutputBitValues |
Bit masks that define how to output the cell.
If 'BitProduct' is set, then the cell is displayed as a Cartesian product of intervals. Otherwise, it is indicated by two opposite vertices. If 'BitSpace' is set, the space is inserted in the output.
Enumerator | |
---|---|
BitProduct | |
BitSpace |
|
inline |
The constructor of an empty cubical cell.
Definition at line 231 of file cellfix.h.
References chomp::homology::tCellFix< dimfix, coordtype >::MaxDim.
|
inline |
The constructor of a cell spanning from one point to another.
Definition at line 240 of file cellfix.h.
|
inline |
The constructor of a cell as an intersection of two cubes.
Definition at line 257 of file cellfix.h.
References chomp::homology::CommonCell(), and chomp::homology::tPointBase< coordtype >::getwrapping().
|
inline |
The constructor of an arbitrary k-dimensional face of a full cube.
Definition at line 285 of file cellfix.h.
References chomp::homology::copycoord(), and chomp::homology::NumBits.
|
inlineexplicit |
The constructor of a full-dimensional cubical cell.
Definition at line 302 of file cellfix.h.
References chomp::homology::copycoord(), chomp::homology::tCellFix< dimfix, coordtype >::MaxDim, and chomp::homology::tCellFix< dimfix, coordtype >::tab.
|
inline |
The constructor of a projection of a cell to the given number of coordinates that start at the given offset.
Definition at line 314 of file cellfix.h.
|
inline |
The copy constructor.
Definition at line 329 of file cellfix.h.
References chomp::homology::copycoord(), and chomp::homology::tCellFix< dimfix, coordtype >::tab.
|
inline |
Returns the dimension of the cubical cell.
Definition at line 347 of file cellfix.h.
References chomp::homology::NumBits.
|
inline |
|
inline |
|
inlineprivate |
Initializes a new cell, given its two corners.
Definition at line 188 of file cellfix.h.
References chomp::homology::NumBits, and chomp::homology::tPointBase< coordtype >::wrapcopy().
|
inline |
|
static |
|
inline |
|
static |
|
inline |
Fills in the given table with the right corner coordinates.
Definition at line 369 of file cellfix.h.
References chomp::homology::tPointBase< coordtype >::wrapcoord().
|
inline |
|
static |
The maximal dimension of a cell.
Definition at line 75 of file cellfix.h.
Referenced by chomp::homology::tCellFix< dimfix, coordtype >::tCellFix().
|
static |
|
private |
|
static |
|
private |
A table with the left coordinate of the cell.
Definition at line 167 of file cellfix.h.
Referenced by chomp::homology::tCellFix< dimfix, coordtype >::tCellFix().