Base Framework
|
Reference counted object wrapper. More...
#include <base/mem/ReferenceCountedObjectWrapper.h>
Inherits ReferenceCountedObject.
Public Member Functions | |
ReferenceCountedObjectWrapper (TYPE *value) noexcept | |
TYPE * | operator-> () noexcept |
TYPE & | operator* () |
operator TYPE * () const noexcept | |
~ReferenceCountedObjectWrapper () | |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Reference counted object wrapper.
This is a wrapper for a Reference Counted Object. Use this class if you need to reference count an object of a class that is not a subclass of ReferenceCountedObject. Allocate objects on the heap not the stack.
|
inlinenoexcept |
Initializes the wrapper.
value | The object to be reference counted. |
|
inline |
Destroys the wrapper.
|
inlinenoexcept |
Type cast to pointer.
|
inline |
Returns the object.
|
inlinenoexcept |
Returns the object.