Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoNeighborBlockIterator Class Reference

#include <GoBoardUtil.h>

Inheritance diagram for GoNeighborBlockIterator:

Inheritance graph
[legend]
List of all members.

Detailed Description

Iterate through the anchors of all the blocks adjacent to the given point.

Definition at line 1102 of file GoBoardUtil.h.

Public Member Functions

 GoNeighborBlockIterator (const GoBoard &board, SgPoint p, SgBlackWhite c)
 GoNeighborBlockIterator (const GoBoard &board, SgPoint p, SgBlackWhite c, int maxLib)
void operator++ ()
SgPoint operator * () const
 operator bool () const

Private Attributes

SgPoint m_points [5]
 At most 4 neighbor points, plus terminator.


Constructor & Destructor Documentation

GoNeighborBlockIterator::GoNeighborBlockIterator ( const GoBoard board,
SgPoint  p,
SgBlackWhite  c 
)

Definition at line 1106 of file GoBoardUtil.h.

References m_points, and GoBoard::NeighborBlocks().

GoNeighborBlockIterator::GoNeighborBlockIterator ( const GoBoard board,
SgPoint  p,
SgBlackWhite  c,
int  maxLib 
)

Definition at line 1112 of file GoBoardUtil.h.

References m_points, and GoBoard::NeighborBlocks().


Member Data Documentation

SgPoint GoNeighborBlockIterator::m_points[5] [private]

At most 4 neighbor points, plus terminator.

Definition at line 1122 of file GoBoardUtil.h.

Referenced by GoNeighborBlockIterator().


The documentation for this class was generated from the following file:


17 Jun 2010 Doxygen 1.4.7