Luna::ObjRef
The smart pointer that represents one typeless strong reference to one boxed object.
class Luna::ObjRef
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.
-
Constructs one reference by coping the pointer from another reference.
-
Constructs one reference by moving the pointer from another reference.
-
ObjRef & operator=(const ObjRef &rhs)
Assigns this reference by coping the pointer from another reference.
-
ObjRef & operator=(ObjRef &&rhs)
Assigns this reference by moving the pointer from another reference.
-
Constructs one reference by providing the underlying pointer directly.
-
ObjRef & operator=(object_t rhs)
Replaces the underlying pointer of this reference with the given pointer.
-
bool operator==(const ObjRef &rhs) const
Compares two references for equality.
-
bool operator!=(const ObjRef &rhs) const
Compares two references for non-equality.
-
bool operator<(const ObjRef &rhs) const
Compares two references.
-
Gets the type object of the boxed object.
-
Checks whether this reference is valid.