![]() |
TerraLib 4.1
|
Class to compute if there is any value in an iterator. More...
#include <TeComputeAttributeStrategies.h>
Public Member Functions | |
| TePresenceStrategy (bool defaultValue=0) | |
| Constructor. | |
| virtual | ~TePresenceStrategy () |
| Destructor. | |
| virtual vector< TeProperty > | compute (Iterator first, Iterator last, const string &columnName) |
Class to compute if there is any value in an iterator.
| TePresenceStrategy< Iterator >::TePresenceStrategy | ( | bool | defaultValue = 0 | ) | [inline] |
Constructor.
| virtual TePresenceStrategy< Iterator >::~TePresenceStrategy | ( | ) | [inline, virtual] |
Destructor.
| 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 >.