Iterate through all the liberties of a block. More...
#include <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 |
Iterate through all the liberties of a block.
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 960 of file GoBoard.h.
Definition at line 1056 of file GoBoard.h.
References GoBoard::GetHashCode(), m_board, m_oldHash, GoBoard::Occupied(), and SG_ASSERT.
GoBoard::LibertyCopyIterator::LibertyCopyIterator | ( | const LibertyCopyIterator & | ) | [private] |
Not implemented.
GoBoard::LibertyCopyIterator::operator bool | ( | ) | const |
int GoBoard::LibertyCopyIterator::operator* | ( | ) | const |
void GoBoard::LibertyCopyIterator::operator++ | ( | ) |
LibertyCopyIterator& GoBoard::LibertyCopyIterator::operator= | ( | const LibertyCopyIterator & | ) | [private] |
Not implemented.
const GoBoard& GoBoard::LibertyCopyIterator::m_board [private] |
Definition at line 984 of file GoBoard.h.
Referenced by LibertyCopyIterator(), and operator*().
Block::LibertyList::Iterator GoBoard::LibertyCopyIterator::m_it [private] |
Definition at line 982 of file GoBoard.h.
Referenced by operator bool(), operator*(), and operator++().
Definition at line 987 of file GoBoard.h.
Referenced by LibertyCopyIterator(), and operator*().