ezEngine  Milestone 7
ezRefCounted Class Reference

Base class for reference counted objects. More...

#include <RefCounted.h>

Inheritance diagram for ezRefCounted:

Public Member Functions

 ezRefCounted ()
 Constructor.
 
 ezRefCounted (const ezRefCounted &rhs)
 
void operator= (const ezRefCounted &rhs)
 
void AddRef ()
 Increments the reference counter.
 
void ReleaseRef ()
 Decrements the reference counter.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Private Attributes

ezInt32 m_iRefCount
 Stores the current reference count.
 

Detailed Description

Base class for reference counted objects.

Note that no automatic deletion etc. happens, this is just to have shared base functionality for reference counted objects. The actual action which, should happen once an object is no longer referenced, obliges to the system that is using the objects.


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