19 #ifndef INCLUDED_CPPUHELPER_WEAK_HXX 20 #define INCLUDED_CPPUHELPER_WEAK_HXX 26 #include "com/sun/star/uno/XWeak.hpp" 33 class OWeakConnectionPoint;
45 friend class OWeakConnectionPoint;
60 void disposeWeakConnectionPoint();
73 OWeakConnectionPoint * m_pWeakConnectionPoint;
84 static
void * SAL_CALL operator new(
size_t nSize )
86 static void SAL_CALL
operator delete(
void * pMem )
88 static void * SAL_CALL
operator new( size_t,
void * pMem )
90 static void SAL_CALL
operator delete(
void *,
void * )
104 , m_pWeakConnectionPoint( NULL )
113 , m_pWeakConnectionPoint( NULL )
133 virtual void SAL_CALL acquire()
137 virtual
void SAL_CALL release()
144 virtual
css::uno::Reference<
css::uno::XAdapter > SAL_CALL queryAdapter()
SAL_OVERRIDE;
150 SAL_CALL operator
css::uno::Reference<
css::uno::XInterface > ()
166 static inline css::uno::XInterface * acquire(OWeakObject * instance)
168 assert(instance != NULL);
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:409
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice,...
Definition: types.h:355
OWeakObject(const OWeakObject &)
Dummy copy constructor.
Definition: weak.hxx:110
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
sal_Int32 oslInterlockedCount
Definition: interlck.h:40
Definition: Enterable.hxx:26
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:43
OWeakObject()
Default Constructor.
Definition: weak.hxx:102