Represents a weak reference, which references an object while still allowing that object to be deleted. More...
Public Member Functions | |
WeakReference () | |
Default constructor. More... | |
WeakReference (const SmartPtr< Object > &data) | |
Initializes a new instance of the WeakReference class, referencing the specified object. More... | |
const SmartPtr< Object > & | get_Target () const |
Gets the object (the target) referenced by the current WeakReference object. More... | |
void | set_Target (const SmartPtr< Object > &data) |
Sets the object (the target) referenced by the current WeakReference object. More... | |
bool | get_IsAlive () const |
Gets an indication whether the object referenced by the current WeakReference object has been deleted. More... | |
void | reset () |
bool | operator== (std::nullptr_t) const |
Checks if referenced object is null. More... | |
bool | operator!= (std::nullptr_t) const |
Checks if referenced object is not null. More... | |
bool | operator== (const WeakReference &other) const |
Compares referenced object to another instance WeakReference class. More... | |
bool | operator!= (const WeakReference &other) const |
Compares referenced object to another instance WeakReference class. More... | |
Represents a weak reference, which references an object while still allowing that object to be deleted.
|
inline |
Default constructor.
Initializes a new instance of the WeakReference class, referencing the specified object.
|
inline |
Gets an indication whether the object referenced by the current WeakReference object has been deleted.
Gets the object (the target) referenced by the current WeakReference object.
|
inline |
Compares referenced object to another instance WeakReference class.
other | Object compare to. |
|
inline |
Checks if referenced object is not null.
|
inline |
Compares referenced object to another instance WeakReference class.
other | Object compare to. |
|
inline |
Checks if referenced object is null.
|
inline |
Sets the object (the target) referenced by the current WeakReference object.