6#include <QtCore/QSharedPointer>
49 template <
class CastedType>
52 return dynamic_cast<CastedType
>(
GetPtr());
75 return m_impl.data() !=
NULL;
103 m_impl.swap(pointer);
117 return m_impl.data();
Implementation of data transfer smart pointer.
Type * GetPtr()
Get access to pointed object.
const Type * GetPtr() const
Get access to pointed object.
bool IsValid() const
Check, whether the object is in valid state.
Type * operator->() const
Type & operator*() const
Copy operator overtaking the pointer.
QSharedPointer< Type > m_impl
void Swap(TTransPtr &pointer)
Swap two pointers.
void Reset()
Set this pointer to NULL.