30 Ptr() : mObject(nullptr) {
60 explicit Ptr(T *pObject) : mObject(pObject) {
61 if (pObject !=
nullptr) {
77 Ptr(
const Ptr &other) : mObject(other.mObject) {
78 if (mObject !=
nullptr) {
110 if (mObject !=
nullptr) {
130 if (
this != &other) {
131 if (mObject !=
nullptr) {
134 mObject = other.mObject;
135 if (mObject !=
nullptr) {
~Ptr()
Give back the reference.
Definition ptr.h:109
Ptr(const Ptr &other)
Take another reference to the object of another owner.
Definition ptr.h:77
T * Get() const
Report the object.
Definition ptr.h:173
Ptr(T *pObject)
Take a reference to an object.
Definition ptr.h:60
T * operator->() const
Report the object for a member access.
Definition ptr.h:202
Ptr()
Construct a null owner.
Definition ptr.h:30
Ptr & operator=(const Ptr &other)
Take a reference to the object of another owner and give back the current one.
Definition ptr.h:129