23#ifndef INCLUDED_CPPUHELPER_WEAK_HXX
24#define INCLUDED_CPPUHELPER_WEAK_HXX
30#include "com/sun/star/uno/XWeak.hpp"
37class OWeakConnectionPoint;
49 friend class OWeakConnectionPoint;
64 void disposeWeakConnectionPoint();
77 OWeakConnectionPoint * m_pWeakConnectionPoint;
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 )
135 virtual
void SAL_CALL release()
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
OWeakObject(const OWeakObject &)
Dummy copy constructor.
Definition weak.hxx:108
OWeakObject()
Default Constructor.
Definition weak.hxx:100
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 ~OWeakObject() COVERITY_NOEXCEPT_FALSE
Virtual dtor.