LibreOffice Module bridges (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
bridges::cpp_uno::shared::Bridge Class Reference

Holding environments and mappings. More...

#include <bridge.hxx>

Collaboration diagram for bridges::cpp_uno::shared::Bridge:
[legend]

Classes

struct  Mapping
 

Public Member Functions

void acquire ()
 
void release ()
 
uno_ExtEnvironment * getCppEnv ()
 
uno_ExtEnvironment * getUnoEnv ()
 
uno_MappinggetCpp2Uno ()
 
uno_MappinggetUno2Cpp ()
 

Static Public Member Functions

static uno_MappingcreateMapping (uno_ExtEnvironment *pCppEnv, uno_ExtEnvironment *pUnoEnv, bool bExportCpp2Uno)
 

Private Member Functions

 Bridge (Bridge const &)=delete
 
Bridgeoperator= (const Bridge &)=delete
 
 Bridge (uno_ExtEnvironment *pCppEnv_, uno_ExtEnvironment *pUnoEnv_, bool bExportCpp2Uno_)
 
 ~Bridge ()
 

Private Attributes

std::atomic< std::size_t > nRef
 
uno_ExtEnvironment * pCppEnv
 
uno_ExtEnvironment * pUnoEnv
 
Mapping aCpp2Uno
 
Mapping aUno2Cpp
 
bool bExportCpp2Uno
 

Friends

void freeMapping (uno_Mapping *pMapping)
 
void acquireMapping (uno_Mapping *pMapping)
 
void releaseMapping (uno_Mapping *pMapping)
 
void cpp2unoMapping (uno_Mapping *pMapping, void **ppUnoI, void *pCppI, typelib_InterfaceTypeDescription *pTypeDescr)
 
void uno2cppMapping (uno_Mapping *pMapping, void **ppCppI, void *pUnoI, typelib_InterfaceTypeDescription *pTypeDescr)
 

Detailed Description

Holding environments and mappings.

Definition at line 54 of file bridge.hxx.

Constructor & Destructor Documentation

◆ Bridge() [1/2]

bridges::cpp_uno::shared::Bridge::Bridge ( Bridge const &  )
privatedelete

Referenced by createMapping().

◆ Bridge() [2/2]

bridges::cpp_uno::shared::Bridge::Bridge ( uno_ExtEnvironment *  pCppEnv_,
uno_ExtEnvironment *  pUnoEnv_,
bool  bExportCpp2Uno_ 
)
private

◆ ~Bridge()

bridges::cpp_uno::shared::Bridge::~Bridge ( )
private

Definition at line 202 of file bridge.cxx.

References pCppEnv, and pUnoEnv.

Member Function Documentation

◆ acquire()

void bridges::cpp_uno::shared::Bridge::acquire ( )

◆ createMapping()

uno_Mapping * bridges::cpp_uno::shared::Bridge::createMapping ( uno_ExtEnvironment *  pCppEnv,
uno_ExtEnvironment *  pUnoEnv,
bool  bExportCpp2Uno 
)
static

Definition at line 142 of file bridge.cxx.

References aCpp2Uno, aUno2Cpp, bExportCpp2Uno, Bridge(), pCppEnv, and pUnoEnv.

Referenced by uno_ext_getMapping().

◆ getCpp2Uno()

uno_Mapping * bridges::cpp_uno::shared::Bridge::getCpp2Uno ( )
inline

Definition at line 72 of file bridge.hxx.

References aCpp2Uno.

Referenced by cpp2uno_call(), and cpp_call().

◆ getCppEnv()

uno_ExtEnvironment * bridges::cpp_uno::shared::Bridge::getCppEnv ( )
inline

◆ getUno2Cpp()

uno_Mapping * bridges::cpp_uno::shared::Bridge::getUno2Cpp ( )
inline

Definition at line 73 of file bridge.hxx.

References aUno2Cpp.

Referenced by cpp2uno_call(), and cpp_call().

◆ getUnoEnv()

uno_ExtEnvironment * bridges::cpp_uno::shared::Bridge::getUnoEnv ( )
inline

◆ operator=()

Bridge & bridges::cpp_uno::shared::Bridge::operator= ( const Bridge )
privatedelete

◆ release()

void bridges::cpp_uno::shared::Bridge::release ( )

Definition at line 172 of file bridge.cxx.

References aCpp2Uno, aUno2Cpp, bExportCpp2Uno, and nRef.

Friends And Related Function Documentation

◆ acquireMapping

void acquireMapping ( uno_Mapping pMapping)
friend

Definition at line 41 of file bridge.cxx.

Referenced by Bridge().

◆ cpp2unoMapping

void cpp2unoMapping ( uno_Mapping pMapping,
void **  ppUnoI,
void *  pCppI,
typelib_InterfaceTypeDescription *  pTypeDescr 
)
friend

Definition at line 51 of file bridge.cxx.

Referenced by Bridge().

◆ freeMapping

void freeMapping ( uno_Mapping pMapping)
friend

Definition at line 36 of file bridge.cxx.

Referenced by acquire().

◆ releaseMapping

void releaseMapping ( uno_Mapping pMapping)
friend

Definition at line 46 of file bridge.cxx.

Referenced by Bridge().

◆ uno2cppMapping

void uno2cppMapping ( uno_Mapping pMapping,
void **  ppCppI,
void *  pUnoI,
typelib_InterfaceTypeDescription *  pTypeDescr 
)
friend

Definition at line 97 of file bridge.cxx.

Referenced by Bridge().

Member Data Documentation

◆ aCpp2Uno

Mapping bridges::cpp_uno::shared::Bridge::aCpp2Uno
private

Definition at line 94 of file bridge.hxx.

Referenced by acquire(), Bridge(), createMapping(), getCpp2Uno(), and release().

◆ aUno2Cpp

Mapping bridges::cpp_uno::shared::Bridge::aUno2Cpp
private

Definition at line 95 of file bridge.hxx.

Referenced by acquire(), Bridge(), createMapping(), getUno2Cpp(), and release().

◆ bExportCpp2Uno

bool bridges::cpp_uno::shared::Bridge::bExportCpp2Uno
private

Definition at line 97 of file bridge.hxx.

Referenced by acquire(), createMapping(), and release().

◆ nRef

std::atomic<std::size_t> bridges::cpp_uno::shared::Bridge::nRef
private

Definition at line 89 of file bridge.hxx.

Referenced by acquire(), and release().

◆ pCppEnv

uno_ExtEnvironment* bridges::cpp_uno::shared::Bridge::pCppEnv
private

Definition at line 91 of file bridge.hxx.

Referenced by acquire(), Bridge(), createMapping(), getCppEnv(), and ~Bridge().

◆ pUnoEnv

uno_ExtEnvironment* bridges::cpp_uno::shared::Bridge::pUnoEnv
private

Definition at line 92 of file bridge.hxx.

Referenced by acquire(), Bridge(), createMapping(), getUnoEnv(), and ~Bridge().


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