19 #ifndef INCLUDED_CPPUHELPER_WEAK_HXX 20 #define INCLUDED_CPPUHELPER_WEAK_HXX 25 #include <com/sun/star/uno/XWeak.hpp> 32 class OWeakConnectionPoint;
44 friend class OWeakConnectionPoint;
59 void disposeWeakConnectionPoint();
72 OWeakConnectionPoint * m_pWeakConnectionPoint;
83 inline static void * SAL_CALL
operator new(
size_t nSize )
85 inline static void SAL_CALL
operator delete(
void * pMem )
87 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
89 inline static void SAL_CALL
operator delete(
void *,
void * )
103 , m_pWeakConnectionPoint( 0 )
112 :
com::sun::star::uno::XWeak()
114 , m_pWeakConnectionPoint( 0 )
133 const ::com::sun::star::uno::Type & rType )
134 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
137 virtual void SAL_CALL acquire()
141 virtual void SAL_CALL release()
148 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter > SAL_CALL queryAdapter()
149 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
155 inline SAL_CALL operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ()
171 static inline ::com::sun::star::uno::XInterface * acquire(
OWeakObject * instance)
173 assert(instance != 0);
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:42
OWeakObject()
Default Constructor.
Definition: weak.hxx:101
Definition: Enterable.hxx:26
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:417
oslInterlockedCount m_refCount
reference count.
Definition: weak.hxx:66
sal_Int32 oslInterlockedCount
Definition: interlck.h:32
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
inline::com::sun::star::uno::Any queryInterface(const ::com::sun::star::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:39
OWeakObject(const OWeakObject &rObj)
Dummy copy constructor.
Definition: weak.hxx:111