The WeakPointer class.
More...
#include <murl_weak_pointer.h>
template<class DataType>
class Murl::WeakPointer< DataType >
The WeakPointer class.
The WeakPointer holds a reference to a shared pointer for obtaining temporary Sharedpointer instances by using the Lock() method. If the SharedPointer do no longer exist, the Lock() method returns a SharedPointer object which holds a null pointer.
◆ ValueType
The template parameter value type.
◆ WeakPointer() [1/2]
template<class DataType>
template<class RawType >
Constructor for automatic downcast.
- Parameters
-
◆ WeakPointer() [2/2]
template<class DataType>
template<class RawType >
◆ Lock()
◆ GetCount()
Get the SharedPointer's usage counter.
- Returns
- The number of SharePointer instances referencing to the same memory pointer.
◆ IsExpired()
◆ Swap()
◆ operator==()
template<class DataType>
template<class RawType >
Equal to comparison operator.
- Parameters
-
- Returns
- true if the memory pointers are equal.
◆ operator!=()
template<class DataType>
template<class RawType >
Not equal to comparison operator.
- Parameters
-
- Returns
- true if the memory pointers are not equal.
◆ operator<()
template<class DataType>
template<class RawType >
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 files:
- murl_shared_pointer.h
- murl_weak_pointer.h