Iterate through an array of points terminated by END_POINT (defined to be zero for performance). More...
#include <SgPointIterator.h>
Public Member Functions | |
SgPointIterator (const SgPoint *first) | |
virtual | ~SgPointIterator () |
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 | |
SgPointIterator (const SgPointIterator &) | |
Not implemented. | |
SgPointIterator & | operator= (const SgPointIterator &) |
Not implemented. | |
Private Attributes | |
const SgPoint * | m_point |
Iterate through an array of points terminated by END_POINT (defined to be zero for performance).
Definition at line 15 of file SgPointIterator.h.
SgPointIterator::SgPointIterator | ( | const SgPoint * | first | ) |
Definition at line 41 of file SgPointIterator.h.
SgPointIterator::~SgPointIterator | ( | ) | [virtual] |
Definition at line 46 of file SgPointIterator.h.
SgPointIterator::SgPointIterator | ( | const SgPointIterator & | ) | [private] |
Not implemented.
SgPointIterator::operator bool | ( | ) | const |
Return true if iteration is valid, otherwise false.
Definition at line 60 of file SgPointIterator.h.
References m_point, and SG_ENDPOINT.
SgPoint SgPointIterator::operator* | ( | ) | const |
Return the value of the current element.
Definition at line 55 of file SgPointIterator.h.
References m_point.
void SgPointIterator::operator++ | ( | ) |
Advance the state of the iteration to the next element.
Definition at line 50 of file SgPointIterator.h.
References m_point.
SgPointIterator& SgPointIterator::operator= | ( | const SgPointIterator & | ) | [private] |
Not implemented.
const SgPoint* SgPointIterator::m_point [private] |
Definition at line 32 of file SgPointIterator.h.
Referenced by operator bool(), operator*(), and operator++().