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 )
115 , m_pWeakConnectionPoint( NULL )
137 virtual void SAL_CALL acquire()
141 virtual void SAL_CALL release()
148 virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter()
SAL_OVERRIDE;
154 SAL_CALL
operator css::uno::Reference< css::uno::XInterface > ()
170 static inline css::uno::XInterface * acquire(
OWeakObject * instance)
172 assert(instance != NULL);
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:405
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
OWeakObject()
Default Constructor.
Definition: weak.hxx:102
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
sal_Int32 oslInterlockedCount
Definition: interlck.h:36
virtual void acquire() SAL_OVERRIDE
increasing m_refCount
Definition: Enterable.hxx:26
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
OWeakObject(const OWeakObject &rObj)
Dummy copy constructor.
Definition: weak.hxx:112
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
oslInterlockedCount m_refCount
reference count.
Definition: weak.hxx:67