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

GoUctBoard::LibertyIterator Class Reference

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

#include <GoUctBoard.h>

List of all members.

Public Member Functions

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

Private Member Functions

 LibertyIterator (const LibertyIterator &)
 Not implemented.
LibertyIteratoroperator= (const LibertyIterator &)
 Not implemented.

Private Attributes

GoUctBoard::Block::LibertyList::Iterator m_it
const GoUctBoardm_board

Detailed Description

Iterate through all the liberties of a block.

Point 'p' must be occupied. Liberties should only be accessed for the current board position. No moves are allowed to be executed during the iteration.

Definition at line 401 of file GoUctBoard.h.


Constructor & Destructor Documentation

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

Definition at line 468 of file GoUctBoard.h.

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

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

Not implemented.


Member Function Documentation

GoUctBoard::LibertyIterator::operator bool (  )  const

Return true if iteration is valid, otherwise false.

Definition at line 486 of file GoUctBoard.h.

References m_it.

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

Return the current liberty.

Definition at line 481 of file GoUctBoard.h.

References m_it.

void GoUctBoard::LibertyIterator::operator++ (  ) 

Advance the state of the iteration to the next liberty.

Definition at line 476 of file GoUctBoard.h.

References m_it.

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

Not implemented.


Member Data Documentation

Definition at line 418 of file GoUctBoard.h.

Referenced by LibertyIterator().

GoUctBoard::Block::LibertyList::Iterator GoUctBoard::LibertyIterator::m_it [private]

Definition at line 416 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