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 <cubebase.h>
Public Types | |
typedef coordtype | CoordType |
The type of coordinates of a cube. More... | |
typedef tCellBase< coordtype > | CellType |
The type of a cell related to this cube type. More... | |
typedef tPointBase< coordtype > | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCubeBase () | |
The default constructor. More... | |
tCubeBase (const coordtype *c, int dim) | |
The constructor of a cube from a table of coordinates. More... | |
tCubeBase (int_t number, int dim) | |
The constructor of a cube from a number (should be used with caution). More... | |
tCubeBase (const tCubeBase< coordtype > &c) | |
The copy constructor. More... | |
tCubeBase< coordtype > & | operator= (const tCubeBase< 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 = MaxBasDim |
The maximal dimension of a cube. More... | |
Private Member Functions | |
int_t | num () const |
Returns the actual number of the cube in the point base. More... | |
Private Attributes | |
int_t | n |
The number that represents the full cube. More... | |
Friends | |
class | tCellBase< coordtype > |
int | operator== (const tCubeBase< coordtype > &c1, const tCubeBase< 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 uses a cube base class for indexing all the possible coordinate combinations that appear in the program.
Definition at line 71 of file cubebase.h.
typedef tCellBase<coordtype> chomp::homology::tCubeBase< coordtype >::CellType |
The type of a cell related to this cube type.
Definition at line 78 of file cubebase.h.
typedef coordtype chomp::homology::tCubeBase< coordtype >::CoordType |
The type of coordinates of a cube.
Definition at line 75 of file cubebase.h.
typedef tPointBase<coordtype> chomp::homology::tCubeBase< coordtype >::PointBase |
The point base (for wrapping and tabulating coordinates).
Definition at line 84 of file cubebase.h.
|
inline |
The default constructor.
Definition at line 157 of file cubebase.h.
|
inline |
The constructor of a cube from a table of coordinates.
Definition at line 164 of file cubebase.h.
References chomp::homology::tPointBase< coordtype >::number(), and chomp::homology::NumBits.
|
inline |
The constructor of a cube from a number (should be used with caution).
Definition at line 179 of file cubebase.h.
References chomp::homology::NumBits.
|
inline |
The copy constructor.
Definition at line 186 of file cubebase.h.
|
inline |
Fills out the coordinate table with the cube's coordinates.
Definition at line 218 of file cubebase.h.
References chomp::homology::tPointBase< coordtype >::coord().
|
inline |
Returns the dimension of the cube.
Definition at line 201 of file cubebase.h.
References chomp::homology::NumBits.
|
inline |
|
inline |
|
inlinestatic |
Returns the name of the objects represented by this class.
Definition at line 256 of file cubebase.h.
|
inlineprivate |
Returns the actual number of the cube in the point base.
Definition at line 149 of file cubebase.h.
References chomp::homology::NumMask.
|
inline |
The assignment operator.
Definition at line 193 of file cubebase.h.
|
inlinestatic |
Returns the plural name of the objects represented by this class.
Definition at line 262 of file cubebase.h.
Referenced by chomp::homology::readelements(), and chomp::homology::saveelements().
|
friend |
The operator == for cubes.
Definition at line 126 of file cubebase.h.
|
friend |
Definition at line 126 of file cubebase.h.
|
static |
The maximal dimension of a cube.
Definition at line 81 of file cubebase.h.
Referenced by chomp::homology::ComputeBettiNumbers(), chomp::homengin::PPengine::dimsupported(), and chomp::homology::SetSpaceWrapping().
|
private |
The number that represents the full cube.
High bits keep the space dimension, the remaining bits form the number of the cube in an appropriate pointset.
Definition at line 142 of file cubebase.h.