The Original CHomP Software
|
A (hyper)cube with additional information about the layer number. More...
#include <twolayer.h>
Public Types | |
typedef theLayerType | LayerType |
The type for keeping the layer number. More... | |
typedef tCube | CubeType |
The type for keeping the cube at the given layer. More... | |
typedef tCube::CoordType | CoordType |
The type of the coordinates. More... | |
typedef tCell2l< typename tCube::CellType > | CellType |
The type of a cell related to this cube type. More... | |
typedef tCube::PointBase | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCube2l () | |
The default constructor. More... | |
tCube2l (const tCube &_q, const LayerType &_l) | |
The constructor of a cube at a given layer. More... | |
tCube2l (const CoordType *coord, int dim) | |
The constructor from a table of coordinates. More... | |
tCube2l (const CoordType *coord, int dim, const LayerType &_l) | |
The constructor from a table of coordinates and a layer. More... | |
tCube2l (int_t number, int dim) | |
The constructor from a number (if valid for the base class). More... | |
tCube2l (const tCube2l &c) | |
The copy constructor. More... | |
tCube2l & | operator= (const tCube2l &c) |
The assignment operator. More... | |
int | dim () const |
Returns the dimension of the cube. More... | |
template<class intType > | |
intType * | coord (intType *c) const |
Fills out the coordinate table with the cube's coordinates. More... | |
int_t | hashkey1 () const |
Returns the hash key no. 1 required by the hashing set template. More... | |
int_t | hashkey2 () const |
Returns the hash key no. 2 required by the hashing set template. More... | |
const LayerType & | layer () const |
Returns the layer number. More... | |
const tCube & | cube () const |
Returns the cube without the layer. More... | |
void | layer (const typename tCube2l< tCube >::LayerType &newlayer) |
Sets the layer number. 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 void | setlayers (const hashedset< tCube > &X, const hashedset< tCube > &A) |
Defines the set of cubes at layer 1 (X). More... | |
static const hashedset< tCube > & | layer1 () |
Returns the set of cubes at layer 1. More... | |
static const hashedset< tCube > & | layer1b () |
Returns the set of cubes at the boundary of layer 1. More... | |
static const hashedset< tCube > & | layer0 () |
Returns the set of cubes at layer 0 which are neighbors of cubes at layer 1 by the identification of layers. More... | |
Static Public Attributes | |
static const int | MaxDim = tCube::MaxDim |
The maximal dimension of a cube. More... | |
Private Attributes | |
tCube | q |
The actual cube at the given layer. More... | |
LayerType | l |
The layer to which the cube belongs. More... | |
Static Private Attributes | |
static hashedset< tCube > | layer1set |
The set of full-dimensional cubes at layer 1. More... | |
static hashedset< tCube > | layer1boundary |
The set of full-dimensional cubes at layer 1 adjacent to cubes at layer 0. More... | |
static hashedset< tCube > | layer0set |
The set of full-dimensional cubes at layer 0 which are adjacent to the cubes at layer 1. More... | |
A (hyper)cube with additional information about the layer number.
By default, the layer number is zero, unless set otherwise.
Definition at line 79 of file twolayer.h.
typedef tCell2l<typename tCube::CellType> chomp::homology::tCube2l< tCube >::CellType |
The type of a cell related to this cube type.
Definition at line 92 of file twolayer.h.
typedef tCube::CoordType chomp::homology::tCube2l< tCube >::CoordType |
The type of the coordinates.
Definition at line 89 of file twolayer.h.
typedef tCube chomp::homology::tCube2l< tCube >::CubeType |
The type for keeping the cube at the given layer.
Definition at line 86 of file twolayer.h.
typedef theLayerType chomp::homology::tCube2l< tCube >::LayerType |
The type for keeping the layer number.
Definition at line 83 of file twolayer.h.
typedef tCube::PointBase chomp::homology::tCube2l< tCube >::PointBase |
The point base (for wrapping and tabulating coordinates).
Definition at line 98 of file twolayer.h.
|
inline |
The default constructor.
Definition at line 203 of file twolayer.h.
|
inline |
The constructor of a cube at a given layer.
Definition at line 209 of file twolayer.h.
|
inline |
The constructor from a table of coordinates.
Definition at line 216 of file twolayer.h.
|
inline |
|
inline |
|
inline |
|
inline |
Fills out the coordinate table with the cube's coordinates.
Definition at line 258 of file twolayer.h.
|
inline |
Returns the cube without the layer.
Definition at line 300 of file twolayer.h.
|
inline |
Returns the dimension of the cube.
Definition at line 251 of file twolayer.h.
|
inline |
Returns the hash key no. 1 required by the hashing set template.
Definition at line 264 of file twolayer.h.
References chomp::homology::hashkey1().
|
inline |
Returns the hash key no. 2 required by the hashing set template.
Definition at line 276 of file twolayer.h.
References chomp::homology::hashkey2().
|
inline |
Returns the layer number.
Definition at line 306 of file twolayer.h.
|
inline |
Sets the layer number.
Definition at line 313 of file twolayer.h.
|
inlinestatic |
Returns the set of cubes at layer 0 which are neighbors of cubes at layer 1 by the identification of layers.
Definition at line 379 of file twolayer.h.
Referenced by chomp::homology::getneighbors_generate(), and chomp::homology::getneighbors_scan().
|
inlinestatic |
Returns the set of cubes at layer 1.
Definition at line 367 of file twolayer.h.
Referenced by chomp::homology::getneighbors_generate().
|
inlinestatic |
Returns the set of cubes at the boundary of layer 1.
Definition at line 373 of file twolayer.h.
|
inlinestatic |
Returns the name of the objects represented by this class.
Definition at line 288 of file twolayer.h.
|
inline |
|
inlinestatic |
Returns the plural name of the objects represented by this class.
Definition at line 294 of file twolayer.h.
|
inlinestatic |
Defines the set of cubes at layer 1 (X).
All the other cubes are at layer 0, and the layers are glued along the intersection between X and A. The sets X and A must be disjoint. A should only contain the neighbors of X.
Definition at line 321 of file twolayer.h.
References chomp::homology::boundarycell(), chomp::homology::boundarylength(), and chomp::homology::getneighbors().
|
private |
The layer to which the cube belongs.
Definition at line 172 of file twolayer.h.
|
staticprivate |
The set of full-dimensional cubes at layer 0 which are adjacent to the cubes at layer 1.
Definition at line 185 of file twolayer.h.
|
staticprivate |
The set of full-dimensional cubes at layer 1 adjacent to cubes at layer 0.
Definition at line 181 of file twolayer.h.
|
staticprivate |
The set of full-dimensional cubes at layer 1.
The identification takes place at the boundary of these cubes with the set defined as layer 0.
Definition at line 177 of file twolayer.h.
|
static |
The maximal dimension of a cube.
Definition at line 95 of file twolayer.h.
|
private |
The actual cube at the given layer.
Definition at line 169 of file twolayer.h.