Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgEBWIterator Class Reference

#include <SgBoardColor.h>

List of all members.


Detailed Description

Iterator over three colors, Empty, Black and White.

Works analogously to SgBWIterator.

Definition at line 65 of file SgBoardColor.h.

Public Member Functions

 SgEBWIterator ()
void operator++ ()
 Advance the state of the iteration to the next element.
SgEmptyBlackWhite operator * () const
 Return the value of the current element.
 operator bool () const
 Return true if iteration is valid, otherwise false.

Private Member Functions

 SgEBWIterator (const SgEBWIterator &)
 Not implemented.
SgEBWIteratoroperator= (const SgEBWIterator &)
 Not implemented.

Private Attributes

SgEmptyBlackWhite m_color


Constructor & Destructor Documentation

SgEBWIterator::SgEBWIterator (  ) 

Definition at line 68 of file SgBoardColor.h.

SgEBWIterator::SgEBWIterator ( const SgEBWIterator  )  [private]

Not implemented.


Member Function Documentation

SgEmptyBlackWhite SgEBWIterator::operator * (  )  const

Return the value of the current element.

Definition at line 82 of file SgBoardColor.h.

References m_color.

SgEBWIterator::operator bool (  )  const

Return true if iteration is valid, otherwise false.

Definition at line 88 of file SgBoardColor.h.

References m_color, and SG_EMPTY.

void SgEBWIterator::operator++ (  ) 

Advance the state of the iteration to the next element.

Relies on current coding: incrementing SG_WHITE will yield value outside of {SG_EMPTY, SG_BLACK, SG_WHITE}

Definition at line 76 of file SgBoardColor.h.

References m_color.

SgEBWIterator& SgEBWIterator::operator= ( const SgEBWIterator  )  [private]

Not implemented.


Member Data Documentation

SgEmptyBlackWhite SgEBWIterator::m_color [private]

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