The iterator of the set of cubes within a bitmap. More...
#include <bincube.h>
Public Types | |
| typedef int | CoordType |
| The type of coordinates. | |
Public Member Functions | |
| iterator (bincube< Dim, twoPower > *bcub=0, int num=-1) | |
| The default constructor. | |
| iterator & | operator++ () |
| The preincrement operator. | |
| iterator & | operator++ (int) |
| The postincrement operator. | |
| operator int () const | |
| Conversion of an iterator to int (temporarily). | |
| const int * | coord () const |
| The coordinates of the cube. | |
| template<class intType > | |
| intType * | coord (intType *tab) const |
| The coordinates of the cube. | |
Static Public Member Functions | |
| static int | dim () |
| The dimension of the cube. | |
Public Attributes | |
| bincube< Dim, twoPower > * | b |
| The binary cube in which the cube is contained. | |
| int | n |
| The number of the current bit in the set. | |
Static Public Attributes | |
| static const int | MaxDim = Dim |
| The maximal possible dimension of the cube. | |
Friends | |
| class | bincube< Dim, twoPower > |
The iterator of the set of cubes within a bitmap.
Definition at line 149 of file bincube.h.
| typedef int chomp::homology::bincube< Dim, twoPower >::iterator::CoordType |
| chomp::homology::bincube< Dim, twoPower >::iterator::iterator | ( | bincube< Dim, twoPower > * | bcub = 0, |
|
| int | num = -1 | |||
| ) | [inline] |
| const int * chomp::homology::bincube< Dim, twoPower >::iterator::coord | ( | ) | const [inline] |
The coordinates of the cube.
Definition at line 650 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator::operator++().
{
return 0;
} /* bincube::coord */
| intType * chomp::homology::bincube< Dim, twoPower >::iterator::coord | ( | intType * | tab | ) | const [inline] |
The coordinates of the cube.
Definition at line 657 of file bincube.h.
References chomp::homology::bincube< Dim, twoPower >::iterator::n, and chomp::homology::bincube< Dim, twoPower >::num2coord().
{
return bincube<Dim,twoPower>::num2coord (n, tab);
} /* bincube::coord */
| int chomp::homology::bincube< Dim, twoPower >::iterator::dim | ( | ) | [inline, static] |
| chomp::homology::bincube< Dim, twoPower >::iterator::operator int | ( | ) | const [inline] |
Conversion of an iterator to int (temporarily).
Reimplemented in chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator.
Definition at line 638 of file bincube.h.
References chomp::homology::bincube< Dim, twoPower >::iterator::n.
{
return n;
} /* bincube::iterator::operator int */
| bincube< Dim, twoPower >::iterator & chomp::homology::bincube< Dim, twoPower >::iterator::operator++ | ( | ) | [inline] |
The preincrement operator.
Searches for the next cube in the set.
Reimplemented in chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator.
Definition at line 620 of file bincube.h.
References chomp::homology::bincube< Dim, twoPower >::iterator::b, chomp::homology::bincube< Dim, twoPower >::findcube(), and chomp::homology::bincube< Dim, twoPower >::iterator::n.
| bincube< Dim, twoPower >::iterator & chomp::homology::bincube< Dim, twoPower >::iterator::operator++ | ( | int | ) | [inline] |
The postincrement operator.
Reimplemented in chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator.
Definition at line 630 of file bincube.h.
{
iterator prev = *this;
++ *this;
return prev;
} /* bincube::iterator::operator ++ */
friend class bincube< Dim, twoPower > [friend] |
| bincube<Dim,twoPower>* chomp::homology::bincube< Dim, twoPower >::iterator::b |
The binary cube in which the cube is contained.
Reimplemented in chomp::homology::bincube< Dim, twoPower >::neighborhood_iterator.
Definition at line 184 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::iterator::operator++().
const int chomp::homology::bincube< Dim, twoPower >::iterator::MaxDim = Dim [static] |
| int chomp::homology::bincube< Dim, twoPower >::iterator::n |
The number of the current bit in the set.
Definition at line 187 of file bincube.h.
Referenced by chomp::homology::bincube< Dim, twoPower >::iterator::coord(), chomp::homology::bincube< Dim, twoPower >::iterator::operator int(), and chomp::homology::bincube< Dim, twoPower >::iterator::operator++().
1.7.1