Murl::SharedPointerPrivate::CounterType< RawType, DeleterType > Class Template Reference

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

#include "murl_shared_pointer_private.h"

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

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

void DeleteObject () override
 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.
 

Detailed Description

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

Counter class of a Specified pointer type.

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:
  • murl_shared_pointer_private.h


Copyright © 2011-2024 Spraylight GmbH.