Murl Engine API  Version 2018.3
Murl::SharedPointerPrivate::CounterBase Class Referenceabstract

The counter base class. More...

#include <murl_shared_pointer_private.h>

Detailed Description

The counter base class.

Inheritance diagram for Murl::SharedPointerPrivate::CounterBase:
Murl::SharedPointerPrivate::CounterType< RawType, DeleterType >

Public Member Functions

void AddReference ()
 Add a shared pointer reference to the counter.
 
void ReleaseReference ()
 Release a shared pointer reference from the counter. More...
 
UInt32 GetCount ()
 Get current usage count. More...
 
void AddWeakReference ()
 Add a weak pointer reference to the counter.
 
void ReleaseWeakReference ()
 Release a weak pointer reference from the counter. More...
 

Protected Member Functions

 CounterBase ()
 Default constructor sets the reference counters to 1.
 
virtual ~CounterBase ()
 The destructor.
 
virtual void DeleteObject ()=0
 The object delete method.
 

Member Function Documentation

◆ ReleaseReference()

void Murl::SharedPointerPrivate::CounterBase::ReleaseReference ( )
inline

Release a shared pointer reference from the counter.

If this is the last reference the objects deletes itself.

◆ GetCount()

UInt32 Murl::SharedPointerPrivate::CounterBase::GetCount ( )
inline

Get current usage count.

Returns
The number of shared pointer references.

◆ ReleaseWeakReference()

void Murl::SharedPointerPrivate::CounterBase::ReleaseWeakReference ( )
inline

Release a weak pointer reference from the counter.

If this is the last reference the objects deletes itself.


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