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 const &rOId_) | |
~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 103 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 120 of file cppinterfaceproxy.cxx.
Referenced by bridges::cpp_uno::shared::freeCppInterfaceProxy().
void bridges::cpp_uno::shared::CppInterfaceProxy::acquireProxy | ( | ) |
Definition at line 79 of file cppinterfaceproxy.cxx.
References assert(), 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 130 of file cppinterfaceproxy.cxx.
Referenced by cpp_mediate(), cpp_vtable_call(), bridges::cpp_uno::shared::freeCppInterfaceProxy(), and vtableCall().
|
staticprivate |
Definition at line 123 of file cppinterfaceproxy.cxx.
References vtables.
Referenced by acquireProxy(), create(), and releaseProxy().
|
static |
Definition at line 56 of file cppinterfaceproxy.cxx.
References castProxyToInterface(), CppInterfaceProxy(), bridges::cpp_uno::shared::VtableFactory::getVtables(), i, bridges::cpp_uno::shared::VtableFactory::mapBlockToVtable(), typelib_typedescription_complete(), and vtables.
Referenced by bridges::cpp_uno::shared::uno2cppMapping().
|
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 93 of file cppinterfaceproxy.cxx.
References castProxyToInterface(), bridges::cpp_uno::shared::Bridge::getCppEnv(), nRef, and pBridge.
Referenced by cpp_mediate(), cpp_vtable_call(), and vtableCall().
Definition at line 34 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(), bridges::cpp_uno::shared::freeCppInterfaceProxy(), getBridge(), and releaseProxy().
|
private |
Definition at line 87 of file cppinterfaceproxy.hxx.
Referenced by acquireProxy(), CppInterfaceProxy(), bridges::cpp_uno::shared::freeCppInterfaceProxy(), and getTypeDescr().
|
private |
Definition at line 86 of file cppinterfaceproxy.hxx.
Referenced by CppInterfaceProxy(), bridges::cpp_uno::shared::freeCppInterfaceProxy(), and getUnoI().
|
private |
Definition at line 90 of file cppinterfaceproxy.hxx.
Referenced by castInterfaceToProxy(), castProxyToInterface(), and create().