#include <GoBoard.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 990 of file GoBoard.h.
Public Member Functions | |
LibertyIterator (const GoBoard &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 | |
Block::LibertyList::Iterator | m_it |
const GoBoard & | m_board |
uint64_t | m_countPlay |
Definition at line 1097 of file GoBoard.h.
References GoBoard::CountPlay(), m_board, m_countPlay, GoBoard::Occupied(), and SG_ASSERT.
GoBoard::LibertyIterator::LibertyIterator | ( | const LibertyIterator & | ) | [private] |
Not implemented.
SgPoint GoBoard::LibertyIterator::operator * | ( | ) | const |
Return the current liberty.
Definition at line 1112 of file GoBoard.h.
References GoBoard::CountPlay(), m_board, m_countPlay, m_it, and SG_ASSERT.
GoBoard::LibertyIterator::operator bool | ( | ) | const |
void GoBoard::LibertyIterator::operator++ | ( | ) |
LibertyIterator& GoBoard::LibertyIterator::operator= | ( | const LibertyIterator & | ) | [private] |
Not implemented.
const GoBoard& GoBoard::LibertyIterator::m_board [private] |
uint64_t GoBoard::LibertyIterator::m_countPlay [private] |
Definition at line 1005 of file GoBoard.h.
Referenced by operator *(), operator bool(), and operator++().