PtrBase — Smart pointer.
template<typename T> class PtrBase { public: // types typedef T OriginalType; // construct/copy/destruct PtrBase(); PtrBase(T *); // public member functions T * pointer() const; T * getPtr() const; T * get() const; T * release() ; T * operator->() const; T & operator*() const; bool isNull() const; bool operator!() const; operator bool() const; bool operator<(const PtrBase &) const; bool operator<(const T *) const; bool operator>(const PtrBase &) const; bool operator>(const T *) const; bool operator<=(const PtrBase &) const; bool operator<=(const T *) const; bool operator>=(const PtrBase &) const; bool operator>=(const T *) const; };
Base class for smart pointers
Defines functions which are common for all smart Ptr's (comparsions etc).
PtrBase
public member functionsReturns raw pointer to the object.
Extract pointer to the kept object and release it.
Dereference operator ->
Dereference operator *.
Check whether owned pointer is NULL.
Synonymous to isNull().
Checks if pointer is non-NULL.
Checks that the current pointer is less than rhs.
Checks that the current pointer is less than rhs.
Checks that the current pointer is greater than rhs.
Checks that the current pointer is greater than rhs.
Checks that the current pointer is less or equal than rhs.
Checks that the current pointer is less or equal than rhs.
Checks that the current pointer is greater or equal than rhs.
Checks that the current pointer is greater or equal than rhs.