| TerraLib 4.1

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

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

Public Member Functions
TePresenceStrategy< Iterator > Class Template Reference
Non-spatial strategy hierarchy to compute cells attributes

Class to compute if there is any value in an iterator. More...

`#include <TeComputeAttributeStrategies.h>`

Inheritance diagram for TePresenceStrategy< Iterator >:

List of all members.

## Public Member Functions

| TePresenceStrategy (bool defaultValue=0)
| Constructor.
virtual | ~TePresenceStrategy ()
| Destructor.
virtual vector< TeProperty > | compute (Iterator first, Iterator last, const string &columnName)

## Detailed Description

### template<class Iterator>
class TePresenceStrategy< Iterator >

Class to compute if there is any value in an iterator.

## Constructor & Destructor Documentation

template<class Iterator >

TePresenceStrategy< Iterator >::TePresenceStrategy | ( | bool | defaultValue = `0` | ) | `[inline]`

Constructor.

template<class Iterator >

virtual TePresenceStrategy< Iterator >::~TePresenceStrategy | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

template<class Iterator >

virtual vector<TeProperty> TePresenceStrategy< Iterator >::compute | ( | Iterator | first,
|  | Iterator | last,
|  | const string & | columnName
| ) |  | `[inline, virtual]`

Function to compute the presence based on the iterator It has value "1" if there is any element, otherwise it has the value of the constructor

Reimplemented from TeComputeAttrStrategy< Iterator >.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines