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 <cellvar.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 tCubeVar< coordtype >::PointBase | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCellVar () | |
The constructor of an empty cubical cell. More... | |
tCellVar (const coordtype *c1, const coordtype *c2, int spcdim, int celldim=-1) | |
The constructor of a cell spanning from one point to another. More... | |
tCellVar (const tCubeVar< coordtype > &q1, const tCubeVar< coordtype > &q2) | |
The constructor of a cell as an intersection of two cubes. More... | |
tCellVar (const tCubeVar< coordtype > &q, int facedim) | |
The constructor of an arbitrary k-dimensional face of a full cube. More... | |
tCellVar (const tCubeVar< coordtype > &q) | |
The constructor of a full-dimensional cubical cell. More... | |
tCellVar (const tCellVar< 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... | |
tCellVar (const tCellVar< coordtype > &c) | |
The copy constructor. More... | |
tCellVar< coordtype > & | operator= (const tCellVar< 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 of the cubical cell. More... | |
coordtype * | leftcoord (coordtype *c) const |
Fills in the given table with the right 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 |
Return shashing 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 = tCubeVar<coordtype>::MaxDim |
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 spcdim, int celldim=-1) |
Initializes a new cell given its two corners. More... | |
Private Attributes | |
coordtype * | tab |
The lower left etc. corner of the cell. More... | |
int_t | n |
High 6 bits = the dimension of the space. More... | |
Friends | |
int | operator== (const tCellVar< coordtype > &c1, const tCellVar< 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.
In this implementation, an array is allocated for the coordinates of the minimal vertex of a cell.
typedef coordtype chomp::homology::tCellVar< coordtype >::CoordType |
typedef tCubeVar<coordtype>::PointBase chomp::homology::tCellVar< coordtype >::PointBase |
enum chomp::homology::tCellVar::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 216 of file cellvar.h.
|
inline |
The constructor of a cell spanning from one point to another.
Definition at line 223 of file cellvar.h.
|
inline |
The constructor of a cell as an intersection of two cubes.
Definition at line 397 of file cellvar.h.
References chomp::homology::tPointBase< coordtype >::getwrapping().
|
inline |
The constructor of an arbitrary k-dimensional face of a full cube.
Definition at line 474 of file cellvar.h.
|
inlineexplicit |
The constructor of a full-dimensional cubical cell.
Definition at line 451 of file cellvar.h.
|
inline |
The constructor of a projection of a cell to the given number of coordinates that start at the given offset.
Definition at line 249 of file cellvar.h.
References chomp::homology::NumBits.
|
inline |
The copy constructor.
Definition at line 269 of file cellvar.h.
References chomp::homology::copycoord().
|
inline |
Returns the dimension of the cubical cell.
Definition at line 231 of file cellvar.h.
References chomp::homology::NumBits.
|
inline |
|
inline |
|
inlineprivate |
Initializes a new cell given its two corners.
Definition at line 182 of file cellvar.h.
References chomp::homology::NumBits, and chomp::homology::tPointBase< coordtype >::wrapcopy().
|
inline |
|
static |
|
inline |
The assignment operator.
Definition at line 280 of file cellvar.h.
References chomp::homology::copycoord().
|
static |
|
inline |
Fills in the given table with the right corner coordinates.
Definition at line 315 of file cellvar.h.
References chomp::homology::tPointBase< coordtype >::wrapcoord().
|
inline |
Returns the dimension of the embedding space of the cubical cell.
Definition at line 243 of file cellvar.h.
References chomp::homology::NumBits.
|
friend |
Verifies if two cells are identical.
Definition at line 152 of file cellvar.h.
|
static |
The maximal dimension of a cell.
|
static |
|
private |
|
static |
|
private |