CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TPtr< TObj, THelper > Class Template Reference

#include <TPtr.h>

Public Member Functions

 TPtr ()
 
 TPtr (const TPtr &ref)
 
 TPtr (const TObj *pObj, bool bAttach=false)
 
 ~TPtr ()
 
TPtroperator= (TObj *pObj)
 
TPtroperator= (const TPtr &ref)
 
template<class U >
 TPtr (const TPtr< U > &pOther)
 
template<class U >
TPtroperator= (const TPtr< U > &other)
 
template<class U >
TPtr< U > staticCast () const
 
template<class U >
TPtr< U > dynamicCast () const
 
const TObj * get () const
 
TObj * get ()
 
TObj * operator-> ()
 
const TObj * operator-> () const
 
 operator TObj * ()
 
 operator const TObj * () const
 
TObj ** getPtr ()
 
bool isNull () const
 
TObj * detach ()
 
TObj * attach (TObj *obj)
 

Protected Member Functions

TPtrreplace (TObj *pObj)
 

Protected Attributes

TObj * m_obj
 

Friends

template<class U , typename UHelper >
class TPtr
 

Detailed Description

template<typename TObj, typename THelper = TObjRelease<TObj>>
class TPtr< TObj, THelper >

<group Other_Classes>

<group Other_Classes>

Definition at line 75 of file TPtr.h.

Constructor & Destructor Documentation

◆ TPtr() [1/4]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::TPtr ( )
inline

Definition at line 89 of file TPtr.h.

◆ TPtr() [2/4]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::TPtr ( const TPtr< TObj, THelper > &  ref)
inline

Definition at line 90 of file TPtr.h.

◆ TPtr() [3/4]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::TPtr ( const TObj *  pObj,
bool  bAttach = false 
)
inline

Definition at line 94 of file TPtr.h.

◆ ~TPtr()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::~TPtr ( )
inline

Definition at line 99 of file TPtr.h.

◆ TPtr() [4/4]

template<typename TObj , typename THelper = TObjRelease<TObj>>
template<class U >
TPtr< TObj, THelper >::TPtr ( const TPtr< U > &  pOther)
inline

Definition at line 112 of file TPtr.h.

Member Function Documentation

◆ attach()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj * TPtr< TObj, THelper >::attach ( TObj *  obj)
inline

Definition at line 170 of file TPtr.h.

◆ detach()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj * TPtr< TObj, THelper >::detach ( )
inline

Definition at line 164 of file TPtr.h.

◆ dynamicCast()

template<typename TObj , typename THelper = TObjRelease<TObj>>
template<class U >
TPtr< U > TPtr< TObj, THelper >::dynamicCast ( ) const
inline

Definition at line 124 of file TPtr.h.

◆ get() [1/2]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj * TPtr< TObj, THelper >::get ( )
inline

Definition at line 132 of file TPtr.h.

◆ get() [2/2]

template<typename TObj , typename THelper = TObjRelease<TObj>>
const TObj * TPtr< TObj, THelper >::get ( ) const
inline

Definition at line 128 of file TPtr.h.

◆ getPtr()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj ** TPtr< TObj, THelper >::getPtr ( )
inline

Definition at line 154 of file TPtr.h.

◆ isNull()

template<typename TObj , typename THelper = TObjRelease<TObj>>
bool TPtr< TObj, THelper >::isNull ( ) const
inline

Definition at line 160 of file TPtr.h.

◆ operator const TObj *()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::operator const TObj * ( ) const
inline

Definition at line 150 of file TPtr.h.

◆ operator TObj *()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr< TObj, THelper >::operator TObj * ( )
inline

Definition at line 146 of file TPtr.h.

◆ operator->() [1/2]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj * TPtr< TObj, THelper >::operator-> ( )
inline

Definition at line 136 of file TPtr.h.

◆ operator->() [2/2]

template<typename TObj , typename THelper = TObjRelease<TObj>>
const TObj * TPtr< TObj, THelper >::operator-> ( ) const
inline

Definition at line 141 of file TPtr.h.

◆ operator=() [1/3]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr & TPtr< TObj, THelper >::operator= ( const TPtr< TObj, THelper > &  ref)
inline

Definition at line 107 of file TPtr.h.

◆ operator=() [2/3]

template<typename TObj , typename THelper = TObjRelease<TObj>>
template<class U >
TPtr & TPtr< TObj, THelper >::operator= ( const TPtr< U > &  other)
inline

Definition at line 116 of file TPtr.h.

◆ operator=() [3/3]

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr & TPtr< TObj, THelper >::operator= ( TObj *  pObj)
inline

Definition at line 103 of file TPtr.h.

◆ replace()

template<typename TObj , typename THelper = TObjRelease<TObj>>
TPtr & TPtr< TObj, THelper >::replace ( TObj *  pObj)
inlineprotected

Definition at line 80 of file TPtr.h.

◆ staticCast()

template<typename TObj , typename THelper = TObjRelease<TObj>>
template<class U >
TPtr< U > TPtr< TObj, THelper >::staticCast ( ) const
inline

Definition at line 120 of file TPtr.h.

Friends And Related Function Documentation

◆ TPtr

template<typename TObj , typename THelper = TObjRelease<TObj>>
template<class U , typename UHelper >
friend class TPtr
friend

Definition at line 111 of file TPtr.h.

Member Data Documentation

◆ m_obj

template<typename TObj , typename THelper = TObjRelease<TObj>>
TObj* TPtr< TObj, THelper >::m_obj
protected

Definition at line 78 of file TPtr.h.


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