23 #ifndef INCLUDED_CPPUHELPER_WEAK_HXX
24 #define INCLUDED_CPPUHELPER_WEAK_HXX
30 #include "com/sun/star/uno/XWeak.hpp"
37 class OWeakConnectionPoint;
49 friend class OWeakConnectionPoint;
64 void disposeWeakConnectionPoint();
77 OWeakConnectionPoint * m_pWeakConnectionPoint;
88 static
void * SAL_CALL operator new(
size_t 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 > ()
164 static inline css::uno::XInterface * acquire(OWeakObject * instance)
166 assert(instance != NULL);
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:416
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice,...
Definition: types.h:349
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:391
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate 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.