Murl Engine API  Version 2018.3
Murl::SharedPointerPrivate::CounterType< RawType, DeleterType > Class Template Reference

Counter class of a Specified pointer type. More...

#include <murl_shared_pointer_private.h>

Detailed Description

template<class RawType, class DeleterType>
class Murl::SharedPointerPrivate::CounterType< RawType, DeleterType >

Counter class of a Specified pointer type.

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

Public Member Functions

 CounterType (RawType *rawPointer, DeleterType deleter)
 Construct the reference counter. More...
 
- Public Member Functions inherited from Murl::SharedPointerPrivate::CounterBase
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

virtual void DeleteObject ()
 Call the deleter functor.
 
- Protected Member Functions inherited from Murl::SharedPointerPrivate::CounterBase
 CounterBase ()
 Default constructor sets the reference counters to 1.
 
virtual ~CounterBase ()
 The destructor.
 

Constructor & Destructor Documentation

◆ CounterType()

template<class RawType , class DeleterType >
Murl::SharedPointerPrivate::CounterType< RawType, DeleterType >::CounterType ( RawType *  rawPointer,
DeleterType  deleter 
)
inline

Construct the reference counter.

Parameters
rawPointerThe raw memory pointer.
deleterThe deleter functor.

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