23#ifndef INCLUDED_CPPUHELPER_WEAK_HXX 
   24#define INCLUDED_CPPUHELPER_WEAK_HXX 
   30#include "com/sun/star/uno/XWeak.hpp" 
   37class OWeakConnectionPoint;
 
   88    static 
void * SAL_CALL operator new( 
size_t nSize )
 
   89        { return ::rtl_allocateMemory( nSize ); }
 
   90    static void SAL_CALL 
operator delete( 
void * pMem )
 
   92    static void * SAL_CALL 
operator new( size_t, 
void * pMem )
 
   94    static void SAL_CALL 
operator delete( 
void *, 
void * )
 
  102        , m_pWeakConnectionPoint( NULL )
 
 
  111        , m_pWeakConnectionPoint( NULL )
 
 
  148    SAL_CALL operator 
css::uno::Reference< 
css::uno::XInterface > ()
 
 
  151#if defined LIBO_INTERNAL_ONLY 
  152    css::uno::XWeak* getXWeak() { 
return this; }
 
 
  168static inline css::uno::XInterface * acquire(
OWeakObject * instance)
 
  170    assert(instance != NULL);
 
  175#if defined LIBO_INTERNAL_ONLY 
  176static inline css::uno::XWeak* getXWeak(
OWeakObject* instance) { 
return instance; }
 
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition types.h:434
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice,...
Definition types.h:367
#define SAL_OVERRIDE
C++11 "override" feature.
Definition types.h:409
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
sal_Int32 oslInterlockedCount
Definition interlck.h:44
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
Definition Enterable.hxx:31
Base class to implement a UNO object supporting weak references, i.e.
Definition weak.hxx:48
oslInterlockedCount m_refCount
reference count.
Definition weak.hxx:71
OWeakObject(const OWeakObject &)
Dummy copy constructor.
Definition weak.hxx:108
void disposeWeakConnectionPoint()
disposes and resets m_pWeakConnectionPoint
virtual css::uno::Reference< css::uno::XAdapter > queryAdapter() SAL_OVERRIDE
XWeak::queryAdapter() implementation.
OWeakObject()
Default Constructor.
Definition weak.hxx:100
friend class OWeakConnectionPoint
Definition weak.hxx:49
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::...
virtual void acquire() SAL_NOEXCEPT SAL_OVERRIDE
increasing m_refCount
virtual void release() SAL_NOEXCEPT SAL_OVERRIDE
decreasing m_refCount
virtual ~OWeakObject() COVERITY_NOEXCEPT_FALSE
Virtual dtor.
C++ class representing an IDL any.
Definition Any.h:58
C++ class representing an IDL meta type.
Definition Type.h:59