Smart pointer for handling referenced counted objects
Public Methods
-
ref_ptr()
-
ref_ptr(T* t)
-
ref_ptr(const ref_ptr& rp)
-
~ref_ptr()
-
inline ref_ptr& operator = (const ref_ptr& rp)
-
inline ref_ptr& operator = (T* ptr)
-
inline bool operator == (const ref_ptr& rp) const
-
inline bool operator == (const T* ptr) const
-
inline bool operator != (const ref_ptr& rp) const
-
inline bool operator != (const T* ptr) const
-
inline bool operator < (const ref_ptr& rp) const
-
inline bool operator > (const ref_ptr& rp) const
-
inline bool operator > (const T* ptr) const
-
inline T& operator*()
-
inline const T& operator*() const
-
inline T* operator->()
-
inline const T* operator->() const
-
inline bool operator!() const
-
inline bool valid() const
-
inline T* get()
-
inline const T* get() const
-
inline T* take()
- take control over the object pointed to by ref_ptr, unreference but do not delete even if ref count goes to 0, return the pointer to the object.
Documentation
Smart pointer for handling referenced counted objects
- ref_ptr()
- ref_ptr(T* t)
- ref_ptr(const ref_ptr& rp)
- ~ref_ptr()
- inline ref_ptr& operator = (const ref_ptr& rp)
- inline ref_ptr& operator = (T* ptr)
- inline bool operator == (const ref_ptr& rp) const
- inline bool operator == (const T* ptr) const
- inline bool operator != (const ref_ptr& rp) const
- inline bool operator != (const T* ptr) const
- inline bool operator < (const ref_ptr& rp) const
- inline bool operator > (const ref_ptr& rp) const
- inline bool operator > (const T* ptr) const
- inline T& operator*()
- inline const T& operator*() const
- inline T* operator->()
- inline const T* operator->() const
- inline bool operator!() const
- inline bool valid() const
- inline T* get()
- inline const T* get() const
- inline T* take()
- take control over the object pointed to by ref_ptr, unreference but do not delete even if ref count goes to 0,
return the pointer to the object.
Note, do not use this unless you are 100% sure your code handles the deletion of the object correctly, and
only use when absolutely required.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.