ReactOS  0.4.12-dev-102-g4b7f1e0
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 201 of file atlcom.h.

Constructor & Destructor Documentation

◆ CComContainedObject()

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

Definition at line 205 of file atlcom.h.

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

Member Function Documentation

◆ GetControllingUnknown()

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

Definition at line 224 of file atlcom.h.

225  {
226  return m_pUnkOuter;
227  }
IUnknown * m_pUnkOuter
Definition: atlcom.h:204

◆ QueryInterface()

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

Definition at line 219 of file atlcom.h.

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

◆ STDMETHOD_() [1/2]

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

Definition at line 209 of file atlcom.h.

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

◆ STDMETHOD_() [2/2]

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

Definition at line 214 of file atlcom.h.

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

Member Data Documentation

◆ m_pUnkOuter

template<class Base>
IUnknown* ATL::CComContainedObject< Base >::m_pUnkOuter

Definition at line 204 of file atlcom.h.


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