Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoAdjBlockIterator< BOARD > Class Template Reference

#include <GoBoardUtil.h>

Inheritance diagram for GoAdjBlockIterator< BOARD >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BOARD>
class GoAdjBlockIterator< BOARD >

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

Definition at line 1133 of file 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.


Constructor & Destructor Documentation

template<class BOARD>
GoAdjBlockIterator< BOARD >::GoAdjBlockIterator ( const BOARD &  board,
SgPoint  p,
int  maxLib 
)

Definition at line 1150 of file GoBoardUtil.h.

References GoAdjBlockIterator< BOARD >::m_points, and MAX_ADJACENT.


Member Data Documentation

template<class BOARD>
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 1146 of file GoBoardUtil.h.

Referenced by GoAdjBlockIterator< BOARD >::GoAdjBlockIterator().


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


17 Jun 2010 Doxygen 1.4.7