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

GoUctBoard::StoneIterator Class Reference

Iterate through all the stones of a block. More...

#include <GoUctBoard.h>

List of all members.

Public Member Functions

 StoneIterator (const GoUctBoard &bd, SgPoint p)
void operator++ ()
 Advance the state of the iteration to the next stone.
SgPoint operator* () const
 Return the current stone.
 operator bool () const
 Return true if iteration is valid, otherwise false.

Private Member Functions

 StoneIterator (const StoneIterator &)
 Not implemented.
StoneIteratoroperator= (const StoneIterator &)
 Not implemented.

Private Attributes

GoUctBoard::Block::StoneIterator m_it
const GoUctBoardm_board

Detailed Description

Iterate through all the stones of a block.

Point 'p' must be occupied. Also, the stones can only be accessed for the current board position.

Definition at line 430 of file GoUctBoard.h.


Constructor & Destructor Documentation

GoUctBoard::StoneIterator::StoneIterator ( const GoUctBoard bd,
SgPoint  p 
)

Definition at line 491 of file GoUctBoard.h.

References m_board, GoUctBoard::Occupied(), and SG_ASSERT.

GoUctBoard::StoneIterator::StoneIterator ( const StoneIterator  )  [private]

Not implemented.


Member Function Documentation

GoUctBoard::StoneIterator::operator bool (  )  const

Return true if iteration is valid, otherwise false.

Definition at line 509 of file GoUctBoard.h.

References m_it.

SgPoint GoUctBoard::StoneIterator::operator* (  )  const

Return the current stone.

Definition at line 504 of file GoUctBoard.h.

References m_it.

void GoUctBoard::StoneIterator::operator++ (  ) 

Advance the state of the iteration to the next stone.

Definition at line 499 of file GoUctBoard.h.

References m_it.

StoneIterator& GoUctBoard::StoneIterator::operator= ( const StoneIterator  )  [private]

Not implemented.


Member Data Documentation

Definition at line 447 of file GoUctBoard.h.

Referenced by StoneIterator().

Definition at line 445 of file GoUctBoard.h.

Referenced by operator bool(), operator*(), and operator++().


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


Sun Mar 13 2011 Doxygen 1.7.1