An elementary cubical cell with vertices of integer type. More...
#include <cubcell.h>
Public Types | |
typedef CoordT | CoordType |
The type of coordinates. | |
Public Member Functions | |
tCubCell () | |
The default constructor of an empty cube. | |
template<class CoordArray > | |
tCubCell (int dimension, const CoordArray &coordinates) | |
The constructor of a full cube from an array of coordinates. | |
template<class CoordArray > | |
tCubCell (int dimension, const CoordArray &left, const CoordArray &right) | |
The constructor of a full cube from two arrays of coordinates. | |
tCubCell (const tCubCell< CoordT > &c) | |
The copy constructor. | |
tCubCell (const tCubCell< CoordT > &c, int n) | |
The constructor of the n-th boundary cube. | |
tCubCell (const tCubCell< CoordT > &c, int n, int side) | |
The constructor of the n-th component of the Alexander-Whitney diagonal, either the left one (if side = 0), or the right one (if side = 1). | |
tCubCell< CoordT > & | operator= (const tCubCell< CoordT > &s) |
The assignment operator. | |
~tCubCell () | |
The destructor. | |
int | spaceDim () const |
Returns the dimension of the embedding space. | |
int | dim () const |
Returns the dimension of the elementary cube. | |
const CoordT | left (int n) const |
Returns the n-th left coordinate of the elementary cube. | |
const CoordT | right (int n) const |
Returns the n-th right coordinate of the elementary cube. | |
int | boundaryLength () const |
Returns the length of the boundary of the elementary cube. | |
int | boundaryCoef (int n) const |
Returns the n-th coefficient in the boundary of the cube. | |
int | diagonalLength () const |
Returns the number of terms in the Alexander-Whitneney diagonal. | |
bool | operator== (const tCubCell< CoordT > &s) const |
The equality operator. | |
void | swap (tCubCell< CoordT > &s) |
Swaps the data between two cubical cells. | |
Private Attributes | |
int_t | n1 |
The number that defines the left corner of the elementary cube. | |
int_t | n2 |
The number that defines the right corner of the elementary cube. |
An elementary cubical cell with vertices of integer type.
Definition at line 52 of file cubcell.h.
tCubCell< CoordT >::tCubCell | ( | int | dimension, |
const CoordArray & | coordinates | ||
) | [inline] |
The constructor of a full cube from an array of coordinates.
Definition at line 137 of file cubcell.h.
References tCubCell< CoordT >::n1, and tCubCell< CoordT >::n2.
tCubCell< CoordT >::tCubCell | ( | int | dimension, |
const CoordArray & | left, | ||
const CoordArray & | right | ||
) | [inline] |
The constructor of a full cube from two arrays of coordinates.
Definition at line 163 of file cubcell.h.
References tCubCell< CoordT >::n1, and tCubCell< CoordT >::n2.
tCubCell< CoordT >::tCubCell | ( | const tCubCell< CoordT > & | c, |
int | n, | ||
int | side | ||
) | [inline] |
The constructor of the n-th component of the Alexander-Whitney diagonal, either the left one (if side = 0), or the right one (if side = 1).
Definition at line 255 of file cubcell.h.
References diagVersion.
int tCubCell< CoordT >::boundaryCoef | ( | int | n ) | const [inline] |
int tCubCell< CoordT >::boundaryLength | ( | ) | const [inline] |
int tCubCell< CoordT >::diagonalLength | ( | ) | const [inline] |
int tCubCell< CoordT >::dim | ( | ) | const [inline] |
const CoordT tCubCell< CoordT >::left | ( | int | n ) | const [inline] |
const CoordT tCubCell< CoordT >::right | ( | int | n ) | const [inline] |
int tCubCell< CoordT >::spaceDim | ( | ) | const [inline] |
The number that defines the left corner of the elementary cube.
The dimension of the embedding space is stored in high bits of this number.
Definition at line 118 of file cubcell.h.
Referenced by tCubCell< CoordT >::tCubCell().
The number that defines the right corner of the elementary cube.
The dimension of the cubical cell is stored in the high bits of this number.
Definition at line 123 of file cubcell.h.
Referenced by tCubCell< CoordT >::tCubCell().