| TerraLib 4.1

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

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

Public Types | Public Member Functions | Protected Attributes
TeGeomSingle< T > Class Template Reference

TeGeomSingle: A class for handling geometries in TerraLib which consist of one location. More...

`#include <TeGeometry.h>`

Inheritance diagram for TeGeomSingle< T >:

List of all members.

## Public Types

typedef T | value_type
| Exports the type of the element of a TeGeomSingle.

## Public Member Functions

| TeGeomSingle ()
| Empty constructor.
| TeGeomSingle (const T &elem)
| Constructor from the single element of the container.
| TeGeomSingle (const TeGeomSingle &other)
| Copy Constructor.
TeGeomSingle & | operator= (const TeGeomSingle &other)
| Equal Operator.
virtual | ~TeGeomSingle ()
| Destructor.
void | add (T &elem)
| Changes the unique element.
T & | location ()
| Returns the unique element.
const T & | location () const
| Returns the unique element.
T & | elem ()
| Returns the unique element.
const T & | elem () const
| Returns the unique element.
T & | operator[] (int)
| Returns the unique element.
bool | operator== (const TeGeomSingle &other) const
| Returns TRUE if a TeGeomSingle is equal to other.
int | size ()
| Returns the size of a TeGeomSingle: always 1.

## Protected Attributes

T | elem_

## Detailed Description

### template<class T>
class TeGeomSingle< T >

TeGeomSingle: A class for handling geometries in TerraLib which consist of one location.

See also:
  TePoint, TeSample

## Member Typedef Documentation

template<class T>

typedef T TeGeomSingle< T >::value_type

Exports the type of the element of a TeGeomSingle.

## Constructor & Destructor Documentation

template<class T>

TeGeomSingle< T >::TeGeomSingle | ( |  | ) | `[inline]`

Empty constructor.

template<class T>

TeGeomSingle< T >::TeGeomSingle | ( | const T & | elem | ) | `[inline]`

Constructor from the single element of the container.

template<class T>

TeGeomSingle< T >::TeGeomSingle | ( | const TeGeomSingle< T > & | other | ) | `[inline]`

Copy Constructor.

template<class T>

virtual TeGeomSingle< T >::~TeGeomSingle | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

template<class T>

void TeGeomSingle< T >::add | ( | T & | elem | ) | `[inline]`

Changes the unique element.

template<class T>

T& TeGeomSingle< T >::elem | ( |  | ) | `[inline]`

Returns the unique element.

template<class T>

const T& TeGeomSingle< T >::elem | ( |  | ) | const`[inline]`

Returns the unique element.

template<class T>

const T& TeGeomSingle< T >::location | ( |  | ) | const`[inline]`

Returns the unique element.

template<class T>

T& TeGeomSingle< T >::location | ( |  | ) | `[inline]`

Returns the unique element.

template<class T>

TeGeomSingle& TeGeomSingle< T >::operator= | ( | const TeGeomSingle< T > & | other | ) | `[inline]`

Equal Operator.

template<class T>

bool TeGeomSingle< T >::operator== | ( | const TeGeomSingle< T > & | other | ) | const`[inline]`

Returns TRUE if a TeGeomSingle is equal to other.

template<class T>

T& TeGeomSingle< T >::operator[] | ( | int |  | ) | `[inline]`

Returns the unique element.

template<class T>

int TeGeomSingle< T >::size | ( |  | ) | `[inline]`

Returns the size of a TeGeomSingle: always 1.

## Member Data Documentation

template<class T>

T TeGeomSingle< T >::elem_`[protected]`

The documentation for this class was generated from the following file:

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines