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 > ()
151 #if defined LIBO_INTERNAL_ONLY 152 css::uno::XWeak* getXWeak() {
return this; }
168 static inline css::uno::XInterface * acquire(OWeakObject * instance)
170 assert(instance != NULL);
175 #if defined LIBO_INTERNAL_ONLY 176 static inline css::uno::XWeak* getXWeak(OWeakObject* instance) {
return instance; }
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:43
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:391
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice...
Definition: types.h:349
OWeakObject()
Default Constructor.
Definition: weak.hxx:100
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
OWeakObject(const OWeakObject &)
Dummy copy constructor.
Definition: weak.hxx:108
#define SAL_NOEXCEPT
Macro for C++11 "noexcept" vs.
Definition: types.h:416
Definition: Enterable.hxx:30
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:47
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:32
sal_Int32 oslInterlockedCount
Definition: interlck.h:44
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.