Lunchbox
1.8.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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 147 of file refPtr.h.
Referenced by lunchbox::PerThreadRef< T >::operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Access the held object.
Definition at line 140 of file refPtr.h.
References lunchbox::className().
|
inline |
Access the held object.
Definition at line 143 of file refPtr.h.
References lunchbox::className().
|
inline |
Access the held object.
Definition at line 134 of file refPtr.h.
References lunchbox::className().
|
inline |
Access the held object.
Definition at line 137 of file refPtr.h.
References lunchbox::className().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |