37 template <
class SourceType>
40 Type* castedPtr =
dynamic_cast<Type*
>(pointer);
44 if (castedPtr !=
NULL){
69 m_impl.reset(pointer);
83 m_impl.reset(pointer);
90 return this->GetPtr() == other.
GetPtr();
TSmartPtr(const TTransPtr< Type > &trans)
bool operator==(const TSmartPtr &other) const
void SetPtr(Type *pointer)
bool SetCastedOrRemove(SourceType *pointer)
Set this pointer using casted pointer of other type.
Implementation of data transfer smart pointer.
const Type * GetPtr() const
Get access to pointed object.
QSharedPointer< Type > m_impl