Isis 3.0 Object Programmers' Reference |
Home |
This class is designed to iterate over all brick positions in a cube. More...
Public Member Functions | |
ProcessIterator (int position) | |
Initialize a process iterator given a position. | |
ProcessIterator (const ProcessIterator &other) | |
This class fully supports copy construction. | |
virtual | ~ProcessIterator () |
Destructor. | |
ProcessIterator & | operator++ () |
Increment the process iterator to the next position. | |
bool | operator== (const ProcessIterator &rhs) |
Compare equality of two iterator positions. | |
bool | operator!= (const ProcessIterator &rhs) |
Compare inequality of two iterator positions. | |
void | swap (ProcessIterator &other) |
Exception-safe swap method. | |
ProcessIterator & | operator= (const ProcessIterator &rhs) |
Assignment of these iterators is fully supported. | |
int | operator* () const |
Convert this iterator into a position. | |
Private Attributes | |
int | m_currentPosition |
The current iterator's position/value. | |
This class is designed to iterate over all brick positions in a cube.
This isn't using a BigInt because Brick::Bricks() isn't, so a performance penalty would be incurred for no reason.
Definition at line 750 of file ProcessByBrick.h.
Isis::ProcessByBrick::ProcessIterator::ProcessIterator | ( | int | position | ) |
Initialize a process iterator given a position.
position | The process iterator position to initialize with. |
Definition at line 854 of file ProcessByBrick.cpp.
Isis::ProcessByBrick::ProcessIterator::ProcessIterator | ( | const ProcessIterator & | other | ) |
This class fully supports copy construction.
other | The process iterator to copy |
Definition at line 864 of file ProcessByBrick.cpp.
|
virtual |
Destructor.
Definition at line 873 of file ProcessByBrick.cpp.
|
inline |
Compare inequality of two iterator positions.
rhs | The right hand side of the '!=' operator |
Definition at line 775 of file ProcessByBrick.h.
|
inline |
Convert this iterator into a position.
An integer is sufficient.
Definition at line 807 of file ProcessByBrick.h.
References m_currentPosition.
ProcessByBrick::ProcessIterator & Isis::ProcessByBrick::ProcessIterator::operator++ | ( | ) |
Increment the process iterator to the next position.
Definition at line 883 of file ProcessByBrick.cpp.
|
inline |
Assignment of these iterators is fully supported.
rhs | The right hand side of the '=' operator. |
Definition at line 796 of file ProcessByBrick.h.
References swap().
|
inline |
Compare equality of two iterator positions.
rhs | The right hand side of the '==' operator |
Definition at line 765 of file ProcessByBrick.h.
References m_currentPosition.
|
inline |
Exception-safe swap method.
other | The instance to swap with |
Definition at line 785 of file ProcessByBrick.h.
References m_currentPosition.
Referenced by operator=().
|
private |
The current iterator's position/value.
Definition at line 813 of file ProcessByBrick.h.
Referenced by operator*(), operator==(), and swap().