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 )
131 virtual void SAL_CALL acquire()
135 virtual
void SAL_CALL release()
142 virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter() SAL_OVERRIDE;
148 SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
164 static inline css::uno::XInterface * acquire(OWeakObject * instance)
166 assert(instance != NULL);
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
OWeakObject(const OWeakObject &)
Dummy copy constructor.
Definition: weak.hxx:108
sal_Int32 oslInterlockedCount
Definition: interlck.h:44
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:43
OWeakObject()
Default Constructor.
Definition: weak.hxx:100
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:32
#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
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:47
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:416
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.