TerraLib 4.1
TeMajorityCategoryStrategy< Iterator > Class Template Reference

Class for compute the category with more occurences in the elements of a given iterator, using classes. More...

#include <TeComputeAttributeStrategies.h>

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

List of all members.

Public Member Functions

 TeMajorityCategoryStrategy (const map< string, string > &classesMap, TeAttrDataType defaultType=TeINT)
 Constructor.
virtual ~TeMajorityCategoryStrategy ()
 Destructor.
virtual vector< TePropertycompute (Iterator first, Iterator last, const string &columnName)
 Function to compute the category with more occurrences.

Protected Attributes

map< string, stringclassesMap_

Detailed Description

template<class Iterator>
class TeMajorityCategoryStrategy< Iterator >

Class for compute the category with more occurences in the elements of a given iterator, using classes.


Constructor & Destructor Documentation

template<class Iterator >
TeMajorityCategoryStrategy< Iterator >::TeMajorityCategoryStrategy ( const map< string, string > &  classesMap,
TeAttrDataType  defaultType = TeINT 
) [inline]

Constructor.

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

Destructor.


Member Function Documentation

template<class Iterator >
virtual vector<TeProperty> TeMajorityCategoryStrategy< Iterator >::compute ( Iterator  first,
Iterator  last,
const string columnName 
) [inline, virtual]

Function to compute the category with more occurrences.

Reimplemented from TeComputeAttrStrategy< Iterator >.


Member Data Documentation

template<class Iterator >
map<string, string> TeMajorityCategoryStrategy< Iterator >::classesMap_ [protected]

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