Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgSetIterator Class Reference

#include <SgPointSet.h>

List of all members.


Detailed Description

Iterator to iterate through 'set'.

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 SgPointSetm_set
int m_index


Constructor & Destructor Documentation

SgSetIterator::SgSetIterator ( const SgPointSet set  ) 

Set may contain only board points, no 'Border' points.

Definition at line 478 of file SgPointSet.h.

References FindNext().


Member Function Documentation

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

Return true if iteration is valid, otherwise false.

Definition at line 499 of file SgPointSet.h.

References m_index, and Size().

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++().


Member Data Documentation

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]

Definition at line 469 of file SgPointSet.h.

Referenced by FindNext(), operator *(), and Size().


The documentation for this class was generated from the following file:


17 Jun 2010 Doxygen 1.4.7