Util::ComPtr< T > Class Template Reference

#include <Utils.h>

Collaboration diagram for Util::ComPtr< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ComPtr ()
 ComPtr (T *q)
 ComPtr (const ComPtr< T > &q)
 ComPtr (const CComPtr< T > &q)
 ~ComPtr ()
void Release ()
 operator CComPtr< T > () const
 operator T * () const
 operator bool () const
bool operator! () const
T & operator* () const
T * operator-> () const
T * operator= (T *q)
T * operator= (const ComPtr< T > &q)
T * operator= (const CComPtr< T > &q)
bool operator== (T *q) const
bool operator!= (T *q) const
bool operator< (T *q) const
T ** Addr ()
T * Detach ()
void Attach (T *q)
template<class Q >
HRESULT QueryInterface (ComPtr< 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 Util::ComPtr< T >

Definition at line 77 of file Utils.h.


Constructor & Destructor Documentation

template<class T>
Util::ComPtr< T >::ComPtr (  )  [inline]

Definition at line 85 of file Utils.h.

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

Definition at line 90 of file Utils.h.

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

Definition at line 96 of file Utils.h.

template<class T>
Util::ComPtr< T >::ComPtr ( const CComPtr< T > &  q  )  [inline]

Definition at line 102 of file Utils.h.

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

Definition at line 108 of file Utils.h.


Member Function Documentation

template<class T>
T** Util::ComPtr< T >::Addr (  )  [inline]

Definition at line 191 of file Utils.h.

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

Definition at line 204 of file Utils.h.

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

Definition at line 225 of file Utils.h.

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

Definition at line 219 of file Utils.h.

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

Definition at line 197 of file Utils.h.

template<class T>
Util::ComPtr< T >::operator bool (  )  const [inline]

Definition at line 133 of file Utils.h.

template<class T>
Util::ComPtr< T >::operator CComPtr< T > (  )  const [inline]

Definition at line 123 of file Utils.h.

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

Definition at line 128 of file Utils.h.

template<class T>
bool Util::ComPtr< T >::operator! (  )  const [inline]

Definition at line 138 of file Utils.h.

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

Definition at line 179 of file Utils.h.

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

Definition at line 143 of file Utils.h.

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

Definition at line 149 of file Utils.h.

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

Definition at line 184 of file Utils.h.

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

Definition at line 169 of file Utils.h.

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

Definition at line 164 of file Utils.h.

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

Definition at line 155 of file Utils.h.

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

Definition at line 174 of file Utils.h.

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

Definition at line 213 of file Utils.h.

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

Definition at line 113 of file Utils.h.


Member Data Documentation

template<class T>
T* Util::ComPtr< T >::p

Definition at line 81 of file Utils.h.


The documentation for this class was generated from the following file:
Generated on Thu May 30 15:55:32 2013 for GME by  doxygen 1.6.3