Represents a weak reference, which references an object while still allowing that object to be deleted. More...
Inherits WeakReference< System::Object >.
Public Member Functions | |
WeakReference () | |
Default constructor. More... | |
WeakReference (std::nullptr_t) | |
Constructor from nullptr. More... | |
WeakReference (const SmartPtr< Object > &data) | |
Initializes a new instance of the WeakReference class, referencing the specified object. More... | |
WeakReference (const SmartPtr< Object > &data, bool trackResurrection) | |
Initializes a new instance of the WeakReference class, referencing the specified object. More... | |
const WeakPtr< 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... | |
Represents a weak reference, which references an object while still allowing that object to be deleted.
|
inline |
Default constructor.
|
inline |
Constructor from nullptr.
Initializes a new instance of the WeakReference class, referencing the specified object.
data | Object to store. |
|
inline |
Initializes a new instance of the WeakReference class, referencing the specified object.
data | Object to store. |
trackResurrection | Ignored. |
|
inline |
Gets an indication whether the object referenced by the current WeakReference object has been deleted.
|
inline |
Gets the object (the target) referenced by the current WeakReference object.
|
inline |
Sets the object (the target) referenced by the current WeakReference object.
data | Object to set. |