| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes
TeCoverage< T >::iterator Class Reference

A generic Coverage iterator. More...

`#include <TeCoverage.h>`

List of all members.

## Public Member Functions

| iterator (geom_it it)
| Constructor from the base iterator.
virtual | ~iterator ()
| Destructor.
iterator | operator++ ()
| Prefix move-forward operator.
iterator | operator++ (int)
| Posfix move-forward operator.
T | operator* ()
| Operator for retrieving an instance of a generic geometry.
T * | operator-> ()
| Operator for retrieving a pointer to a generic geometry.
double | operator[] (int dimension)
| Operator for getting the value at a dimension of the coverage.
bool | operator== (const iterator &rhs)
| Return whether two iterators point to the same element.
bool | operator!= (const iterator &rhs)
| Return whether two iterators point to the different elements.

## Protected Attributes

geom_it | it_
| Generic geometry-value pair vector iterator.

## Detailed Description

### template<class T>
class TeCoverage< T >::iterator

A generic Coverage iterator.

An iterator for a Coverage representation. This iterator
  is specific for traversing a set of generic geometries and basically it encapsulates a generic geometry-value pair iterator.

The move-forward operators are used to traverse the coverage data.
  At any point of the traversal, dereferencing operators might be used to access the generic geometry, while the "[]" operator might be used to access the values in different dimensions of the coverage.

See also:
  TeCoverage

## Constructor & Destructor Documentation

template<class T >

TeCoverage< T >::iterator::iterator | ( | geom_it | it | ) | `[inline]`

Constructor from the base iterator.

template<class T >

virtual TeCoverage< T >::iterator::~iterator | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

template<class T >

bool TeCoverage< T >::iterator::operator!= | ( | const iterator & | rhs | ) | `[inline]`

Return whether two iterators point to the different elements.

template<class T >

T TeCoverage< T >::iterator::operator* | ( |  | ) | `[inline]`

Operator for retrieving an instance of a generic geometry.

Returns:
  an instance of a generic geometry

template<class T >

iterator TeCoverage< T >::iterator::operator++ | ( | int |  | ) | `[inline]`

Posfix move-forward operator.

template<class T >

iterator TeCoverage< T >::iterator::operator++ | ( |  | ) | `[inline]`

Prefix move-forward operator.

template<class T >

T* TeCoverage< T >::iterator::operator-> | ( |  | ) | `[inline]`

Operator for retrieving a pointer to a generic geometry.

Returns:
  a pointer to a generic geometry

template<class T >

bool TeCoverage< T >::iterator::operator== | ( | const iterator & | rhs | ) | `[inline]`

Return whether two iterators point to the same element.

template<class T >

double TeCoverage< T >::iterator::operator[] | ( | int | dimension | ) | `[inline]`

Operator for getting the value at a dimension of the coverage.

Parameters:

  dimension | the dimension to be retrieved

Returns:
  a double value

## Member Data Documentation

template<class T >

geom_it TeCoverage< T >::iterator::it_`[protected]`

Generic geometry-value pair vector iterator.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeCoverage.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines