#include <SgBoardColor.h>
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. | |
| SgEBWIterator & | operator= (const SgEBWIterator &) |
| Not implemented. | |
Private Attributes | |
| SgEmptyBlackWhite | m_color |
| SgEBWIterator::SgEBWIterator | ( | ) |
Definition at line 68 of file SgBoardColor.h.
| SgEBWIterator::SgEBWIterator | ( | const SgEBWIterator & | ) | [private] |
Not implemented.
| 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 |
| 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.
SgEmptyBlackWhite SgEBWIterator::m_color [private] |
Definition at line 94 of file SgBoardColor.h.
Referenced by operator *(), operator bool(), and operator++().