Template class that provides automatic casting for hold RefCount based objects.
#include <SUIT_SmartPtr.h>
Public Member Functions | |
SmartPtr () | |
default constructor More... | |
template<class Y > | |
SmartPtr (Y *y_) | |
constructor from any RefCount-based class More... | |
template<class Y > | |
SmartPtr (const SmartPtr< Y > &y_) | |
copy constructor from any RefCount-based class More... | |
SmartPtr (const SmartPtr &t_) | |
copy constructor More... | |
virtual | ~SmartPtr (void) |
destructor More... | |
T & | operator* () const |
return *pointer More... | |
T * | operator-> () const |
return pointer More... | |
operator T * () const | |
return pointer More... | |
T * | get () const |
return pointer More... | |
template<class Y > | |
SmartPtr & | operator= (const SmartPtr< Y > &y_) |
assignment More... | |
SmartPtr & | operator= (const SmartPtr &t_) |
SmartPtr & | operator= (T *p_) |
int | operator== (const SmartPtr &t_) |
comparing More... | |
int | operator== (const T *p_) |
comparing More... | |
int | operator!= (SmartPtr &t_) |
comparing More... | |
int | operator!= (T *p_) |
comparing More... | |
void | nullify () |
nullify More... | |
bool | isNull () const |
check for null More... | |
Private Attributes | |
T * | p |
stored pointer More... | |
Friends | |
int | operator== (const T *p_, const SmartPtr &t_) |
comparing More... | |
int | operator!= (T *p_, SmartPtr &t_) |
comparing More... | |
References SmartPtr< T >::p.
References SmartPtr< T >::get(), and SmartPtr< T >::p.
References SmartPtr< T >::p.
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::p.
|
inline |
References SmartPtr< T >::get().
assignment
References SmartPtr< T >::get(), and SmartPtr< T >::operator=().
References SmartPtr< T >::p.
References SmartPtr< T >::p.
References SmartPtr< T >::p.
|
friend |
|
private |