Iterate through an array of points with the range defined by pointers. More...
#include <SgPointIterator.h>
Public Member Functions | |
SgPointRangeIterator (const SgPoint *first, const SgPoint *end) | |
Constructor. | |
virtual | ~SgPointRangeIterator () |
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 | |
SgPointRangeIterator (const SgPointRangeIterator &) | |
Not implemented. | |
SgPointRangeIterator & | operator= (const SgPointRangeIterator &) |
Not implemented. | |
Private Attributes | |
const SgPoint * | m_point |
const SgPoint * | m_end |
Iterate through an array of points with the range defined by pointers.
Definition at line 68 of file SgPointIterator.h.
Constructor.
first | Pointer to first element. | |
end | Pointer to last element + 1. |
Definition at line 99 of file SgPointIterator.h.
SgPointRangeIterator::~SgPointRangeIterator | ( | ) | [virtual] |
Definition at line 106 of file SgPointIterator.h.
SgPointRangeIterator::SgPointRangeIterator | ( | const SgPointRangeIterator & | ) | [private] |
Not implemented.
SgPointRangeIterator::operator bool | ( | ) | const |
Return true if iteration is valid, otherwise false.
Definition at line 120 of file SgPointIterator.h.
SgPoint SgPointRangeIterator::operator* | ( | ) | const |
Return the value of the current element.
Definition at line 115 of file SgPointIterator.h.
References m_point.
void SgPointRangeIterator::operator++ | ( | ) |
Advance the state of the iteration to the next element.
Definition at line 110 of file SgPointIterator.h.
References m_point.
SgPointRangeIterator& SgPointRangeIterator::operator= | ( | const SgPointRangeIterator & | ) | [private] |
Not implemented.
const SgPoint* SgPointRangeIterator::m_end [private] |
Definition at line 90 of file SgPointIterator.h.
Referenced by operator bool().
const SgPoint* SgPointRangeIterator::m_point [private] |
Definition at line 88 of file SgPointIterator.h.
Referenced by operator bool(), operator*(), and operator++().