A class to traverse the observations of a PointCoverage. More...
#include <PointCoverageIterator.h>
Public Member Functions | |
| double | getDouble () const | 
| It returns the first attribute value as a double pointed by the internal cursor.  More... | |
| double | getDouble (int i) const | 
| It returns the i-th attribute value as a double pointed by the internal cursor.  More... | |
| int | getInt () const | 
| It returns the first attribute value as an integer pointed by the internal cursor.  More... | |
| int | getInt (int i) const | 
| It returns the i-th attribute value as an integer pointed by the internal cursor.  More... | |
| te::gm::Point & | getLocation () const | 
| It returns the location pointed by the internal cursor.  More... | |
| te::dt::AbstractData * | getValue () const | 
| It returns the first attribute value pointed by the internal cursor.  More... | |
| te::dt::AbstractData * | getValue (int i) const | 
| It returns the i-th attribute value pointed by the internal cursor.  More... | |
| bool | operator!= (const PointCoverageIterator &rhs) | 
| Operator !=.  More... | |
| PointCoverageObservation | operator* () const | 
| Prefix operator *.  More... | |
| PointCoverageIterator & | operator++ () | 
| Prefix operator ++.  More... | |
| PointCoverageIterator | operator++ (int aux) | 
| Postfix operator ++.  More... | |
| PointCoverageIterator & | operator-- () | 
| Prefix operator –.  More... | |
| PointCoverageIterator | operator-- (int aux) | 
| Postfix operator –.  More... | |
| const PointCoverageIterator & | operator= (const PointCoverageIterator &rhs) | 
| Assignment operator.  More... | |
| bool | operator== (const PointCoverageIterator &rhs) | 
| Operator ==.  More... | |
| PointCoverageIterator () | |
| Empty constructor.  More... | |
| PointCoverageIterator (const PointCoverageObservationSet::const_iterator &it) | |
| Constructor.  More... | |
| virtual | ~PointCoverageIterator () | 
| Virtual destructor.  More... | |
Private Attributes | |
| PointCoverageObservationSet::const_iterator | m_it | 
| The internal cursor.  More... | |
A class to traverse the observations of a PointCoverage.
This class provides a mechanism to traverse the point coverage observations sequentially. 
An example of use:
PointCoverageIterator it = cv.begin(); while(it!=cv.end()) { Point& l = it.getLocation(); double v = it.getDouble(i); //or getValue() or getInt or... ++it; } 
Definition at line 68 of file PointCoverageIterator.h.
| te::st::PointCoverageIterator::PointCoverageIterator | ( | ) | 
Empty constructor.
| te::st::PointCoverageIterator::PointCoverageIterator | ( | const PointCoverageObservationSet::const_iterator & | it | ) | 
Constructor.
| it | A iterator that points to the point coverage observations | 
      
  | 
  virtual | 
Virtual destructor.
| double te::st::PointCoverageIterator::getDouble | ( | ) | const | 
It returns the first attribute value as a double pointed by the internal cursor.
| double te::st::PointCoverageIterator::getDouble | ( | int | i | ) | const | 
It returns the i-th attribute value as a double pointed by the internal cursor.
| i | The index of the property to be returned. | 
| int te::st::PointCoverageIterator::getInt | ( | ) | const | 
It returns the first attribute value as an integer pointed by the internal cursor.
| int te::st::PointCoverageIterator::getInt | ( | int | i | ) | const | 
It returns the i-th attribute value as an integer pointed by the internal cursor.
| i | The index of the property to be returned. | 
| te::gm::Point & te::st::PointCoverageIterator::getLocation | ( | ) | const | 
It returns the location pointed by the internal cursor.
| te::dt::AbstractData * te::st::PointCoverageIterator::getValue | ( | ) | const | 
It returns the first attribute value pointed by the internal cursor.
| te::dt::AbstractData * te::st::PointCoverageIterator::getValue | ( | int | i | ) | const | 
It returns the i-th attribute value pointed by the internal cursor.
| i | The index of the property to be returned. | 
| bool te::st::PointCoverageIterator::operator!= | ( | const PointCoverageIterator & | rhs | ) | 
Operator !=.
| PointCoverageObservation te::st::PointCoverageIterator::operator* | ( | ) | const | 
Prefix operator *.
It returns the item (a shared pointer to a pair of a point and a vector of values) pointed by the internal cursor. 
 
| PointCoverageIterator & te::st::PointCoverageIterator::operator++ | ( | ) | 
Prefix operator ++.
After using this operator, the internal cursor points to the next point coverage observation. 
The semantics of prefix is this: Increment the value and then fetch it. 
 
| PointCoverageIterator te::st::PointCoverageIterator::operator++ | ( | int | aux | ) | 
Postfix operator ++.
After using this operator, the internal cursor points to the next point coverage observation. 
The semantics of postfix is: Fetch the value and then increment the original. 
 
| PointCoverageIterator & te::st::PointCoverageIterator::operator-- | ( | ) | 
Prefix operator –.
After using this operator, the internal cursor points to the preceding point coverage observation. 
The semantics of prefix is this: Increment the value and then fetch it. 
 
| PointCoverageIterator te::st::PointCoverageIterator::operator-- | ( | int | aux | ) | 
Postfix operator –.
After using this operator, the internal cursor points to the preceding point coverage observation. 
The semantics of postfix is: Fetch the value and then increment the original. 
 
| const PointCoverageIterator & te::st::PointCoverageIterator::operator= | ( | const PointCoverageIterator & | rhs | ) | 
Assignment operator.
| bool te::st::PointCoverageIterator::operator== | ( | const PointCoverageIterator & | rhs | ) | 
Operator ==.
      
  | 
  private | 
The internal cursor.
Definition at line 203 of file PointCoverageIterator.h.