#include <MoveIterator.h>
Public Member Functions | |
MoveIterator () | |
Default constructor. | |
virtual | ~MoveIterator () |
Empty destructor. | |
MoveIterator & | operator= (const MoveIterator &m) |
Affectation operator. | |
bool | operator== (const MoveIterator &m) const |
Equality test. | |
bool | operator< (const MoveIterator &m) const |
Inferiority test (for STL maps). | |
bool | operator!= (const MoveIterator &m) const |
Difference test. | |
MoveIterator & | operator++ () |
Iteration. | |
move_command | operator * (void) const |
Dereference operator. | |
Move * | operator-> (void) const |
Operator to access properties of the movement referenced. | |
Protected Member Functions | |
MoveIterator (Move *move) | |
Private constructor. | |
Protected Attributes | |
Move * | _move |
The movement. | |
Friends | |
class | Move |
Definition at line 35 of file MoveIterator.h.
MoveIterator::MoveIterator | ( | Move * | move | ) | [protected] |
Private constructor.
move |
Definition at line 35 of file MoveIterator.cpp.
00035 : _move(move) { 00036 00037 }
MoveIterator & MoveIterator::operator= | ( | const MoveIterator & | m | ) |
Affectation operator.
m | other iterator |
Definition at line 43 of file MoveIterator.cpp.
References _move.
bool MoveIterator::operator== | ( | const MoveIterator & | m | ) | const |
Equality test.
m | iterator to test |
Definition at line 48 of file MoveIterator.cpp.
References _move.
bool MoveIterator::operator< | ( | const MoveIterator & | m | ) | const |
Inferiority test (for STL maps).
m | iterator to test |
Definition at line 52 of file MoveIterator.cpp.
bool MoveIterator::operator!= | ( | const MoveIterator & | m | ) | const |
Difference test.
m | iterator to test |
Definition at line 56 of file MoveIterator.cpp.
References _move.
MoveIterator & MoveIterator::operator++ | ( | ) |
Iteration.
Definition at line 60 of file MoveIterator.cpp.
References _move, and Move::_next.
move_command MoveIterator::operator * | ( | void | ) | const |
Dereference operator.
Definition at line 67 of file MoveIterator.cpp.
References _move, and Move::getHandledMovement().
00067 { 00068 return _move->getHandledMovement(); 00069 }
Move * MoveIterator::operator-> | ( | void | ) | const |
Operator to access properties of the movement referenced.
Definition at line 71 of file MoveIterator.cpp.
References _move.
00071 { 00072 return _move; 00073 }