Lunchbox
1.6.0
|
A smart reference pointer, aka boost::intrusive_ptr. More...
#include <refPtr.h>
Public Member Functions | |
RefPtr () | |
Construct a new, empty reference pointer. | |
RefPtr (T *const ptr) | |
Construct a reference pointer from a C pointer. | |
RefPtr (const RefPtr &from) | |
Construct a copy of a reference pointer. | |
template<class O > | |
RefPtr (RefPtr< O > from) | |
Construct a copy of a reference pointer of a different type. | |
~RefPtr () | |
Destruct this reference pointer. | |
RefPtr & | operator= (const RefPtr &rhs) |
Assign another RefPtr to this reference pointer. | |
RefPtr & | operator= (T *ptr) |
Assign a C pointer to this reference pointer. | |
bool | operator== (const RefPtr &rhs) const |
bool | operator!= (const RefPtr &rhs) const |
operator bool_t () const | |
bool | operator< (const RefPtr &rhs) const |
bool | operator> (const RefPtr &rhs) const |
bool | operator! () const |
bool | operator== (const T *ptr) const |
bool | operator!= (const T *ptr) const |
T * | operator-> () |
Access the held object. | |
const T * | operator-> () const |
Access the held object. | |
T & | operator* () |
Access the held object. | |
const T & | operator* () const |
Access the held object. | |
T * | get () |
const T * | get () const |
bool | isValid () const |
A smart reference pointer, aka boost::intrusive_ptr.
Relies on the held object to implement ref() and unref() correctly.
lunchbox::RefPtr< T >::RefPtr | ( | ) | [inline] |
lunchbox::RefPtr< T >::RefPtr | ( | T *const | ptr | ) | [inline] |
lunchbox::RefPtr< T >::RefPtr | ( | const RefPtr< T > & | from | ) | [inline] |
lunchbox::RefPtr< T >::~RefPtr | ( | ) | [inline] |
T* lunchbox::RefPtr< T >::get | ( | ) | [inline] |
const T* lunchbox::RefPtr< T >::get | ( | ) | const [inline] |
bool lunchbox::RefPtr< T >::isValid | ( | ) | const [inline] |
lunchbox::RefPtr< T >::operator bool_t | ( | ) | const [inline] |
bool lunchbox::RefPtr< T >::operator! | ( | ) | const [inline] |
bool lunchbox::RefPtr< T >::operator!= | ( | const RefPtr< T > & | rhs | ) | const [inline] |
bool lunchbox::RefPtr< T >::operator!= | ( | const T * | ptr | ) | const [inline] |
T& lunchbox::RefPtr< T >::operator* | ( | ) | [inline] |
Access the held object.
Definition at line 140 of file refPtr.h.
References lunchbox::className().
const T& lunchbox::RefPtr< T >::operator* | ( | ) | const [inline] |
Access the held object.
Definition at line 143 of file refPtr.h.
References lunchbox::className().
T* lunchbox::RefPtr< T >::operator-> | ( | ) | [inline] |
Access the held object.
Definition at line 134 of file refPtr.h.
References lunchbox::className().
const T* lunchbox::RefPtr< T >::operator-> | ( | ) | const [inline] |
Access the held object.
Definition at line 137 of file refPtr.h.
References lunchbox::className().
bool lunchbox::RefPtr< T >::operator< | ( | const RefPtr< T > & | rhs | ) | const [inline] |
RefPtr& lunchbox::RefPtr< T >::operator= | ( | const RefPtr< T > & | rhs | ) | [inline] |
RefPtr& lunchbox::RefPtr< T >::operator= | ( | T * | ptr | ) | [inline] |
bool lunchbox::RefPtr< T >::operator== | ( | const RefPtr< T > & | rhs | ) | const [inline] |
bool lunchbox::RefPtr< T >::operator== | ( | const T * | ptr | ) | const [inline] |
bool lunchbox::RefPtr< T >::operator> | ( | const RefPtr< T > & | rhs | ) | const [inline] |