TerraLib 4.1
TeCategoryPercentageStrategy< Iterator > Class Template Reference

Class to compute the percentages of each class (described in a map) of an iterator. More...

#include <TeComputeAttributeStrategies.h>

Inheritance diagram for TeCategoryPercentageStrategy< Iterator >:
TeComputeAttrStrategy< Iterator >

List of all members.

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< TePropertycompute (Iterator first, Iterator last, const string &columnName)
 Function to compute the percentages based on the iterator.

Detailed Description

template<class Iterator>
class TeCategoryPercentageStrategy< Iterator >

Class to compute the percentages of each class (described in a map) of an iterator.


Constructor & Destructor Documentation

template<class Iterator >
TeCategoryPercentageStrategy< Iterator >::TeCategoryPercentageStrategy ( map< string, string > &  classes,
double  defaultValue = 0.0 
) [inline]

Constructor.

template<class Iterator >
TeCategoryPercentageStrategy< Iterator >::TeCategoryPercentageStrategy ( double  defaultValue = 0.0,
string  dummyV = "" 
) [inline]

Constructor.

template<class Iterator >
virtual TeCategoryPercentageStrategy< Iterator >::~TeCategoryPercentageStrategy ( ) [inline, virtual]

Destructor.


Member Function Documentation

template<class Iterator >
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 >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines