Luna::WeakObjRef
The smart pointer that represents one typeless weak reference to one boxed object.
class Luna::WeakObjRef
Member functions
-
Resets the reference to null.
-
Checks whether this reference is valid.
-
Gets the boxed object.
-
Attaches provided pointer.
-
Detaches the stored pointer. The reference becomes null after this operation.
-
Constructs one null reference.
-
WeakObjRef(const WeakObjRef &rhs)
Constructs one reference by coping the pointer from another reference.
-
Constructs one reference by moving the pointer from another reference.
-
WeakObjRef & operator=(const WeakObjRef &rhs)
Assigns this reference by coping the pointer from another reference.
-
WeakObjRef & operator=(WeakObjRef &&rhs)
Assigns this reference by moving the pointer from another reference.
-
Constructs one weak reference from one strong reference.
-
WeakObjRef & operator=(const ObjRef &rhs)
Assigns this reference by coping the pointer from one strong reference.
-
Constructs one reference by providing the underlying pointer directly.
-
WeakObjRef & operator=(object_t rhs)
Replaces the underlying pointer of this reference with the given pointer.
-
bool operator==(const WeakObjRef &rhs) const
Compares two references for equality.
-
bool operator!=(const WeakObjRef &rhs) const
Compares two references for non-equality.
-
bool operator<(const WeakObjRef &rhs) const
Compares two references.
-
Checks whether this reference is valid.
-
Creates one strong reference from this weak reference.