23#ifndef INCLUDED_CPPUHELPER_WEAK_HXX
24#define INCLUDED_CPPUHELPER_WEAK_HXX
28#include "osl/interlck.h"
30#include "com/sun/star/uno/XWeak.hpp"
37class OWeakConnectionPoint;
64 void disposeWeakConnectionPoint();
71 oslInterlockedCount m_refCount;
88 static
void * SAL_CALL operator new(
size_t nSize )
89 { return ::rtl_allocateMemory( nSize ); }
90 static void SAL_CALL
operator delete(
void * pMem )
91 { ::rtl_freeMemory( 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 )
128 const css::uno::Type & rType ) SAL_OVERRIDE;
131 virtual void SAL_CALL acquire()
132 SAL_NOEXCEPT SAL_OVERRIDE;
135 virtual
void SAL_CALL release()
136 SAL_NOEXCEPT SAL_OVERRIDE;
142 virtual css::
uno::Reference< css::
uno::XAdapter > SAL_CALL queryAdapter() SAL_OVERRIDE;
151#if defined LIBO_INTERNAL_ONLY
152 css::uno::XWeak* getXWeak() {
return this; }
168static inline css::uno::XInterface * acquire(OWeakObject * instance)
170 assert(instance != NULL);
175#if defined LIBO_INTERNAL_ONLY
176static inline css::uno::XWeak* getXWeak(OWeakObject* instance) {
return instance; }
Base class to implement a UNO object supporting weak references, i.e.
OWeakObject(const OWeakObject &)
Dummy copy constructor.
OWeakObject()
Default Constructor.
#define CPPUHELPER_DLLPUBLIC
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.