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

SgEBWIterator Class Reference

Iterator over three colors, Empty, Black and White. More...

#include <SgBoardColor.h>

List of all members.

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

Detailed Description

Iterator over three colors, Empty, Black and White.

Works analogously to SgBWIterator.

Definition at line 63 of file SgBoardColor.h.


Constructor & Destructor Documentation

SgEBWIterator::SgEBWIterator (  ) 

Definition at line 66 of file SgBoardColor.h.

SgEBWIterator::SgEBWIterator ( const SgEBWIterator  )  [private]

Not implemented.


Member Function Documentation

SgEBWIterator::operator bool (  )  const

Return true if iteration is valid, otherwise false.

Definition at line 85 of file SgBoardColor.h.

References m_color, and SG_EMPTY.

SgEmptyBlackWhite SgEBWIterator::operator* (  )  const

Return the value of the current element.

Definition at line 79 of file SgBoardColor.h.

References m_color.

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 73 of file SgBoardColor.h.

References m_color.

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

Not implemented.


Member Data Documentation

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