|
ACF $AcfVersion:0$
|
Implementation of data transfer smart pointer. More...
#include <TTransPtr.h>
Public Member Functions | |
| 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 |
Public Attributes | |
| QSharedPointer< Type > | m_impl |
Protected Member Functions | |
| TTransPtr () | |
Implementation of data transfer smart pointer.
It should be used to pointer transfer only, not to store the pointers becouse it overtakes the pointer. Typically it is used as smart pointer return parameters. The adventage against 'normal' smart pointer (istd::TSmartPtr) is that the copy constructor is faster, because it overtakes the pointer.
Definition at line 21 of file TTransPtr.h.
|
inlineprotected |
Definition at line 122 of file TTransPtr.h.
|
inline |
Definition at line 50 of file TTransPtr.h.
References istd::TTransPtr< Type >::GetPtr().
|
inline |
Get access to pointed object.
Definition at line 87 of file TTransPtr.h.
|
inline |
Get access to pointed object.
Definition at line 80 of file TTransPtr.h.
Referenced by ibase::TFactorisableContainer< InterfaceClass >::AddElement(), istd::TTransPtr< Type >::Cast(), iview::CViewBase::GetTransform(), ibase::TFactorisableContainer< InterfaceClass >::InsertElement(), and istd::TSmartPtr< Type >::operator==().
|
inline |
Check, whether the object is in valid state.
Definition at line 73 of file TTransPtr.h.
References NULL.
Referenced by ibase::TFactorisableContainer< InterfaceClass >::AddElement(), and ibase::TFactorisableContainer< InterfaceClass >::InsertElement().
|
inline |
Copy operator overtaking the pointer.
| pointer | pointer to overtake - warning: After this operation this pointer is invalid! |
Definition at line 108 of file TTransPtr.h.
|
inline |
Definition at line 115 of file TTransPtr.h.
|
inline |
Set this pointer to NULL.
Definition at line 94 of file TTransPtr.h.
|
inline |
Swap two pointers.
Definition at line 101 of file TTransPtr.h.
| QSharedPointer<Type> istd::TTransPtr< Type >::m_impl |
Definition at line 63 of file TTransPtr.h.
Referenced by istd::TSmartPtr< Type >::TSmartPtr().