#include <GoBoard.h>
Point 'p' must be occupied. Like GoBoard::LibertyIterator, but allows moves to be executed during the iteration (uses a copy of the liberty list, if required by the implementation).
Definition at line 1026 of file GoBoard.h.
Public Member Functions | |
LibertyCopyIterator (const GoBoard &bd, SgPoint p) | |
void | operator++ () |
Advance the state of the iteration to the next liberty. | |
int | operator * () const |
Return the current liberty. | |
operator bool () const | |
Return true if iteration is valid, otherwise false. | |
Private Member Functions | |
LibertyCopyIterator (const LibertyCopyIterator &) | |
Not implemented. | |
LibertyCopyIterator & | operator= (const LibertyCopyIterator &) |
Not implemented. | |
Private Attributes | |
Block::LibertyList | m_liberties |
Copy of liberty list. | |
Block::LibertyList::Iterator | m_it |
const GoBoard & | m_board |
SgHashCode | m_oldHash |
Definition at line 1123 of file GoBoard.h.
References GoBoard::GetHashCode(), m_board, m_oldHash, GoBoard::Occupied(), and SG_ASSERT.
GoBoard::LibertyCopyIterator::LibertyCopyIterator | ( | const LibertyCopyIterator & | ) | [private] |
Not implemented.
int GoBoard::LibertyCopyIterator::operator * | ( | ) | const |
GoBoard::LibertyCopyIterator::operator bool | ( | ) | const |
void GoBoard::LibertyCopyIterator::operator++ | ( | ) |
LibertyCopyIterator& GoBoard::LibertyCopyIterator::operator= | ( | const LibertyCopyIterator & | ) | [private] |
Not implemented.
const GoBoard& GoBoard::LibertyCopyIterator::m_board [private] |
Definition at line 1049 of file GoBoard.h.
Referenced by operator *(), operator bool(), and operator++().