LibreOffice
LibreOffice 6.4 SDK C/C++ API Reference
|
Go to the documentation of this file.
19 #ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX
20 #define INCLUDED_CPPUHELPER_WEAKREF_HXX
27 #include "com/sun/star/uno/XInterface.hpp"
40 class OWeakRefListener;
66 #if defined LIBO_INTERNAL_ONLY
68 { other.m_pImpl =
nullptr; }
88 #if defined LIBO_INTERNAL_ONLY
99 const css::uno::Reference< css::uno::XInterface > & xInt );
107 {
return (get() == rObj.
get()); }
113 css::uno::Reference< css::uno::XInterface > SAL_CALL
get()
const;
130 OWeakRefListener * m_pImpl;
145 template<
class interface_type >
172 const css::uno::Reference< interface_type > & xInt )
175 #if defined LIBO_INTERNAL_ONLY
177 css::uno::Reference< interface_type > && xInt )
The WeakReference<> holds a weak reference to an object.
Definition: weakref.hxx:147
WeakReferenceHelper(const css::uno::Reference< css::uno::XInterface > &xInt)
Initialize this reference with the hard interface reference xInt.
void clear()
Releases this reference.
The WeakReferenceHelper holds a weak reference to an object.
Definition: weakref.hxx:52
WeakReferenceHelper(const WeakReferenceHelper &rWeakRef)
Copy ctor.
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:578
~WeakReferenceHelper()
Releases this reference.
WeakReferenceHelper()
Default ctor.
Definition: weakref.hxx:56
static SAL_WARN_UNUSED_RESULT Reference< interface_type > query(const BaseReference &rRef)
Queries given interface reference for type interface_type.
Definition: Reference.hxx:367
css::uno::Reference< css::uno::XInterface > get() const
Gets a hard reference to the object.
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
Template reference class for interface type derived from BaseReference.
Definition: Reference.h:227
WeakReferenceHelper & operator=(const WeakReferenceHelper &rWeakRef)
Releases this reference and takes over rWeakRef.
WeakReference(const Reference< interface_type > &rRef)
Copy ctor.
Definition: weakref.hxx:159
WeakReference()
Default ctor.
Definition: weakref.hxx:151
bool operator==(const Any &rAny, const C &value)
Template equality operator: compares set value of left side any to right side value.
Definition: Any.hxx:653