CFx SDK Documentation  2020SP3
Public Member Functions | Protected Member Functions | Protected Attributes | 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)
 
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
 

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/3]

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

Definition at line 89 of file TPtr.h.

◆ TPtr() [2/3]

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/3]

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.

Member Function Documentation

◆ attach()

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

Definition at line 153 of file TPtr.h.

◆ detach()

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

Definition at line 147 of file TPtr.h.

◆ get() [1/2]

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

Definition at line 115 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 111 of file TPtr.h.

◆ getPtr()

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

Definition at line 137 of file TPtr.h.

◆ isNull()

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

Definition at line 143 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 133 of file TPtr.h.

◆ operator TObj *()

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

Definition at line 129 of file TPtr.h.

◆ operator->() [1/2]

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

Definition at line 119 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 124 of file TPtr.h.

◆ operator=() [1/2]

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/2]

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.

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: