Iterator over three colors, Empty, Black and White. More...
#include <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 |
Iterator over three colors, Empty, Black and White.
Works analogously to SgBWIterator.
Definition at line 63 of file SgBoardColor.h.
| SgEBWIterator::SgEBWIterator | ( | ) |
Definition at line 66 of file SgBoardColor.h.
| SgEBWIterator::SgEBWIterator | ( | const SgEBWIterator & | ) | [private] |
Not implemented.
| SgEBWIterator::operator bool | ( | ) | const |
Return true if iteration is valid, otherwise false.
Definition at line 85 of file SgBoardColor.h.
| 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.
SgEmptyBlackWhite SgEBWIterator::m_color [private] |
Definition at line 91 of file SgBoardColor.h.
Referenced by operator bool(), operator*(), and operator++().