#include <SgPointSet.h>
Set may contain only board points, no 'Border' points.
Definition at line 453 of file SgPointSet.h.
Public Member Functions | |
SgSetIterator (const SgPointSet &set) | |
Set may contain only board points, no 'Border' points. | |
void | operator++ () |
Advance the state of the iteration to the next element. | |
SgPoint | operator * () const |
Return the value of the current element. | |
operator bool () const | |
Return true if iteration is valid, otherwise false. | |
Private Member Functions | |
void | FindNext () |
int | Size () const |
Private Attributes | |
const SgPointSet & | m_set |
int | m_index |
SgSetIterator::SgSetIterator | ( | const SgPointSet & | set | ) |
Set may contain only board points, no 'Border' points.
Definition at line 478 of file SgPointSet.h.
References FindNext().
void SgSetIterator::FindNext | ( | ) | [private] |
Definition at line 504 of file SgPointSet.h.
References SgPointSet::m_a, m_index, m_set, and Size().
Referenced by operator++(), and SgSetIterator().
SgPoint SgSetIterator::operator * | ( | ) | const |
Return the value of the current element.
Definition at line 491 of file SgPointSet.h.
References SgPointSet::m_a, m_index, m_set, SG_ASSERT, SG_ASSERT_BOARDRANGE, and Size().
SgSetIterator::operator bool | ( | ) | const |
void SgSetIterator::operator++ | ( | ) |
Advance the state of the iteration to the next element.
Definition at line 485 of file SgPointSet.h.
References FindNext(), m_index, SG_ASSERT, and Size().
int SgSetIterator::Size | ( | ) | const [private] |
Definition at line 514 of file SgPointSet.h.
References SgPointSet::m_a, and m_set.
Referenced by FindNext(), operator *(), operator bool(), and operator++().
int SgSetIterator::m_index [private] |
Definition at line 471 of file SgPointSet.h.
Referenced by FindNext(), operator *(), operator bool(), and operator++().
const SgPointSet& SgSetIterator::m_set [private] |