Iterate through the anchors of all the blocks adjacent to the given block. More...
#include <GoBoardUtil.h>
Public Member Functions | |
GoAdjBlockIterator (const BOARD &board, SgPoint p, int maxLib) | |
void | operator++ () |
SgPoint | operator* () const |
operator bool () const | |
Private Attributes | |
SgPoint | m_points [MAX_ADJACENT] |
Maximum number of adjacent blocks. |
Iterate through the anchors of all the blocks adjacent to the given block.
Definition at line 1100 of file GoBoardUtil.h.
GoAdjBlockIterator< BOARD >::GoAdjBlockIterator | ( | const BOARD & | board, | |
SgPoint | p, | |||
int | maxLib | |||
) |
Definition at line 1116 of file GoBoardUtil.h.
References GoAdjBlockIterator< BOARD >::m_points, and MAX_ADJACENT.
SgPoint GoAdjBlockIterator< BOARD >::m_points[MAX_ADJACENT] [private] |
Maximum number of adjacent blocks.
Not quite sure this is an upper limit, but couldn't find an example that had more adjacent stones than a spiral block with adjacent single stones spaced one apart.
Definition at line 1112 of file GoBoardUtil.h.
Referenced by GoAdjBlockIterator< BOARD >::GoAdjBlockIterator().