ACF $AcfVersion:0$
Public Member Functions | List of all members
istd::TSmartPtr< Type > Class Template Reference

#include <TSmartPtr.h>

Inheritance diagram for istd::TSmartPtr< Type >:
istd::TTransPtr< Type >

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 ()
 

Detailed Description

template<class Type>
class istd::TSmartPtr< Type >
Deprecated:
Use QSharedPointer instead!

Definition at line 21 of file TSmartPtr.h.

Constructor & Destructor Documentation

◆ TSmartPtr() [1/3]

template<class Type >
istd::TSmartPtr< Type >::TSmartPtr ( )
inline

Definition at line 61 of file TSmartPtr.h.

◆ TSmartPtr() [2/3]

template<class Type >
istd::TSmartPtr< Type >::TSmartPtr ( Type *  pointer)
inlineexplicit

Definition at line 67 of file TSmartPtr.h.

◆ TSmartPtr() [3/3]

template<class Type >
istd::TSmartPtr< Type >::TSmartPtr ( const TTransPtr< Type > &  trans)
inline

Definition at line 74 of file TSmartPtr.h.

References istd::TTransPtr< Type >::m_impl.

Member Function Documentation

◆ operator==()

template<class Type >
bool istd::TSmartPtr< Type >::operator== ( const TSmartPtr< Type > &  other) const
inline

Definition at line 88 of file TSmartPtr.h.

References istd::TTransPtr< Type >::GetPtr().

◆ SetCastedOrRemove()

template<class Type >
template<class SourceType >
bool istd::TSmartPtr< Type >::SetCastedOrRemove ( SourceType *  pointer)
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().

◆ SetPtr()

template<class Type >
void istd::TSmartPtr< Type >::SetPtr ( Type *  pointer)
inline

Definition at line 81 of file TSmartPtr.h.

Referenced by istd::TSmartPtr< Type >::SetCastedOrRemove().


The documentation for this class was generated from the following file: