te::common::Counted Class Reference

A counted class keeps track of how many abstract instances are pointing to it. More...

#include <Counted.h>

Inheritance diagram for te::common::Counted:
te::common::TreeItem te::map::AbstractLayer te::graph::Layer te::map::DataSetAdapterLayer te::map::DataSetLayer te::map::FolderLayer te::map::QueryLayer te::map::RasterLayer te::st::AbstractSTDataSetLayer te::ws::ogc::wms::WMSLayer

Public Member Functions

void attach ()
 Increases the number of references to this object. More...
 
 Counted ()
 Constructor. More...
 
void detach ()
 Decreases the number of references to this object. Destroy it if there are no more references to it. More...
 
int refCount ()
 Returns the number of references to this object. More...
 

Protected Member Functions

virtual ~Counted ()
 Destructor. More...
 

Private Attributes

int m_refCount
 The number of references to this object. More...
 

Detailed Description

A counted class keeps track of how many abstract instances are pointing to it.

Definition at line 43 of file Counted.h.

Constructor & Destructor Documentation

te::common::Counted::Counted ( )
inline

Constructor.

Definition at line 79 of file Counted.h.

te::common::Counted::~Counted ( )
inlineprotectedvirtual

Destructor.

Definition at line 84 of file Counted.h.

Member Function Documentation

void te::common::Counted::attach ( )
inline

Increases the number of references to this object.

Definition at line 88 of file Counted.h.

References m_refCount.

Referenced by te::common::intrusive_ptr_add_ref().

void te::common::Counted::detach ( )
inline

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

Definition at line 93 of file Counted.h.

References m_refCount.

Referenced by te::common::intrusive_ptr_release().

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.

Member Data Documentation

int te::common::Counted::m_refCount
private

The number of references to this object.

Definition at line 66 of file Counted.h.

Referenced by attach(), detach(), and refCount().


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