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