Luna::WeakRef
The smart pointer that represents one typed weak reference to one boxed object.
template <typename _Ty>
class Luna::WeakRef
Member functions
-
Resets the reference to null.
-
Checks whether this reference is valid.
-
Gets the boxed object.
-
Constructs one null reference.
-
Constructs one reference by coping the pointer from another reference of the same type.
-
Constructs one reference by moving the pointer from another reference.
-
WeakRef & operator=(const WeakRef &rhs)
Assigns this reference by coping the pointer from another reference of the same type.
-
WeakRef & operator=(WeakRef &&rhs)
Assigns this reference by moving the pointer from another reference of the same type.
-
WeakRef(const Ref< _Ty > &rhs)
Constructs one weak reference from one strong reference of the same type.
-
WeakRef & operator=(const Ref< _Ty > &rhs)
Assigns this reference by coping the pointer from one strong reference of the same type.
-
bool operator==(const WeakRef &rhs) const
Compares two references for equality.
-
bool operator!=(const WeakRef &rhs) const
Compares two references for non-equality.
-
bool operator<(const WeakRef &rhs) const
Compares two references.
-
Checks whether this reference is valid.
-
Creates one strong reference from this weak reference.