| 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
TeSingle< T > Class Template Reference

Defines a templated class for handling an object built of one single atomic element. More...

`#include <TeComposite.h>`

List of all members.

## Public Member Functions

| TeSingle ()
| Constructor.
virtual | ~TeSingle ()
| Destructor.
| TeSingle (T &elem)
| Copy constructor.
void | add (T &elem)
| Adds the single element.
T & | location ()
| Returns a referency to the single element.
const T & | location () const
| Returns a constant reference to the single element.
T & | elem ()
| Returns a referency to the single element.

## Protected Attributes

T | elem_
| the single element

## Detailed Description

### template<class T>
class TeSingle< T >

Defines a templated class for handling an object built of one single atomic element.

## Constructor & Destructor Documentation

template<class T >

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

Constructor.

template<class T >

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

Destructor.

template<class T >

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

Copy constructor.

## Member Function Documentation

template<class T >

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

Adds the single element.

template<class T >

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

Returns a referency to the single element.

template<class T >

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

Returns a constant reference to the single element.

template<class T >

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

Returns a referency to the single element.

## Member Data Documentation

template<class T >

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

the single element

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines