![]() |
TerraLib 4.1
|
Class to compute the percentages of each class (described in a map) of an iterator. More...
#include <TeComputeAttributeStrategies.h>
Public Member Functions | |
| TeCategoryPercentageStrategy (map< string, string > &classes, double defaultValue=0.0) | |
| Constructor. | |
| TeCategoryPercentageStrategy (double defaultValue=0.0, string dummyV="") | |
| Constructor. | |
| virtual | ~TeCategoryPercentageStrategy () |
| Destructor. | |
| virtual vector< TeProperty > | compute (Iterator first, Iterator last, const string &columnName) |
| Function to compute the percentages based on the iterator. | |
Class to compute the percentages of each class (described in a map) of an iterator.
| TeCategoryPercentageStrategy< Iterator >::TeCategoryPercentageStrategy | ( | map< string, string > & | classes, |
| double | defaultValue = 0.0 |
||
| ) | [inline] |
Constructor.
| TeCategoryPercentageStrategy< Iterator >::TeCategoryPercentageStrategy | ( | double | defaultValue = 0.0, |
| string | dummyV = "" |
||
| ) | [inline] |
Constructor.
| virtual TeCategoryPercentageStrategy< Iterator >::~TeCategoryPercentageStrategy | ( | ) | [inline, virtual] |
Destructor.
| virtual vector<TeProperty> TeCategoryPercentageStrategy< Iterator >::compute | ( | Iterator | first, |
| Iterator | last, | ||
| const string & | columnName | ||
| ) | [inline, virtual] |
Function to compute the percentages based on the iterator.
Reimplemented from TeComputeAttrStrategy< Iterator >.