| 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
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator Class Reference

This class implements an iterator concept over the instance set. More...

`#include <TeBaseSTInstanceSet.h>`

List of all members.

## Public Member Functions

| propertyIterator (TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > *setIt, typename std::vector< InstanceType >::iterator it, const string &attrName)
| Constructor.
| propertyIterator (TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > *setIt, typename std::vector< InstanceType >::iterator it, const int &attrIndex)
| Constructor.
| propertyIterator (typename vector< InstanceType >::iterator it, const int &attrIndex)
| Constructor.
propertyIterator & | operator++ ()
| Moves to the next attribute in the set.
double | operator* ()
| Returns the current attribute as double.
void | setValue (const double &val)
| Sets a new value to the attrIndex_-th attribute of the element pointed by the iterator.
TeBaseSTInstanceSet < GeometryType, TimeType, InstanceType > * | elemSet ()
| Returns a pointer to the instance set.
bool | operator== (const propertyIterator &rhs) const
| Equal operator.
bool | operator!= (const propertyIterator &rhs) const
| Unequal operator.
bool | getProperty (TeProperty &prop)
| Deprecated: Returns the numerical property of the current instance.

## Protected Attributes

string | attrName_
int | attrIndex_
vector< InstanceType >::iterator | it_
TeBaseSTInstanceSet < GeometryType, TimeType, InstanceType > * | setIt_

## Detailed Description

### template<typename GeometryType, typename TimeType, typename InstanceType>
class TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator

This class implements an iterator concept over the instance set.

A structure that allows the traversal ST element set in a similar way as the STL iterators. This iterator passes over each ST instance of the ST element set and returns a specific numerical property.

## Constructor & Destructor Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::propertyIterator | ( | TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > * | setIt,
|  | typename std::vector< InstanceType >::iterator | it,
|  | const string & | attrName
| ) |  | `[inline]`

Constructor.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::propertyIterator | ( | TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > * | setIt,
|  | typename std::vector< InstanceType >::iterator | it,
|  | const int & | attrIndex
| ) |  | `[inline]`

Constructor.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::propertyIterator | ( | typename vector< InstanceType >::iterator | it,
|  | const int & | attrIndex
| ) |  | `[inline]`

Constructor.

## Member Function Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet<GeometryType, TimeType, InstanceType>* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::elemSet | ( |  | ) | `[inline]`

Returns a pointer to the instance set.

template<typename GeometryType, typename TimeType, typename InstanceType>

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::getProperty | ( | TeProperty & | prop | ) | `[inline]`

Deprecated: Returns the numerical property of the current instance.

template<typename GeometryType, typename TimeType, typename InstanceType>

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::operator!= | ( | const propertyIterator & | rhs | ) | const`[inline]`

Unequal operator.

template<typename GeometryType, typename TimeType, typename InstanceType>

double TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::operator* | ( |  | ) | `[inline]`

Returns the current attribute as double.

template<typename GeometryType, typename TimeType, typename InstanceType>

propertyIterator& TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::operator++ | ( |  | ) | `[inline]`

Moves to the next attribute in the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::operator== | ( | const propertyIterator & | rhs | ) | const`[inline]`

Equal operator.

template<typename GeometryType, typename TimeType, typename InstanceType>

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::setValue | ( | const double & | val | ) | `[inline]`

Sets a new value to the attrIndex_-th attribute of the element pointed by the iterator.

## Member Data Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::attrIndex_`[protected]`

template<typename GeometryType, typename TimeType, typename InstanceType>

string TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::attrName_`[protected]`

template<typename GeometryType, typename TimeType, typename InstanceType>

vector<InstanceType>::iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::it_`[protected]`

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet<GeometryType, TimeType, InstanceType>* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::propertyIterator::setIt_`[protected]`

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines