LibreOffice Module editeng (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
accessibility::WeakCppRef< UnoType, CppType > Class Template Reference

Helper class for weak object references plus implementation. More...

#include <AccessibleParaManager.hxx>

Public Types

typedef UnoType UnoInterfaceType
 
typedef CppType InterfaceType
 

Public Member Functions

 WeakCppRef ()
 
 WeakCppRef (rtl::Reference< InterfaceType > const &rImpl)
 
rtl::Reference< InterfaceTypeget () const
 

Private Attributes

css::uno::WeakReference< UnoInterfaceTypemaWeakRef
 
InterfaceTypemaUnsafeRef
 

Detailed Description

template<class UnoType, class CppType>
class accessibility::WeakCppRef< UnoType, CppType >

Helper class for weak object references plus implementation.

This class combines a weak reference (to facilitate automatic object disposal if user drops last reference) and hard reference to the c++ class (for fast access and bypassing of the UNO interface)

Definition at line 48 of file AccessibleParaManager.hxx.

Member Typedef Documentation

◆ InterfaceType

template<class UnoType , class CppType >
typedef CppType accessibility::WeakCppRef< UnoType, CppType >::InterfaceType

Definition at line 53 of file AccessibleParaManager.hxx.

◆ UnoInterfaceType

template<class UnoType , class CppType >
typedef UnoType accessibility::WeakCppRef< UnoType, CppType >::UnoInterfaceType

Definition at line 52 of file AccessibleParaManager.hxx.

Constructor & Destructor Documentation

◆ WeakCppRef() [1/2]

template<class UnoType , class CppType >
accessibility::WeakCppRef< UnoType, CppType >::WeakCppRef ( )
inline

Definition at line 55 of file AccessibleParaManager.hxx.

◆ WeakCppRef() [2/2]

template<class UnoType , class CppType >
accessibility::WeakCppRef< UnoType, CppType >::WeakCppRef ( rtl::Reference< InterfaceType > const &  rImpl)
inline

Definition at line 57 of file AccessibleParaManager.hxx.

Member Function Documentation

◆ get()

template<class UnoType , class CppType >
rtl::Reference< InterfaceType > accessibility::WeakCppRef< UnoType, CppType >::get ( ) const
inline

Member Data Documentation

◆ maUnsafeRef

template<class UnoType , class CppType >
InterfaceType* accessibility::WeakCppRef< UnoType, CppType >::maUnsafeRef
private

◆ maWeakRef

template<class UnoType , class CppType >
css::uno::WeakReference< UnoInterfaceType > accessibility::WeakCppRef< UnoType, CppType >::maWeakRef
private

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