A counted class keeps track of how many abstract instances are pointing to it.
More...
#include <Counted.h>
|
| void | attach () |
| | Increases the number of references to this object.
|
| |
| | Counted () |
| | Constructor.
|
| |
| 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.
|
| |
|
| int | m_refCount |
| | The number of references to this object.
|
| |
A counted class keeps track of how many abstract instances are pointing to it.
Definition at line 43 of file Counted.h.
◆ Counted()
| te::common::Counted::Counted |
( |
| ) |
|
|
inline |
◆ ~Counted()
| te::common::Counted::~Counted |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ attach()
| void te::common::Counted::attach |
( |
| ) |
|
|
inline |
◆ detach()
| void te::common::Counted::detach |
( |
| ) |
|
|
inline |
◆ refCount()
| int te::common::Counted::refCount |
( |
| ) |
|
|
inline |
Returns the number of references to this object.
Definition at line 99 of file Counted.h.
References m_refCount.
◆ m_refCount
| int te::common::Counted::m_refCount |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/common/Counted.h