SourceForge.net Logo
Public Member Functions | Protected Attributes | List of all members
ReferenceCounted Class Reference

Super class for reference counted classes. More...

#include <ReferenceCounted.hpp>

Inheritance diagram for ReferenceCounted:
Inheritance graph
[legend]

Public Member Functions

 ReferenceCounted ()
 
virtual ~ReferenceCounted ()
 
void incrementRefCount () const
 Increment the reference count. More...
 
virtual void decrementRefCount () const
 Decrement the reference count, deleting if it becomes zero. More...
 
unsigned int getRefCount () const
 

Protected Attributes

unsigned int _ref_count
 

Detailed Description

Super class for reference counted classes.

Constructor & Destructor Documentation

◆ ReferenceCounted()

ReferenceCounted::ReferenceCounted ( )
inline

◆ ~ReferenceCounted()

virtual ReferenceCounted::~ReferenceCounted ( )
inlinevirtual

Member Function Documentation

◆ decrementRefCount()

virtual void ReferenceCounted::decrementRefCount ( ) const
inlinevirtual

Decrement the reference count, deleting if it becomes zero.

◆ getRefCount()

unsigned int ReferenceCounted::getRefCount ( ) const
inline

◆ incrementRefCount()

void ReferenceCounted::incrementRefCount ( ) const
inline

Increment the reference count.

Member Data Documentation

◆ _ref_count

unsigned int ReferenceCounted::_ref_count
protected

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