#include <ref_ptr.h>
Public Types | |
typedef T | element_type |
Public Member Functions | |
ref_ptr () | |
ref_ptr (T *t) | |
ref_ptr (const ref_ptr &rp) | |
~ref_ptr () | |
ref_ptr & | operator= (const ref_ptr &rp) |
ref_ptr & | operator= (T *ptr) |
bool | operator== (const ref_ptr &rp) const |
bool | operator!= (const ref_ptr &rp) const |
bool | operator< (const ref_ptr &rp) const |
bool | operator> (const ref_ptr &rp) const |
bool | operator== (const T *ptr) const |
bool | operator!= (const T *ptr) const |
bool | operator< (const T *ptr) const |
bool | operator> (const T *ptr) const |
T & | operator * () |
const T & | operator * () const |
T * | operator-> () |
const T * | operator-> () const |
bool | operator! () const |
bool | valid () const |
T * | get () |
const T * | get () const |
T * | take () |
T * | release () |
typedef T openalpp::ref_ptr< T >::element_type |
openalpp::ref_ptr< T >::ref_ptr | ( | ) | [inline] |
openalpp::ref_ptr< T >::ref_ptr | ( | T * | t | ) | [inline] |
openalpp::ref_ptr< T >::ref_ptr | ( | const ref_ptr< T > & | rp | ) | [inline] |
openalpp::ref_ptr< T >::~ref_ptr | ( | ) | [inline] |
ref_ptr& openalpp::ref_ptr< T >::operator= | ( | const ref_ptr< T > & | rp | ) | [inline] |
ref_ptr& openalpp::ref_ptr< T >::operator= | ( | T * | ptr | ) | [inline] |
bool openalpp::ref_ptr< T >::operator== | ( | const ref_ptr< T > & | rp | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator!= | ( | const ref_ptr< T > & | rp | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator< | ( | const ref_ptr< T > & | rp | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator> | ( | const ref_ptr< T > & | rp | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator== | ( | const T * | ptr | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator!= | ( | const T * | ptr | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator< | ( | const T * | ptr | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator> | ( | const T * | ptr | ) | const [inline] |
T& openalpp::ref_ptr< T >::operator * | ( | ) | [inline] |
const T& openalpp::ref_ptr< T >::operator * | ( | ) | const [inline] |
T* openalpp::ref_ptr< T >::operator-> | ( | ) | [inline] |
const T* openalpp::ref_ptr< T >::operator-> | ( | ) | const [inline] |
bool openalpp::ref_ptr< T >::operator! | ( | ) | const [inline] |
bool openalpp::ref_ptr< T >::valid | ( | ) | const [inline] |
T* openalpp::ref_ptr< T >::get | ( | ) | [inline] |
const T* openalpp::ref_ptr< T >::get | ( | ) | const [inline] |
T* openalpp::ref_ptr< T >::take | ( | ) | [inline] |
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.
T* openalpp::ref_ptr< T >::release | ( | ) | [inline] |