The weak pointer counter class.
More...
#include <murl_shared_pointer_private.h>
The weak pointer counter class.
◆ WeakCounter() [1/2]
Murl::SharedPointerPrivate::WeakCounter::WeakCounter |
( |
const WeakCounter & |
counter | ) |
|
|
inlineexplicit |
Copy constructor adding a weak counter reference.
- Parameters
-
counter | The weak counter to copy. |
◆ WeakCounter() [2/2]
Murl::SharedPointerPrivate::WeakCounter::WeakCounter |
( |
const SharedCounter & |
counter | ) |
|
|
inlineexplicit |
Copy constructor with a shared pointer counter adding a weak pointer reference.
- Parameters
-
counter | The shared counter to copy. |
◆ operator=() [1/2]
Assignment operator with a shared pointer counter releasing the old weak pointer reference and adding a weak pointer reference to the new counter.
- Parameters
-
counter | The shared counter to assign. |
- Returns
- The object itself.
◆ operator=() [2/2]
Assignment operator releasing the old weak pointer reference and adding a weak pointer reference to the new counter.
- Parameters
-
counter | The weak counter to assign. |
- Returns
- The object itself.
◆ GetCount()
UInt32 Murl::SharedPointerPrivate::WeakCounter::GetCount |
( |
| ) |
const |
|
inline |
Get current usage count.
- Returns
- The number of shared pointer references.
◆ Swap()
void Murl::SharedPointerPrivate::WeakCounter::Swap |
( |
WeakCounter & |
counter | ) |
|
|
inline |
Swap with anoter shared counter.
- Parameters
-
counter | The weak counter to swap with. |
◆ operator<()
bool Murl::SharedPointerPrivate::WeakCounter::operator< |
( |
const WeakCounter & |
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