GME  13
Public Member Functions | Public Attributes
CComObjPtr< T > Class Template Reference

#include <CommonSmart.h>

Collaboration diagram for CComObjPtr< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CComObjPtr ()
 CComObjPtr (T *q)
 CComObjPtr (const CComObjPtr< T > &q)
 CComObjPtr (CComObjPtr< T > &&q)
CComObjPtroperator= (CComObjPtr< T > &&q)
 ~CComObjPtr ()
void Release ()
 operator T * () const
T & operator* () const
T * operator-> () const
T * operator= (T *q)
T * operator= (const CComObjPtr< T > &q)
bool operator== (T *q) const
bool operator!= (T *q) const
T * Detach ()
void Attach (T *q)
template<class Q >
HRESULT QueryInterface (CComObjPtr< Q > &q) const
HRESULT CoCreateInstance (REFCLSID rclsid, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)
HRESULT CoCreateInstance (LPCOLESTR szProgID, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)

Public Attributes

T * p

Detailed Description

template<class T>
class CComObjPtr< T >

Definition at line 21 of file CommonSmart.h.


Constructor & Destructor Documentation

template<class T>
CComObjPtr< T >::CComObjPtr ( ) [inline]

Definition at line 24 of file CommonSmart.h.

template<class T>
CComObjPtr< T >::CComObjPtr ( T *  q) [inline]

Definition at line 25 of file CommonSmart.h.

template<class T>
CComObjPtr< T >::CComObjPtr ( const CComObjPtr< T > &  q) [inline]

Definition at line 26 of file CommonSmart.h.

template<class T>
CComObjPtr< T >::CComObjPtr ( CComObjPtr< T > &&  q) [inline]

Definition at line 27 of file CommonSmart.h.

template<class T>
CComObjPtr< T >::~CComObjPtr ( ) [inline]

Definition at line 43 of file CommonSmart.h.


Member Function Documentation

template<class T>
void CComObjPtr< T >::Attach ( T *  q) [inline]

Definition at line 56 of file CommonSmart.h.

template<class T>
HRESULT CComObjPtr< T >::CoCreateInstance ( REFCLSID  rclsid,
LPUNKNOWN  pUnkOuter = NULL,
DWORD  dwClsContext = CLSCTX_ALL 
) [inline]

Definition at line 65 of file CommonSmart.h.

template<class T>
HRESULT CComObjPtr< T >::CoCreateInstance ( LPCOLESTR  szProgID,
LPUNKNOWN  pUnkOuter = NULL,
DWORD  dwClsContext = CLSCTX_ALL 
) [inline]

Definition at line 71 of file CommonSmart.h.

template<class T>
T* CComObjPtr< T >::Detach ( ) [inline]

Definition at line 55 of file CommonSmart.h.

template<class T>
CComObjPtr< T >::operator T * ( ) const [inline]

Definition at line 47 of file CommonSmart.h.

template<class T>
bool CComObjPtr< T >::operator!= ( T *  q) const [inline]

Definition at line 53 of file CommonSmart.h.

template<class T>
T& CComObjPtr< T >::operator* ( ) const [inline]

Definition at line 48 of file CommonSmart.h.

template<class T>
T* CComObjPtr< T >::operator-> ( ) const [inline]

Definition at line 49 of file CommonSmart.h.

template<class T>
CComObjPtr& CComObjPtr< T >::operator= ( CComObjPtr< T > &&  q) [inline]

Definition at line 32 of file CommonSmart.h.

template<class T>
T* CComObjPtr< T >::operator= ( T *  q) [inline]

Definition at line 50 of file CommonSmart.h.

template<class T>
T* CComObjPtr< T >::operator= ( const CComObjPtr< T > &  q) [inline]

Definition at line 51 of file CommonSmart.h.

template<class T>
bool CComObjPtr< T >::operator== ( T *  q) const [inline]

Definition at line 52 of file CommonSmart.h.

template<class T>
template<class Q >
HRESULT CComObjPtr< T >::QueryInterface ( CComObjPtr< Q > &  q) const [inline]

Definition at line 59 of file CommonSmart.h.

template<class T>
void CComObjPtr< T >::Release ( ) [inline]

Definition at line 45 of file CommonSmart.h.


Member Data Documentation

template<class T>
T* CComObjPtr< T >::p

Definition at line 82 of file CommonSmart.h.


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