| TerraLib 4.1

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

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

Public Member Functions | Protected Attributes
TeMajorityCategoryStrategy< Iterator > Class Template Reference
Non-spatial strategy hierarchy to compute cells attributes

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 >:

List of all members.

## Public Member Functions

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

## Protected Attributes

map< string, string > | classesMap_

## 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:

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines