19 #ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX
20 #define INCLUDED_CPPUHELPER_WEAKREF_HXX
22 #include <com/sun/star/uno/XInterface.hpp>
35 class OWeakRefListener;
59 WeakReferenceHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt )
79 ::com::sun::star::uno::XInterface > & xInt ) SAL_THROW(());
87 {
return (
get() == rObj.get()); }
109 OWeakRefListener * m_pImpl;
118 template< class interface_type >
125 : WeakReferenceHelper()
133 : WeakReferenceHelper( rRef )
145 const ::com::sun::star::uno::Reference< interface_type > & xInt )
WeakReference()
Default ctor.
Definition: weakref.hxx:124
The WeakReferenceHelper holds a weak reference to an object.
Definition: weakref.hxx:40
static Reference< interface_type > query(const BaseReference &rRef)
Queries given interface reference for type interface_type.
Definition: Reference.hxx:343
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
The WeakReference<> holds a weak reference to an object.
Definition: weakref.hxx:119
WeakReference(const Reference< interface_type > &rRef)
Copy ctor.
Definition: weakref.hxx:132
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
unsigned char sal_Bool
Definition: types.h:46
WeakReferenceHelper & operator=(const WeakReferenceHelper &rWeakRef)
Releases this reference and takes over rWeakRef.
WeakReferenceHelper()
Default ctor.
Definition: weakref.hxx:45
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358