| TerraLib 4.1

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

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

Public Member Functions | Protected Member Functions | Protected Attributes
TeMCNode< ObjectT, TeMultiContainerKeyT > Class Template Reference
General purpose utilitary functions

Multi-container node class. More...

`#include <TeMultiContainer.h>`

Inheritance diagram for TeMCNode< ObjectT, TeMultiContainerKeyT >:

List of all members.

## Public Member Functions

| TeMCNode ()
| Default Constructor.
| ~TeMCNode ()
| Default Destructor.
TeMCNodeInterface < TeMultiContainerKeyT > * | clone () const
| Copies the the current node instance by calling the operator= from the contained object instance.
void | setObjPtr (ObjectT *ptr)
| Set the internal object pointer.
ObjectT * | getObjPtr () const
| Get the internal object pointer.
const std::string & | getObjTypeInfo () const
| Get the internal object type info.
bool | operator== (const TeMCNodeInterface< TeMultiContainerKeyT > &external) const
| operator== overload.

## Protected Member Functions

void * | getObjVoidPtr () const
| Returns the object pointer casted to void.

## Protected Attributes

ObjectT * | obj_ptr_
| The internal object pointer.
std::string | obj_type_str_
| The internal object type.

## Detailed Description

### template<typename ObjectT, typename TeMultiContainerKeyT>
class TeMCNode< ObjectT, TeMultiContainerKeyT >

Multi-container node class.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

## Constructor & Destructor Documentation

template<typename ObjectT, typename TeMultiContainerKeyT>

TeMCNode< ObjectT, TeMultiContainerKeyT >::TeMCNode | ( |  | ) | `[inline]`

Default Constructor.

template<typename ObjectT, typename TeMultiContainerKeyT>

TeMCNode< ObjectT, TeMultiContainerKeyT >::~TeMCNode | ( |  | ) | `[inline]`

Default Destructor.

## Member Function Documentation

template<typename ObjectT, typename TeMultiContainerKeyT>

TeMCNodeInterface< TeMultiContainerKeyT >* TeMCNode< ObjectT, TeMultiContainerKeyT >::clone | ( |  | ) | const`[inline, virtual]`

Copies the the current node instance by calling the operator= from the contained object instance.

Returns:
  A pointer to the new node copy.

Implements TeMCNodeInterface< TeMultiContainerKeyT >.

template<typename ObjectT, typename TeMultiContainerKeyT>

ObjectT* TeMCNode< ObjectT, TeMultiContainerKeyT >::getObjPtr | ( |  | ) | const`[inline]`

Get the internal object pointer.

Returns:
  The object pointer.

template<typename ObjectT, typename TeMultiContainerKeyT>

const std::string& TeMCNode< ObjectT, TeMultiContainerKeyT >::getObjTypeInfo | ( |  | ) | const`[inline, virtual]`

Get the internal object type info.

Returns:
  The internal object type info.

Implements TeMCNodeInterface< TeMultiContainerKeyT >.

template<typename ObjectT, typename TeMultiContainerKeyT>

void* TeMCNode< ObjectT, TeMultiContainerKeyT >::getObjVoidPtr | ( |  | ) | const`[inline, protected, virtual]`

Returns the object pointer casted to void.

Returns:
  The object pointer casted to void.

Implements TeMCNodeInterface< TeMultiContainerKeyT >.

template<typename ObjectT, typename TeMultiContainerKeyT>

bool TeMCNode< ObjectT, TeMultiContainerKeyT >::operator== | ( | const TeMCNodeInterface< TeMultiContainerKeyT > & | external | ) | const`[inline, virtual]`

operator== overload.

Parameters:

  external | External node reference.

Returns:
  true if both nodes are pointing to identic object copies

Implements TeMCNodeInterface< TeMultiContainerKeyT >.

template<typename ObjectT, typename TeMultiContainerKeyT>

void TeMCNode< ObjectT, TeMultiContainerKeyT >::setObjPtr | ( | ObjectT * | ptr | ) | `[inline]`

Set the internal object pointer.

Parameters:

  ptr | Object pointer.

## Member Data Documentation

template<typename ObjectT, typename TeMultiContainerKeyT>

ObjectT* TeMCNode< ObjectT, TeMultiContainerKeyT >::obj_ptr_`[protected]`

The internal object pointer.

template<typename ObjectT, typename TeMultiContainerKeyT>

std::string TeMCNode< ObjectT, TeMultiContainerKeyT >::obj_type_str_`[protected]`

The internal object type.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines