MeVisLabToolboxReference
macx::SmartPtr< T > Class Template Reference

Smart pointer to reference counted object (Helper class) More...

#include <macSmartPtr.h>

List of all members.

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)

Detailed Description

template<class T>
class macx::SmartPtr< T >

Smart pointer to reference counted object (Helper class)

Definition at line 17 of file macSmartPtr.h.


Constructor & Destructor Documentation

template<class T>
macx::SmartPtr< T >::SmartPtr ( ) [inline]

Definition at line 21 of file macSmartPtr.h.

template<class T>
macx::SmartPtr< T >::SmartPtr ( const SmartPtr< T > &  p) [inline]
template<class T>
macx::SmartPtr< T >::SmartPtr ( T *  o) [inline]

Definition at line 27 of file macSmartPtr.h.

template<class T>
macx::SmartPtr< T >::~SmartPtr ( ) [inline]

Definition at line 32 of file macSmartPtr.h.


Member Function Documentation

template<class T>
bool macx::SmartPtr< T >::isNull ( ) const [inline]

Definition at line 62 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
macx::SmartPtr< T >::operator T * ( ) const [inline]

Definition at line 68 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
bool macx::SmartPtr< T >::operator!= ( const SmartPtr< T > &  p) const [inline]

Definition at line 50 of file macSmartPtr.h.

template<class T>
bool macx::SmartPtr< T >::operator!= ( T *  p) const [inline]

Definition at line 58 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
T& macx::SmartPtr< T >::operator* ( ) const [inline]

Definition at line 66 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
T* macx::SmartPtr< T >::operator-> ( ) const [inline]

Definition at line 64 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
SmartPtr<T>& macx::SmartPtr< T >::operator= ( T *  o) [inline]

Definition at line 41 of file macSmartPtr.h.

References macx::SmartPtr< T >::setObject().

template<class T>
SmartPtr<T>& macx::SmartPtr< T >::operator= ( const SmartPtr< T > &  p) [inline]
template<class T>
bool macx::SmartPtr< T >::operator== ( const SmartPtr< T > &  p) const [inline]

Definition at line 46 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
bool macx::SmartPtr< T >::operator== ( T *  p) const [inline]

Definition at line 54 of file macSmartPtr.h.

References macx::SmartPtr< T >::object().

template<class T>
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().


The documentation for this class was generated from the following file: