|
Lunchbox
1.4.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 139 of file refPtr.h.
References lunchbox::className().
Here is the call graph for this function:| const T& lunchbox::RefPtr< T >::operator* | ( | ) | const [inline] |
Access the held object.
Definition at line 142 of file refPtr.h.
References lunchbox::className().
Here is the call graph for this function:| T* lunchbox::RefPtr< T >::operator-> | ( | ) | [inline] |
Access the held object.
Definition at line 133 of file refPtr.h.
References lunchbox::className().
Here is the call graph for this function:| const T* lunchbox::RefPtr< T >::operator-> | ( | ) | const [inline] |
Access the held object.
Definition at line 136 of file refPtr.h.
References lunchbox::className().
Here is the call graph for this function:| 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] |
1.7.6.1