Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoUctBoard::StoneIterator Class Reference

#include <GoUctBoard.h>

List of all members.


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 459 of file GoUctBoard.h.

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


Constructor & Destructor Documentation

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

Definition at line 520 of file GoUctBoard.h.

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

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

Not implemented.


Member Function Documentation

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

Return the current stone.

Definition at line 533 of file GoUctBoard.h.

References m_it.

GoUctBoard::StoneIterator::operator bool (  )  const

Return true if iteration is valid, otherwise false.

Definition at line 538 of file GoUctBoard.h.

References m_it.

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

Advance the state of the iteration to the next stone.

Definition at line 528 of file GoUctBoard.h.

References m_it.

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

Not implemented.


Member Data Documentation

const GoUctBoard& GoUctBoard::StoneIterator::m_board [private]

Definition at line 476 of file GoUctBoard.h.

Referenced by StoneIterator().

GoUctBoard::Block::StoneIterator GoUctBoard::StoneIterator::m_it [private]

Definition at line 474 of file GoUctBoard.h.

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


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


17 Jun 2010 Doxygen 1.4.7