MeVisLabToolboxReference
|
Smart pointer to reference counted object (Helper class) More...
#include <macSmartPtr.h>
Public Member Functions | |
SmartPtr () | |
SmartPtr (const SmartPtr< T > &p) | |
SmartPtr (T *o) | |
~SmartPtr () | |
SmartPtr< T > & | operator= (const SmartPtr< T > &p) |
SmartPtr< T > & | operator= (T *o) |
bool | operator== (const SmartPtr< T > &p) const |
bool | operator!= (const SmartPtr< T > &p) const |
bool | operator== (T *p) const |
bool | operator!= (T *p) const |
bool | isNull () const |
T * | operator-> () const |
T & | operator* () const |
operator T * () const | |
Protected Member Functions | |
T * | object () const |
void | setObject (T *o) |
Smart pointer to reference counted object (Helper class)
Definition at line 17 of file macSmartPtr.h.
macx::SmartPtr< T >::SmartPtr | ( | ) | [inline] |
Definition at line 21 of file macSmartPtr.h.
macx::SmartPtr< T >::SmartPtr | ( | const SmartPtr< T > & | p | ) | [inline] |
Definition at line 23 of file macSmartPtr.h.
References macx::SmartPtr< T >::object(), and macx::SmartPtr< T >::setObject().
macx::SmartPtr< T >::SmartPtr | ( | T * | o | ) | [inline] |
Definition at line 27 of file macSmartPtr.h.
macx::SmartPtr< T >::~SmartPtr | ( | ) | [inline] |
Definition at line 32 of file macSmartPtr.h.
bool macx::SmartPtr< T >::isNull | ( | ) | const [inline] |
Definition at line 62 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
T* macx::SmartPtr< T >::object | ( | ) | const [inline, protected] |
Definition at line 72 of file macSmartPtr.h.
Referenced by macx::SmartPtr< T >::isNull(), macx::SmartPtr< T >::operator T *(), macx::SmartPtr< T >::operator!=(), macx::SmartPtr< T >::operator*(), macx::SmartPtr< T >::operator->(), macx::SmartPtr< T >::operator=(), macx::SmartPtr< T >::operator==(), and macx::SmartPtr< T >::SmartPtr().
macx::SmartPtr< T >::operator T * | ( | ) | const [inline] |
Definition at line 68 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
bool macx::SmartPtr< T >::operator!= | ( | const SmartPtr< T > & | p | ) | const [inline] |
Definition at line 50 of file macSmartPtr.h.
bool macx::SmartPtr< T >::operator!= | ( | T * | p | ) | const [inline] |
Definition at line 58 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
T& macx::SmartPtr< T >::operator* | ( | ) | const [inline] |
Definition at line 66 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
T* macx::SmartPtr< T >::operator-> | ( | ) | const [inline] |
Definition at line 64 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
SmartPtr<T>& macx::SmartPtr< T >::operator= | ( | T * | o | ) | [inline] |
Definition at line 41 of file macSmartPtr.h.
References macx::SmartPtr< T >::setObject().
SmartPtr<T>& macx::SmartPtr< T >::operator= | ( | const SmartPtr< T > & | p | ) | [inline] |
Definition at line 36 of file macSmartPtr.h.
References macx::SmartPtr< T >::object(), and macx::SmartPtr< T >::setObject().
bool macx::SmartPtr< T >::operator== | ( | const SmartPtr< T > & | p | ) | const [inline] |
Definition at line 46 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
bool macx::SmartPtr< T >::operator== | ( | T * | p | ) | const [inline] |
Definition at line 54 of file macSmartPtr.h.
References macx::SmartPtr< T >::object().
void macx::SmartPtr< T >::setObject | ( | T * | o | ) | [inline, protected] |
Definition at line 76 of file macSmartPtr.h.
Referenced by macx::SmartPtr< T >::operator=(), and macx::SmartPtr< T >::SmartPtr().