| TerraLib 4.1

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

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

Public Member Functions
TeCounted Class Reference

Supports the counted object idiom. More...

`#include <TeCounted.h>`

Inheritance diagram for TeCounted:

List of all members.

## Public Member Functions

| TeCounted ()
| Constructor: sets zero references when the object is built.
void | attach ()
| Increases the number of references to this object.
void | detach ()
| Decreases the number of references to this object. Destroy it if there are no more references to it.
int | refCount ()
| Returns the number of references to this object.
virtual | ~TeCounted ()
| Destructor.

## Detailed Description

Supports the counted object idiom.

A counted class keeps track of how many abstract instances are pointing to the same implementation.

## Constructor & Destructor Documentation

TeCounted::TeCounted | ( |  | ) | `[inline]`

Constructor: sets zero references when the object is built.

virtual TeCounted::~TeCounted | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

void TeCounted::attach | ( |  | ) | `[inline]`

Increases the number of references to this object.

void TeCounted::detach | ( |  | ) | `[inline]`

Decreases the number of references to this object. Destroy it if there are no more references to it.

int TeCounted::refCount | ( |  | ) | `[inline]`

Returns the number of references to this object.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines