The Original CHomP Software
|
A general cubical cell with additional information about the layer number. More...
#include <twolayer.h>
Public Types | |
enum | OutputBitValues { BitProduct = 0x01 , BitSpace = 0x02 } |
How to output the cell: As a cartesian product or by two opposite vertices? Also, should ' ' be inserted? More... | |
typedef theLayerType | LayerType |
The type for keeping the layer number. More... | |
typedef tCell | CellType |
The type for keeping the cell at the given layer. More... | |
typedef tCell::CoordType | CoordType |
The type of the coordinates. More... | |
typedef tCell::PointBase | PointBase |
The point base (for wrapping and tabulating coordinates). More... | |
Public Member Functions | |
tCell2l () | |
The default constructor. More... | |
tCell2l (const tCell &_q, const LayerType &_l) | |
The constructor of a cell at a given layer. More... | |
tCell2l (const CoordType *c1, const CoordType *c2, int spcdim, int celldim=-1, int layer=0) | |
The constructor of a cell spanning from one point to another. More... | |
template<class tCube > | |
tCell2l (const tCube2l< tCube > &q1, const tCube2l< tCube > &q2) | |
The constructor of a cell as an intersection of two cubes. More... | |
template<class tCube > | |
tCell2l (const tCube2l< tCube > &c, int facedim) | |
The constructor of an arbitrary k-dimensional face of a full cube. More... | |
template<class tCube > | |
tCell2l (const tCube2l< tCube > &c) | |
The constructor of a full-dimensional cubical cell. More... | |
template<class tCellSrc > | |
tCell2l (const tCell2l< tCellSrc > &q, int offset, int ncoords) | |
The constructor of a projection of a cell to the given number of coordinates that start at the given offset. More... | |
tCell2l (const tCell2l &c) | |
The copy constructor. More... | |
tCell2l & | operator= (const tCell2l &c) |
The assignment operator. More... | |
int | dim () const |
Returns the dimension of the cubical cell. More... | |
int | spacedim () const |
Returns the dimension of the embedding space. More... | |
template<class intType > | |
intType * | leftcoord (intType *c) const |
Fills the given table with the left corner coordinates. More... | |
template<class intType > | |
intType * | rightcoord (intType *c) const |
Fills the given table with the right corner 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 tCell & | cell () const |
Returns the cell without the layer. More... | |
void | layer (const typename tCell2l< tCell >::LayerType &newlayer) |
Sets the layer number. More... | |
template<class tCell > | |
tCell2l (const typename tCell2l< tCell >::CoordType *c1, const typename tCell2l< tCell >::CoordType *c2, int spcdim, int celldim, int layer) | |
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 | identify (const hashedset< tCell > &s, int dim) |
Sets the given set of cells for the identification of layers. More... | |
static const hashedset< tCell > & | identify () |
Returns the set of cells for the identification of layers. More... | |
static LayerType | droplayer (const tCell &q, const LayerType &layer) |
Drops the layer of the cell if necessary by the identification. More... | |
Static Public Attributes | |
static const int | MaxDim = tCell::MaxDim |
The maximal dimension of a cube. More... | |
static int | OutputBits = 0 |
Private Attributes | |
tCell | q |
The actual cubical cell at the given layer. More... | |
LayerType | l |
The layer to which the cell belongs. More... | |
Static Private Attributes | |
static hashedset< tCell > | idset |
The set of cells at which the identification takes place. More... | |
static int | iddim |
The space dimension of cells for which the identification takes place. More... | |
A general cubical cell with additional information about the layer number.
By default, the layer number is zero, unless set otherwise.
Definition at line 482 of file twolayer.h.
typedef tCell chomp::homology::tCell2l< tCell >::CellType |
The type for keeping the cell at the given layer.
Definition at line 489 of file twolayer.h.
typedef tCell::CoordType chomp::homology::tCell2l< tCell >::CoordType |
The type of the coordinates.
Definition at line 492 of file twolayer.h.
typedef theLayerType chomp::homology::tCell2l< tCell >::LayerType |
The type for keeping the layer number.
Definition at line 486 of file twolayer.h.
typedef tCell::PointBase chomp::homology::tCell2l< tCell >::PointBase |
The point base (for wrapping and tabulating coordinates).
Definition at line 498 of file twolayer.h.
enum chomp::homology::tCell2l::OutputBitValues |
How to output the cell: As a cartesian product or by two opposite vertices? Also, should ' ' be inserted?
Enumerator | |
---|---|
BitProduct | |
BitSpace |
Definition at line 563 of file twolayer.h.
|
inline |
The default constructor.
Definition at line 619 of file twolayer.h.
|
inline |
The constructor of a cell at a given layer.
Definition at line 625 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::idset, chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
chomp::homology::tCell2l< tCell >::tCell2l | ( | const CoordType * | c1, |
const CoordType * | c2, | ||
int | spcdim, | ||
int | celldim = -1 , |
||
int | layer = 0 |
||
) |
The constructor of a cell spanning from one point to another.
|
inline |
The constructor of a cell as an intersection of two cubes.
Definition at line 646 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::idset, chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
|
inline |
The constructor of an arbitrary k-dimensional face of a full cube.
Definition at line 658 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::droplayer(), chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
|
inlineexplicit |
The constructor of a full-dimensional cubical cell.
Definition at line 667 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::idset, chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
|
inline |
The constructor of a projection of a cell to the given number of coordinates that start at the given offset.
Definition at line 677 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::idset, chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
|
inline |
|
inline |
Definition at line 634 of file twolayer.h.
References chomp::homology::tCell2l< tCell >::idset, chomp::homology::tCell2l< tCell >::l, and chomp::homology::tCell2l< tCell >::q.
|
inline |
Returns the cell without the layer.
Definition at line 777 of file twolayer.h.
|
inline |
Returns the dimension of the cubical cell.
Definition at line 708 of file twolayer.h.
|
inlinestatic |
Drops the layer of the cell if necessary by the identification.
Definition at line 805 of file twolayer.h.
Referenced by chomp::homology::tCell2l< tCell >::tCell2l().
|
inline |
Returns the hash key no. 1 required by the hashing set template.
Definition at line 734 of file twolayer.h.
References chomp::homology::hashkey1().
|
inline |
Returns the hash key no. 2 required by the hashing set template.
Definition at line 746 of file twolayer.h.
References chomp::homology::hashkey2().
|
inlinestatic |
Returns the set of cells for the identification of layers.
Definition at line 799 of file twolayer.h.
Referenced by chomp::homology::createimages(), and chomp::homology::intersection2l().
|
inlinestatic |
Sets the given set of cells for the identification of layers.
Definition at line 791 of file twolayer.h.
|
inline |
Returns the layer number.
Definition at line 770 of file twolayer.h.
|
inline |
Sets the layer number.
Definition at line 783 of file twolayer.h.
|
inline |
Fills the given table with the left corner coordinates.
Definition at line 721 of file twolayer.h.
|
inlinestatic |
Returns the name of the objects represented by this class.
Definition at line 758 of file twolayer.h.
|
inline |
|
inlinestatic |
Returns the plural name of the objects represented by this class.
Definition at line 764 of file twolayer.h.
|
inline |
Fills the given table with the right corner coordinates.
Definition at line 728 of file twolayer.h.
|
inline |
Returns the dimension of the embedding space.
Definition at line 714 of file twolayer.h.
|
staticprivate |
The space dimension of cells for which the identification takes place.
For twice this dimension, the cells are identified by considering both projections.
Definition at line 595 of file twolayer.h.
|
staticprivate |
The set of cells at which the identification takes place.
Definition at line 590 of file twolayer.h.
Referenced by chomp::homology::tCell2l< tCell >::tCell2l().
|
private |
The layer to which the cell belongs.
Definition at line 601 of file twolayer.h.
Referenced by chomp::homology::tCell2l< tCell >::tCell2l().
|
static |
The maximal dimension of a cube.
Definition at line 495 of file twolayer.h.
|
static |
Definition at line 568 of file twolayer.h.
|
private |
The actual cubical cell at the given layer.
Definition at line 598 of file twolayer.h.
Referenced by chomp::homology::tCell2l< tCell >::tCell2l().