Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgConnComp8Iterator Class Reference

#include <SgConnCompIterator.h>

List of all members.


Detailed Description

Iterate through all 8-connected components of a given set.

Definition at line 51 of file SgConnCompIterator.h.

Public Member Functions

 SgConnComp8Iterator (const SgPointSet &set, int boardSize)
 Create an iterator to iterate through set on 'board'.
void operator++ ()
const SgPointSetoperator * () const
 operator bool () const

Private Attributes

SgPointSet m_set
SgPointSet m_nextSet
int m_nextPoint
int m_lastBoardPoint


Constructor & Destructor Documentation

SgConnComp8Iterator::SgConnComp8Iterator ( const SgPointSet set,
int  boardSize 
)

Create an iterator to iterate through set on 'board'.

Definition at line 42 of file SgConnCompIterator.cpp.

References operator++(), SG_ASSERTRANGE, and SG_MAX_SIZE.


Member Function Documentation

const SgPointSet & SgConnComp8Iterator::operator * (  )  const

Definition at line 63 of file SgConnCompIterator.cpp.

References m_lastBoardPoint, m_nextPoint, m_nextSet, and SG_ASSERT.

SgConnComp8Iterator::operator bool (  )  const

Definition at line 61 of file SgConnCompIterator.h.

References m_lastBoardPoint, and m_nextPoint.

void SgConnComp8Iterator::operator++ (  ) 

Definition at line 51 of file SgConnCompIterator.cpp.

References SgPointSet::ConnComp8(), m_lastBoardPoint, m_nextPoint, m_nextSet, and m_set.

Referenced by SgConnComp8Iterator().


Member Data Documentation

int SgConnComp8Iterator::m_lastBoardPoint [private]

Definition at line 73 of file SgConnCompIterator.h.

Referenced by operator *(), operator bool(), and operator++().

int SgConnComp8Iterator::m_nextPoint [private]

Definition at line 71 of file SgConnCompIterator.h.

Referenced by operator *(), operator bool(), and operator++().

SgPointSet SgConnComp8Iterator::m_nextSet [private]

Definition at line 69 of file SgConnCompIterator.h.

Referenced by operator *(), and operator++().

SgPointSet SgConnComp8Iterator::m_set [private]

Definition at line 67 of file SgConnCompIterator.h.

Referenced by operator++().


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


17 Jun 2010 Doxygen 1.4.7