|
Equalizer 1.0
|
A smart reference pointer. More...
#include <refPtr.h>
Collaboration diagram for co::base::RefPtr< T >: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 |
| 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.
Relies on the held object to implement ref and unref correctly.
| co::base::RefPtr< T >::RefPtr | ( | ) | [inline] |
| co::base::RefPtr< T >::RefPtr | ( | T *const | ptr | ) | [inline] |
| co::base::RefPtr< T >::RefPtr | ( | const RefPtr< T > & | from | ) | [inline] |
| co::base::RefPtr< T >::~RefPtr | ( | ) | [inline] |
| T* co::base::RefPtr< T >::get | ( | ) | [inline] |
| const T* co::base::RefPtr< T >::get | ( | ) | const [inline] |
| bool co::base::RefPtr< T >::isValid | ( | ) | const [inline] |
| bool co::base::RefPtr< T >::operator! | ( | ) | const [inline] |
| bool co::base::RefPtr< T >::operator!= | ( | const T * | ptr | ) | const [inline] |
| bool co::base::RefPtr< T >::operator!= | ( | const RefPtr< T > & | rhs | ) | const [inline] |
| const T& co::base::RefPtr< T >::operator* | ( | ) | const [inline] |
| T& co::base::RefPtr< T >::operator* | ( | ) | [inline] |
| const T* co::base::RefPtr< T >::operator-> | ( | ) | const [inline] |
| T* co::base::RefPtr< T >::operator-> | ( | ) | [inline] |
| bool co::base::RefPtr< T >::operator< | ( | const RefPtr< T > & | rhs | ) | const [inline] |
| RefPtr& co::base::RefPtr< T >::operator= | ( | T * | ptr | ) | [inline] |
| RefPtr& co::base::RefPtr< T >::operator= | ( | const RefPtr< T > & | rhs | ) | [inline] |
| bool co::base::RefPtr< T >::operator== | ( | const T * | ptr | ) | const [inline] |
| bool co::base::RefPtr< T >::operator== | ( | const RefPtr< T > & | rhs | ) | const [inline] |
| bool co::base::RefPtr< T >::operator> | ( | const RefPtr< T > & | rhs | ) | const [inline] |
1.0 by
1.7.3