The Original CHomP Software
|
The neighborhood of a cube. More...
#include <bincube.h>
Public Member Functions | |
neighborhood_iterator (bincube< Dim, twoPower > *bcub=0, int n=-1, int inicur=-1) | |
The default constructor. More... | |
neighborhood_iterator & | operator++ () |
The preincrement operator. More... | |
neighborhood_iterator & | operator++ (int) |
The postincrement operator. More... | |
operator int () const | |
Conversion to the number of the neighbor cube (temp!). More... | |
![]() | |
iterator (bincube< Dim, twoPower > *bcub=0, int num=-1) | |
The default constructor. More... | |
iterator & | operator++ () |
The preincrement operator. More... | |
iterator & | operator++ (int) |
The postincrement operator. More... | |
operator int () const | |
Conversion of an iterator to int (temporarily). More... | |
const int * | coord () const |
The coordinates of the cube. More... | |
template<class intType > | |
intType * | coord (intType *tab) const |
The coordinates of the cube. More... | |
Protected Attributes | |
bincube< Dim, twoPower > * | b |
Conversion to a cube iterator. More... | |
int | coord [Dim] |
The coordinates of the middle cube in the neighborhood. More... | |
int | ncoord [Dim] |
The coordinates of the current neighbor. More... | |
int | curnum |
The number of the current neighbor in the binary cube. More... | |
int | cur |
The neighbor counter (up to max_neighbors). More... | |
Additional Inherited Members | |
![]() | |
typedef int | CoordType |
The type of coordinates. More... | |
![]() | |
static int | dim () |
The dimension of the cube. More... | |
![]() | |
bincube< Dim, twoPower > * | b |
The binary cube in which the cube is contained. More... | |
int | n |
The number of the current bit in the set. More... | |
![]() | |
static const int | MaxDim = Dim |
The maximal possible dimension of the cube. More... | |
The neighborhood of a cube.
|
inline |
The default constructor.
Definition at line 715 of file bincube.h.
References chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::b, chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::coord, chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::ncoord, and chomp::homology::bincube< Dim, twoPower >::num2coord().
|
inline |
|
inline |
The preincrement operator.
Searches for the next cube in the neighborhood.
Definition at line 738 of file bincube.h.
References chomp::homology::bit2neighborAlg(), chomp::homology::bincube< Dim, twoPower >::check(), and chomp::homology::bincube< Dim, twoPower >::coord2num().
|
inline |
The postincrement operator.
Definition at line 768 of file bincube.h.
|
protected |
Conversion to a cube iterator.
Operator == to compare two neighborhood iterators. The binary cube in which the neighborhood is contained.
Definition at line 230 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::neighborhood_iterator().
|
protected |
The coordinates of the middle cube in the neighborhood.
Definition at line 233 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::neighborhood_iterator().
|
protected |
|
protected |
|
protected |
The coordinates of the current neighbor.
Definition at line 236 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::neighborhood_iterator().