The Original CHomP Software
|
This class defines a hypercube in R^n with edges parallel to the axes and with size 1 in each direction. More...
#include <cubefix.h>
Public Types | |
typedef coordtype | CoordType |
The type of coordinates of a cube. More... | |
typedef tCellFix< dimfix, coordtype > | CellType |
The type of a cell related to this cube type. More... | |
typedef tWrapBase< coordtype > | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCubeFix () | |
The default constructor. More... | |
tCubeFix (const coordtype *c, int dim=0) | |
The constructor of a cube from a table of coordinates. More... | |
tCubeFix (int number, int dim) | |
The constructor of a cube from a number (invalid in this class). More... | |
tCubeFix (const tCubeFix< dimfix, coordtype > &c) | |
The copy constructor. More... | |
tCubeFix< dimfix, coordtype > & | operator= (const tCubeFix< dimfix, coordtype > &c) |
The assignment operator. More... | |
int | dim () const |
Returns the dimension of the cube. More... | |
coordtype * | coord (coordtype *c) const |
Fills out the coordinate table with the cube's 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 = 512 |
The maximal dimension of a cube (unused). More... | |
Private Attributes | |
coordtype | tab [dimfix] |
A table with the coordinates of the minimal vertex of the cube. More... | |
Friends | |
class | tCellFix< dimfix, coordtype > |
int | operator== (const tCubeFix< dimfix, coordtype > &c1, const tCubeFix< dimfix, coordtype > &c2) |
The operator == for cubes. More... | |
This class defines a hypercube in R^n with edges parallel to the axes and with size 1 in each direction.
This implementation assumes that the embedding space dimension is known at time of compilation.
typedef tCellFix<dimfix,coordtype> chomp::homology::tCubeFix< dimfix, coordtype >::CellType |
typedef coordtype chomp::homology::tCubeFix< dimfix, coordtype >::CoordType |
typedef tWrapBase<coordtype> chomp::homology::tCubeFix< dimfix, coordtype >::PointBase |
|
inline |
|
inline |
The constructor of a cube from a table of coordinates.
Definition at line 147 of file cubefix.h.
References chomp::homology::tPointBase< coordtype >::wrapcopy().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
static |
|
friend |
The operator == for cubes.
Definition at line 123 of file cubefix.h.
|
friend |
|
static |
|
private |