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 <cubevar.h>
Public Types | |
typedef coordtype | CoordType |
The type of coordinates of a cube. More... | |
typedef tCellVar< 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 | |
tCubeVar () | |
The default constructor. More... | |
tCubeVar (const coordtype *c, int dim) | |
The constructor from a table of coordinates. More... | |
tCubeVar (int number, int dim) | |
The constructor from a number (invalid in this class). More... | |
tCubeVar (const tCubeVar< coordtype > &c) | |
The copy constructor. More... | |
tCubeVar< coordtype > & | operator= (const tCubeVar< coordtype > &c) |
The assignment operator. More... | |
~tCubeVar () | |
The destructor. 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 = 50 |
The maximal dimension of a cube. More... | |
Private Member Functions | |
coordtype * | initialize (int dim) |
Initializes the data for a cube of a given dimension > 0. More... | |
Private Attributes | |
coordtype * | tab |
The table containing the coordinates of the cube, as well as its dimension (at tab [0]). More... | |
Friends | |
class | tCellVar< coordtype > |
int | operator== (const tCubeVar< coordtype > &c1, const tCubeVar< 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.
In this implementation, an array is allocated for the coordinates of the minimal vertex of a cube.
typedef tCellVar<coordtype> chomp::homology::tCubeVar< coordtype >::CellType |
typedef coordtype chomp::homology::tCubeVar< coordtype >::CoordType |
typedef tWrapBase<coordtype> chomp::homology::tCubeVar< coordtype >::PointBase |
|
inline |
The default constructor.
Definition at line 166 of file cubevar.h.
|
inline |
The constructor from a table of coordinates.
Definition at line 173 of file cubevar.h.
References chomp::homology::tPointBase< coordtype >::wrapcopy().
|
inline |
|
inline |
The copy constructor.
Definition at line 191 of file cubevar.h.
References chomp::homology::copycoord().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Initializes the data for a cube of a given dimension > 0.
Returns the pointer to the coordinates table (i.e. tab + 1).
|
inlinestatic |
|
inline |
The assignment operator.
Definition at line 204 of file cubevar.h.
References chomp::homology::copycoord().
|
inlinestatic |
|
friend |
The operator == for cubes.
Definition at line 127 of file cubevar.h.
|
friend |
|
static |
|
private |