ReactOS  0.4.15-dev-3193-g74513a7
ATL::CComContainedObject< Base > Class Template Reference

#include <atlcom.h>

Inheritance diagram for ATL::CComContainedObject< Base >:
Collaboration diagram for ATL::CComContainedObject< Base >:

Public Member Functions

 CComContainedObject (void *pv=NULL)
 
 STDMETHOD_ (ULONG, AddRef)()
 
 STDMETHOD_ (ULONG, Release)()
 
STDMETHOD() QueryInterface (REFIID iid, void **ppvObject)
 
IUnknownGetControllingUnknown ()
 

Public Attributes

IUnknownm_pUnkOuter
 

Detailed Description

template<class Base>
class ATL::CComContainedObject< Base >

Definition at line 202 of file atlcom.h.

Constructor & Destructor Documentation

◆ CComContainedObject()

template<class Base>
ATL::CComContainedObject< Base >::CComContainedObject ( void pv = NULL)
inline

Definition at line 206 of file atlcom.h.

206  : m_pUnkOuter(static_cast<IUnknown*>(pv))
207  {
208  }
IUnknown * m_pUnkOuter
Definition: atlcom.h:205

Member Function Documentation

◆ GetControllingUnknown()

template<class Base>
IUnknown* ATL::CComContainedObject< Base >::GetControllingUnknown ( )
inline

Definition at line 225 of file atlcom.h.

226  {
227  return m_pUnkOuter;
228  }
IUnknown * m_pUnkOuter
Definition: atlcom.h:205

◆ QueryInterface()

template<class Base>
STDMETHOD() ATL::CComContainedObject< Base >::QueryInterface ( REFIID  iid,
void **  ppvObject 
)
inline

Definition at line 220 of file atlcom.h.

221  {
222  return m_pUnkOuter->QueryInterface(iid, ppvObject);
223  }
REFIID LPVOID * ppvObject
Definition: precomp.h:44
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
IUnknown * m_pUnkOuter
Definition: atlcom.h:205

◆ STDMETHOD_() [1/2]

template<class Base>
ATL::CComContainedObject< Base >::STDMETHOD_ ( ULONG  ,
AddRef   
)
inline

Definition at line 210 of file atlcom.h.

211  {
212  return m_pUnkOuter->AddRef();
213  }
ULONG AddRef()
IUnknown * m_pUnkOuter
Definition: atlcom.h:205

◆ STDMETHOD_() [2/2]

template<class Base>
ATL::CComContainedObject< Base >::STDMETHOD_ ( ULONG  ,
Release   
)
inline

Definition at line 215 of file atlcom.h.

216  {
217  return m_pUnkOuter->Release();
218  }
ULONG Release()
IUnknown * m_pUnkOuter
Definition: atlcom.h:205

Member Data Documentation

◆ m_pUnkOuter


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