23#ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX 
   24#define INCLUDED_CPPUHELPER_WEAKREF_HXX 
   31#include "com/sun/star/uno/XInterface.hpp" 
   44class OWeakRefListener;
 
   71#if defined LIBO_INTERNAL_ONLY 
   73    { other.m_pImpl = 
nullptr; }
 
   83#if defined LIBO_INTERNAL_ONLY 
  103#if defined LIBO_INTERNAL_ONLY 
  116#if defined LIBO_INTERNAL_ONLY 
  133        { 
return (
get() == rObj.
get()); }
 
 
  156    OWeakRefListener * m_pImpl;
 
 
  171template< 
class interface_type >
 
  201#if defined LIBO_INTERNAL_ONLY 
 
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition types.h:611
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
Definition typedescription.hxx:43
static SAL_WARN_UNUSED_RESULT Reference< interface_type > query(const BaseReference &rRef)
Queries given interface reference for type interface_type.
Definition Reference.hxx:376
WeakReferenceHelper(const css::uno::Reference< css::uno::XInterface > &xInt)
Initialize this reference with the hard interface reference xInt.
css::uno::Reference< css::uno::XInterface > get() const
Gets a hard reference to the object.
WeakReferenceHelper(const WeakReferenceHelper &rWeakRef)
Copy ctor.
~WeakReferenceHelper()
Releases this reference.
WeakReferenceHelper & operator=(const WeakReferenceHelper &rWeakRef)
Releases this reference and takes over rWeakRef.
WeakReferenceHelper()
Default ctor.
Definition weakref.hxx:61
void clear()
Releases this reference.
The WeakReference<> holds a weak reference to an object.
Definition weakref.hxx:173
WeakReference()
Default ctor.
Definition weakref.hxx:177
WeakReference(const Reference< interface_type > &rRef)
Copy ctor.
Definition weakref.hxx:185