Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

GoAdjBlockIterator< BOARD > Class Template Reference

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

#include <GoBoardUtil.h>

Inheritance diagram for GoAdjBlockIterator< BOARD >:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

template<class BOARD>
class GoAdjBlockIterator< BOARD >

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

Definition at line 1100 of file GoBoardUtil.h.


Constructor & Destructor Documentation

template<class BOARD >
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.


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 1112 of file GoBoardUtil.h.

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


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


Sun Mar 13 2011 Doxygen 1.7.1