CMyComPtr< T > Class Template Reference

#include <MyCom.h>

List of all members.

Public Member Functions

 CMyComPtr ()
 CMyComPtr (T *p)
 CMyComPtr (const CMyComPtr< T > &lp)
 ~CMyComPtr ()
void Release ()
 operator T * () const
T ** operator & ()
T * operator-> () const
T * operator= (T *p)
T * operator= (const CMyComPtr< T > &lp)
bool operator! () const
void Attach (T *p2)
T * Detach ()
template<class Q>
HRESULT QueryInterface (REFGUID iid, Q **pp) const

Private Attributes

T * _p


Detailed Description

template<class T>
class CMyComPtr< T >

Definition at line 13 of file MyCom.h.


Constructor & Destructor Documentation

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

Definition at line 18 of file MyCom.h.

template<class T>
CMyComPtr< T >::CMyComPtr ( T *  p  )  [inline]

Definition at line 19 of file MyCom.h.

template<class T>
CMyComPtr< T >::CMyComPtr ( const CMyComPtr< T > &  lp  )  [inline]

Definition at line 20 of file MyCom.h.

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

Definition at line 25 of file MyCom.h.


Member Function Documentation

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

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

Definition at line 27 of file MyCom.h.

References CMyComPtr< T >::_p.

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

Definition at line 29 of file MyCom.h.

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

Definition at line 30 of file MyCom.h.

template<class T>
T* CMyComPtr< T >::operator= ( T *  p  )  [inline]

Definition at line 31 of file MyCom.h.

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

Definition at line 40 of file MyCom.h.

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

Definition at line 41 of file MyCom.h.

template<class T>
void CMyComPtr< T >::Attach ( T *  p2  )  [inline]

Definition at line 44 of file MyCom.h.

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

template<class T>
template<class Q>
HRESULT CMyComPtr< T >::QueryInterface ( REFGUID  iid,
Q **  pp 
) const [inline]

Definition at line 63 of file MyCom.h.

Referenced by CArchiveExtractCallback::CryptoGetTextPassword(), and OpenArchive().


Member Data Documentation

template<class T>
T* CMyComPtr< T >::_p [private]


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

Generated on Sun May 25 00:20:49 2008 by  doxygen 1.5.6