#include <PlayaBlockIteratorDecl.hpp>
Public Member Functions | |
BlockIterator () | |
bool | operator== (const BlockIterator< Scalar > &other) const |
bool | operator!= (const BlockIterator< Scalar > &other) const |
bool | operator< (const BlockIterator< Scalar > &other) const |
BlockIterator< Scalar > | operator++ (int) |
const VectorSpace< Scalar > & | space () const |
std::ostream & | print (std::ostream &os) const |
const std::deque< int > & | blockIndex () const |
bool | atEnd () const |
Static Public Member Functions | |
static bool & | debug () |
Protected Member Functions | |
void | goToStart (const VectorSpace< Scalar > &space, std::deque< int > &pos) const |
BlockIterator (const VectorSpace< Scalar > &space, bool atEnd) | |
bool | advance (int level) |
Related Functions | |
(Note that these are not member functions.) | |
template<class Scalar > | |
std::ostream & | operator<< (std::ostream &os, const Playa::BlockIterator< Scalar > &i) |
Definition at line 36 of file PlayaBlockIteratorDecl.hpp.
Playa::BlockIterator< Scalar >::BlockIterator | ( | ) | [inline] |
Empty ctor
Definition at line 45 of file PlayaBlockIteratorDecl.hpp.
Playa::BlockIterator< Scalar >::BlockIterator | ( | const VectorSpace< Scalar > & | space, | |
bool | atEnd | |||
) | [inline, protected] |
Constructor is private: the construction is always done inside the begin and end methods of vector space.
Definition at line 135 of file PlayaBlockIteratorImpl.hpp.
bool Playa::BlockIterator< Scalar >::operator== | ( | const BlockIterator< Scalar > & | other | ) | const [inline] |
Compare two iterators
Definition at line 18 of file PlayaBlockIteratorImpl.hpp.
bool Playa::BlockIterator< Scalar >::operator!= | ( | const BlockIterator< Scalar > & | other | ) | const [inline] |
Compare two iterators
Definition at line 53 of file PlayaBlockIteratorDecl.hpp.
bool Playa::BlockIterator< Scalar >::operator< | ( | const BlockIterator< Scalar > & | other | ) | const [inline] |
Compare two iterators
Definition at line 39 of file PlayaBlockIteratorImpl.hpp.
BlockIterator< Scalar > Playa::BlockIterator< Scalar >::operator++ | ( | int | ) | [inline] |
Advance the block iterator
Definition at line 69 of file PlayaBlockIteratorImpl.hpp.
const VectorSpace< Scalar > & Playa::BlockIterator< Scalar >::space | ( | ) | const [inline] |
Definition at line 128 of file PlayaBlockIteratorImpl.hpp.
std::ostream & Playa::BlockIterator< Scalar >::print | ( | std::ostream & | os | ) | const [inline] |
Print the iterator
Definition at line 151 of file PlayaBlockIteratorImpl.hpp.
const std::deque<int>& Playa::BlockIterator< Scalar >::blockIndex | ( | ) | const [inline] |
Definition at line 71 of file PlayaBlockIteratorDecl.hpp.
bool Playa::BlockIterator< Scalar >::atEnd | ( | ) | const [inline] |
Definition at line 74 of file PlayaBlockIteratorDecl.hpp.
static bool& Playa::BlockIterator< Scalar >::debug | ( | ) | [inline, static] |
Set to true (by doing BlockIterator<Scalar>::debug()=true) to trace the iterator
Definition at line 78 of file PlayaBlockIteratorDecl.hpp.
void Playa::BlockIterator< Scalar >::goToStart | ( | const VectorSpace< Scalar > & | space, | |
std::deque< int > & | pos | |||
) | const [inline, protected] |
Build an index pointing to the leftmost entry in the given block space
Definition at line 116 of file PlayaBlockIteratorImpl.hpp.
bool Playa::BlockIterator< Scalar >::advance | ( | int | level | ) | [inline, protected] |
Advance the index at the specified level. Return false if no further advance is possible
Definition at line 94 of file PlayaBlockIteratorImpl.hpp.
std::ostream & operator<< | ( | std::ostream & | os, | |
const Playa::BlockIterator< Scalar > & | i | |||
) | [related] |
Definition at line 110 of file PlayaBlockIteratorDecl.hpp.