|
ACF $AcfVersion:0$
|
#include <TSmartPtr.h>
Public Member Functions | |
| TSmartPtr () | |
| TSmartPtr (Type *pointer) | |
| TSmartPtr (const TTransPtr< Type > &trans) | |
| void | SetPtr (Type *pointer) |
| bool | operator== (const TSmartPtr &other) const |
| template<class SourceType > | |
| bool | SetCastedOrRemove (SourceType *pointer) |
| Set this pointer using casted pointer of other type. | |
Public Member Functions inherited from istd::TTransPtr< Type > | |
| bool | IsValid () const |
| Check, whether the object is in valid state. | |
| const Type * | GetPtr () const |
| Get access to pointed object. | |
| Type * | GetPtr () |
| Get access to pointed object. | |
| void | Reset () |
| Set this pointer to NULL. | |
| void | Swap (TTransPtr &pointer) |
| Swap two pointers. | |
| template<class CastedType > | |
| CastedType | Cast () const |
| Type & | operator* () const |
| Copy operator overtaking the pointer. | |
| Type * | operator-> () const |
Additional Inherited Members | |
Public Attributes inherited from istd::TTransPtr< Type > | |
| QSharedPointer< Type > | m_impl |
Protected Member Functions inherited from istd::TTransPtr< Type > | |
| TTransPtr () | |
Definition at line 21 of file TSmartPtr.h.
|
inline |
Definition at line 61 of file TSmartPtr.h.
|
inlineexplicit |
Definition at line 67 of file TSmartPtr.h.
|
inline |
Definition at line 74 of file TSmartPtr.h.
References istd::TTransPtr< Type >::m_impl.
|
inline |
Definition at line 88 of file TSmartPtr.h.
References istd::TTransPtr< Type >::GetPtr().
|
inline |
Set this pointer using casted pointer of other type.
If casting is not possible, object will be removed.
Definition at line 38 of file TSmartPtr.h.
References NULL, and istd::TSmartPtr< Type >::SetPtr().
|
inline |
Definition at line 81 of file TSmartPtr.h.
Referenced by istd::TSmartPtr< Type >::SetCastedOrRemove().