19 #ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX
20 #define INCLUDED_CPPUHELPER_WEAKREF_HXX
23 #include <com/sun/star/uno/XInterface.hpp>
36 class OWeakRefListener;
60 WeakReferenceHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt );
78 const ::com::sun::star::uno::Reference<
79 ::com::sun::star::uno::XInterface > & xInt );
87 {
return (
get() == rObj.
get()); }
105 void SAL_CALL clear();
109 OWeakRefListener * m_pImpl;
118 template<
class interface_type >
145 const ::com::sun::star::uno::Reference< interface_type > & xInt )
The WeakReference<> holds a weak reference to an object.
Definition: weakref.hxx:119
WeakReference & operator=(const ::com::sun::star::uno::Reference< interface_type > &xInt)
Releases this reference and takes over hard reference xInt.
Definition: weakref.hxx:144
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > get() const
Gets a hard reference to the object.
WeakReferenceHelper & operator=(const WeakReferenceHelper &rWeakRef)
Releases this reference and takes over rWeakRef.
WeakReference(const Reference< interface_type > &rRef)
Copy ctor.
Definition: weakref.hxx:132
The WeakReferenceHelper holds a weak reference to an object.
Definition: weakref.hxx:41
static SAL_WARN_UNUSED_RESULT Reference< interface_type > query(const BaseReference &rRef)
Queries given interface reference for type interface_type.
Definition: Reference.hxx:342
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
WeakReferenceHelper()
Default ctor.
Definition: weakref.hxx:46
WeakReference()
Default ctor.
Definition: weakref.hxx:124
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:572