The shared pointer counter class.
More...
#include <murl_shared_pointer_private.h>
The shared pointer counter class.
◆ SharedCounter() [1/3]
template<class RawType , class DeleterType >
Murl::SharedPointerPrivate::SharedCounter::SharedCounter |
( |
RawType * |
rawPointer, |
|
|
DeleterType |
deleter |
|
) |
| |
|
inline |
Construct with pointer and create a pointer specific counter.
- Parameters
-
rawPointer | The raw memory pointer. |
deleter | The deleter functor. |
◆ SharedCounter() [2/3]
Murl::SharedPointerPrivate::SharedCounter::SharedCounter |
( |
const SharedCounter & |
counter | ) |
|
|
inlineexplicit |
Copy constructor adding a shared pointer reference.
- Parameters
-
counter | The shared counter to copy. |
◆ SharedCounter() [3/3]
Murl::SharedPointerPrivate::SharedCounter::SharedCounter |
( |
const WeakCounter & |
counter | ) |
|
|
inlineexplicit |
Copy constructor with a weak pointer counter adding a shared pointer reference.
- Parameters
-
counter | The weak counter to copy. |
◆ operator=()
Assignment operator releasing the old shared pointer reference and adding a shared pointer reference to the new counter.
- Parameters
-
counter | The shared counter to assign. |
- Returns
- The object itself.
◆ GetCount()
UInt32 Murl::SharedPointerPrivate::SharedCounter::GetCount |
( |
| ) |
const |
|
inline |
Get current usage count.
- Returns
- The number of shared pointer references.
◆ Swap()
void Murl::SharedPointerPrivate::SharedCounter::Swap |
( |
SharedCounter & |
counter | ) |
|
|
inline |
Swap with anoter shared counter.
- Parameters
-
counter | The shared counter to swap with. |
◆ operator<()
bool Murl::SharedPointerPrivate::SharedCounter::operator< |
( |
const SharedCounter & |
rhs | ) |
const |
|
inline |
Less than operator.
- Parameters
-
- Returns
- true if the left hand side (this) is less than the right hand side.
The documentation for this class was generated from the following file:
- murl_shared_pointer_private.h