Iterate through all the stones of a block. More...
#include <GoUctBoard.h>
Public Member Functions | |
StoneIterator (const GoUctBoard &bd, SgPoint p) | |
void | operator++ () |
Advance the state of the iteration to the next stone. | |
SgPoint | operator* () const |
Return the current stone. | |
operator bool () const | |
Return true if iteration is valid, otherwise false. | |
Private Member Functions | |
StoneIterator (const StoneIterator &) | |
Not implemented. | |
StoneIterator & | operator= (const StoneIterator &) |
Not implemented. | |
Private Attributes | |
GoUctBoard::Block::StoneIterator | m_it |
const GoUctBoard & | m_board |
Iterate through all the stones of a block.
Point 'p' must be occupied. Also, the stones can only be accessed for the current board position.
Definition at line 430 of file GoUctBoard.h.
GoUctBoard::StoneIterator::StoneIterator | ( | const GoUctBoard & | bd, | |
SgPoint | p | |||
) |
Definition at line 491 of file GoUctBoard.h.
References m_board, GoUctBoard::Occupied(), and SG_ASSERT.
GoUctBoard::StoneIterator::StoneIterator | ( | const StoneIterator & | ) | [private] |
Not implemented.
GoUctBoard::StoneIterator::operator bool | ( | ) | const |
Return true if iteration is valid, otherwise false.
Definition at line 509 of file GoUctBoard.h.
References m_it.
SgPoint GoUctBoard::StoneIterator::operator* | ( | ) | const |
void GoUctBoard::StoneIterator::operator++ | ( | ) |
Advance the state of the iteration to the next stone.
Definition at line 499 of file GoUctBoard.h.
References m_it.
StoneIterator& GoUctBoard::StoneIterator::operator= | ( | const StoneIterator & | ) | [private] |
Not implemented.
const GoUctBoard& GoUctBoard::StoneIterator::m_board [private] |
Definition at line 447 of file GoUctBoard.h.
Referenced by StoneIterator().
Definition at line 445 of file GoUctBoard.h.
Referenced by operator bool(), operator*(), and operator++().