24#ifndef INCLUDED_UNO_DISPATCHER_HXX
25#define INCLUDED_UNO_DISPATCHER_HXX
51class UnoInterfaceReference
65#if defined LIBO_INTERNAL_ONLY
68 {
other.m_pUnoI =
nullptr; }
82 {
return set(
ref.m_pUnoI ); }
87#if defined LIBO_INTERNAL_ONLY
93 other.m_pUnoI =
nullptr;
104inline UnoInterfaceReference::~UnoInterfaceReference()
111inline UnoInterfaceReference::UnoInterfaceReference()
117inline UnoInterfaceReference::UnoInterfaceReference(
124inline UnoInterfaceReference::UnoInterfaceReference(
uno_Interface * pUnoI )
128 (*m_pUnoI->acquire)( m_pUnoI );
132inline UnoInterfaceReference::UnoInterfaceReference(
133 UnoInterfaceReference
const & ref )
134 : m_pUnoI( ref.m_pUnoI )
137 (*m_pUnoI->acquire)( m_pUnoI );
141inline UnoInterfaceReference & UnoInterfaceReference::set(
145 (*pUnoI->acquire)( pUnoI );
147 (*m_pUnoI->release)( m_pUnoI );
153inline UnoInterfaceReference & UnoInterfaceReference::set(
157 (*m_pUnoI->release)( m_pUnoI );
163inline void UnoInterfaceReference::clear()
167 (*m_pUnoI->release)( m_pUnoI );
173inline void UnoInterfaceReference::dispatch(
175 void * pReturn,
void * pArgs [],
uno_Any ** ppException )
const
177 (*m_pUnoI->pDispatcher)(
178 m_pUnoI, pMemberType, pReturn, pArgs, ppException );
__sal_NoAcquire
Definition types.h:371
struct SAL_DLLPUBLIC_RTTI _uno_Any uno_Any
This is the binary specification of a UNO any.
struct SAL_DLLPUBLIC_RTTI _uno_Interface uno_Interface
The binary C uno interface description.
Full type description of a type.
Definition typedescription.h:76
Reference< interface_type > & operator=(interface_type *pInterface)
Assignment operator: Acquires given interface pointer and sets reference.
Definition Reference.hxx:347
void clear()
Clears reference, i.e.
Definition Reference.hxx:228
bool set(const Reference< interface_type > &rRef)
Sets the given interface.
Definition Reference.hxx:271
interface_type * get() const
Gets interface pointer.
Definition Reference.h:405
Reference()
Default Constructor: Sets null reference.
Definition Reference.hxx:118
bool is() const
Checks if reference is null.
Definition Reference.h:101