LibreOffice Module bridges (master) 1
|
A cpp proxy wrapping a uno interface. More...
#include <cppinterfaceproxy.hxx>
Public Member Functions | |
Bridge * | getBridge () |
uno_Interface * | getUnoI () |
typelib_InterfaceTypeDescription * | getTypeDescr () |
const OUString & | getOid () const |
void | acquireProxy () |
void | releaseProxy () |
Static Public Member Functions | |
static com::sun::star::uno::XInterface * | create (Bridge *pBridge, uno_Interface *pUnoI, typelib_InterfaceTypeDescription *pTypeDescr, OUString const &rOId) |
static CppInterfaceProxy * | castInterfaceToProxy (void *pInterface) |
Private Member Functions | |
CppInterfaceProxy (CppInterfaceProxy const &)=delete | |
CppInterfaceProxy & | operator= (const CppInterfaceProxy &)=delete |
CppInterfaceProxy (Bridge *pBridge_, uno_Interface *pUnoI_, typelib_InterfaceTypeDescription *pTypeDescr_, OUString aOId_) | |
~CppInterfaceProxy () | |
Static Private Member Functions | |
static com::sun::star::uno::XInterface * | castProxyToInterface (CppInterfaceProxy *pProxy) |
Private Attributes | |
std::atomic< std::size_t > | nRef |
Bridge * | pBridge |
uno_Interface * | pUnoI |
typelib_InterfaceTypeDescription * | pTypeDescr |
OUString | oid |
VtableFactory::Slot * | vtables [1] = {} |
Friends | |
void | freeCppInterfaceProxy (uno_ExtEnvironment *pEnv, void *pInterface) |
A cpp proxy wrapping a uno interface.
Definition at line 46 of file cppinterfaceproxy.hxx.
|
privatedelete |
Referenced by create().
|
private |
Definition at line 105 of file cppinterfaceproxy.cxx.
References bridges::cpp_uno::shared::Bridge::acquire(), bridges::cpp_uno::shared::Bridge::getUnoEnv(), nRef, oid, pBridge, pTypeDescr, and pUnoI.
|
private |
Definition at line 122 of file cppinterfaceproxy.cxx.
void bridges::cpp_uno::shared::CppInterfaceProxy::acquireProxy | ( | ) |
Definition at line 81 of file cppinterfaceproxy.cxx.
References castProxyToInterface(), freeCppInterfaceProxy, bridges::cpp_uno::shared::Bridge::getCppEnv(), nRef, oid, pBridge, and pTypeDescr.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
static |
Definition at line 132 of file cppinterfaceproxy.cxx.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
staticprivate |
Definition at line 125 of file cppinterfaceproxy.cxx.
References vtables.
Referenced by acquireProxy(), create(), and releaseProxy().
|
static |
Definition at line 57 of file cppinterfaceproxy.cxx.
References bridges::cpp_uno::shared::VtableFactory::Vtables::blocks, castProxyToInterface(), bridges::cpp_uno::shared::VtableFactory::Vtables::count, CppInterfaceProxy(), bridges::cpp_uno::shared::VtableFactory::getVtables(), i, bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(), pBridge, pTypeDescr, pUnoI, typelib_typedescription_complete(), and vtables.
|
inline |
Definition at line 57 of file cppinterfaceproxy.hxx.
References pBridge.
Referenced by cpp2uno_call(), cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
inline |
Definition at line 60 of file cppinterfaceproxy.hxx.
References oid.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
inline |
Definition at line 59 of file cppinterfaceproxy.hxx.
References pTypeDescr.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
inline |
Definition at line 58 of file cppinterfaceproxy.hxx.
References pUnoI.
Referenced by cpp2uno_call().
|
privatedelete |
void bridges::cpp_uno::shared::CppInterfaceProxy::releaseProxy | ( | ) |
Definition at line 95 of file cppinterfaceproxy.cxx.
References castProxyToInterface(), bridges::cpp_uno::shared::Bridge::getCppEnv(), nRef, and pBridge.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
|
friend |
Definition at line 35 of file cppinterfaceproxy.cxx.
Referenced by acquireProxy().
|
private |
Definition at line 82 of file cppinterfaceproxy.hxx.
Referenced by acquireProxy(), and releaseProxy().
|
private |
Definition at line 88 of file cppinterfaceproxy.hxx.
Referenced by acquireProxy(), CppInterfaceProxy(), and getOid().
|
private |
Definition at line 83 of file cppinterfaceproxy.hxx.
Referenced by acquireProxy(), CppInterfaceProxy(), create(), getBridge(), and releaseProxy().
|
private |
Definition at line 87 of file cppinterfaceproxy.hxx.
Referenced by acquireProxy(), CppInterfaceProxy(), create(), and getTypeDescr().
|
private |
Definition at line 86 of file cppinterfaceproxy.hxx.
Referenced by CppInterfaceProxy(), create(), and getUnoI().
|
private |
Definition at line 90 of file cppinterfaceproxy.hxx.
Referenced by castInterfaceToProxy(), castProxyToInterface(), and create().