19 Q_ASSERT(ptr !=
NULL);
37 Q_ASSERT(ptr !=
NULL);
87 template <
class CastedType>
90 return dynamic_cast<CastedType
>(
GetPtr());
115 Type* m_ptr =
nullptr;
138 return (m_ptr !=
NULL);
145 qSwap(m_ptr, ptr.m_ptr);
152 Q_ASSERT(m_ptr !=
NULL);
168 return (m_ptr == ptr.m_ptr);
175 return (m_ptr != ptr.m_ptr);
182 return m_ptr < ptr.m_ptr;
189 return m_ptr > ptr.m_ptr;
196 return m_ptr <= ptr.m_ptr;
203 return m_ptr >= ptr.m_ptr;
210 return (m_ptr == ptr);
217 return (m_ptr != ptr);
224 return (m_ptr < ptr);
231 return (m_ptr > ptr);
238 return (m_ptr <= ptr);
245 return (m_ptr >= ptr);
static void Delete(Type *ptr)
static void Delete(Type *ptr)
Implementation of pointer wrapper.
bool operator==(const Type *ptr) const
bool operator>(const Type *ptr) const
TPointerBase< Type > & operator=(const TPointerBase< Type > ptr)
bool operator>=(const Type *ptr) const
Type & operator*() const
Get an access to object pointed at.
bool operator>=(const TPointerBase< Type > &ptr) const
void Swap(TPointerBase &ptr)
Swap two pointers.
bool IsValid() const
Check if internal pointer not NULL.
Type * operator->() const
void SetPtr(Type *ptr)
Set value of internal stored pointer.
Type * GetPtr() const
Return access to internal stored pointer.
void Reset()
Set internal pointer value to NULL.
bool operator<(const TPointerBase< Type > &ptr) const
bool operator>(const TPointerBase< Type > &ptr) const
TPointerBase(Type *ptr=NULL)
Construct and assign internal pointer.
bool operator<=(const TPointerBase< Type > &ptr) const
bool operator!=(const Type *ptr) const
bool operator!=(const TPointerBase< Type > &ptr) const
bool operator<(const Type *ptr) const
bool operator<=(const Type *ptr) const
bool operator==(const TPointerBase< Type > &ptr) const