Proto
3.2
|
Iterator for Boxes. More...
#include <Proto_Box.H>
Public Member Functions | |
BoxIterator () | |
Default Constructor. More... | |
BoxIterator (const Box &a_box, int a_pos=0) | |
Index Constructor. More... | |
BoxIterator (const Box &a_box, const Point &a_pos) | |
Point Constructor. More... | |
void | begin () |
Reset Iterator. More... | |
bool | ok () const |
Continue Iteration Query. More... | |
bool | operator== (const BoxIterator &a_iter) const |
Equality Operator. More... | |
bool | operator!= (const BoxIterator &a_iter) const |
Inequality Operator. More... | |
Point | operator* () const |
Dereference Iterator. More... | |
int | operator() () const |
Get Index. More... | |
BoxIterator & | operator++ () |
Prefix Increment Iterator. More... | |
BoxIterator & | operator-- () |
Prefix Decrement Iterator. More... | |
BoxIterator | operator++ (int) |
Postfix Increment Iterator. More... | |
BoxIterator | operator-- (int) |
Postfix Decrement Iterator. More... | |
Private Attributes | |
Box | m_box |
int | m_pos |
Iterator for Boxes.
Iteration class which conforms to most of the syntax of std Iterator implementations.
Example:
|
inline |
Default Constructor.
|
inline |
Index Constructor.
Point Constructor.
|
inline |
Reset Iterator.
References Proto::Box::operator==().
|
inline |
Continue Iteration Query.
|
inline |
|
inline |
Inequality Operator.
|
inline |
Get Index.
Returns the current index of the point *(*this).
|
inline |
Prefix Increment Iterator.
|
inline |
Prefix Decrement Iterator.
|
inline |
Postfix Increment Iterator.
|
inline |
Postfix Decrement Iterator.
|
private |
|
private |