#include <weakrawptr.h>
WeakRawPtr allows to create weak references to all memory blocks and objects created with NewObj() or NewMem().
Classes | |
struct | WeakRawPtrProxy |
Public Member Functions | |
WeakRawPtr ()=default | |
MAXON_IMPLICIT | WeakRawPtr (TYPE *target) |
WeakRawPtr (const WeakRawPtr &c) | |
WeakRawPtr (WeakRawPtr &&src) | |
MAXON_OPERATOR_MOVE_ASSIGNMENT (WeakRawPtr) | |
MAXON_OPERATOR_COPY_ASSIGNMENT (WeakRawPtr) | |
TYPE * | Get () const |
WeakRawPtrProxy | GetProxy () const |
void | Set (TYPE *target) |
Private Attributes | |
WeakRefBase | _weakRef |
|
default |
Default constructor.
MAXON_IMPLICIT WeakRawPtr | ( | TYPE * | target | ) |
Explicit constructor to create the weak link with the connected target.
WeakRawPtr | ( | const WeakRawPtr< TYPE > & | c | ) |
Copy constructor.
WeakRawPtr | ( | WeakRawPtr< TYPE > && | src | ) |
Move constructor.
MAXON_OPERATOR_MOVE_ASSIGNMENT | ( | WeakRawPtr< TYPE > | ) |
MAXON_OPERATOR_COPY_ASSIGNMENT | ( | WeakRawPtr< TYPE > | ) |
TYPE* Get | ( | void | ) | const |
Returns the target that is linked to the weak link.
WeakRawPtrProxy GetProxy | ( | ) | const |
Returns the target that is linked to the weak link.
void Set | ( | TYPE * | target | ) |
Sets a new target to the weak link.
[in] | target | Object to be linked. |
|
private |