#include <GoUctBoard.h>
Point 'p' must be occupied. Liberties should only be accessed for the current board position. No moves are allowed to be executed during the iteration.
Definition at line 429 of file GoUctBoard.h.
Public Member Functions | |
LibertyIterator (const GoUctBoard &bd, SgPoint p) | |
void | operator++ () |
Advance the state of the iteration to the next liberty. | |
SgPoint | operator * () const |
Return the current liberty. | |
operator bool () const | |
Return true if iteration is valid, otherwise false. | |
Private Member Functions | |
LibertyIterator (const LibertyIterator &) | |
Not implemented. | |
LibertyIterator & | operator= (const LibertyIterator &) |
Not implemented. | |
Private Attributes | |
GoUctBoard::Block::LibertyList::Iterator | m_it |
const GoUctBoard & | m_board |
GoUctBoard::LibertyIterator::LibertyIterator | ( | const GoUctBoard & | bd, | |
SgPoint | p | |||
) |
Definition at line 497 of file GoUctBoard.h.
References m_board, GoUctBoard::Occupied(), and SG_ASSERT.
GoUctBoard::LibertyIterator::LibertyIterator | ( | const LibertyIterator & | ) | [private] |
Not implemented.
SgPoint GoUctBoard::LibertyIterator::operator * | ( | ) | const |
GoUctBoard::LibertyIterator::operator bool | ( | ) | const |
Return true if iteration is valid, otherwise false.
Definition at line 515 of file GoUctBoard.h.
References m_it.
void GoUctBoard::LibertyIterator::operator++ | ( | ) |
Advance the state of the iteration to the next liberty.
Definition at line 505 of file GoUctBoard.h.
References m_it.
LibertyIterator& GoUctBoard::LibertyIterator::operator= | ( | const LibertyIterator & | ) | [private] |
Not implemented.
const GoUctBoard& GoUctBoard::LibertyIterator::m_board [private] |
Definition at line 444 of file GoUctBoard.h.
Referenced by operator *(), operator bool(), and operator++().