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 )
SAL_THROW(())
86 inline static void SAL_CALL
operator delete(
void * pMem )
SAL_THROW(())
88 inline static void * SAL_CALL
operator new( size_t,
void * pMem )
SAL_THROW(())
90 inline static void SAL_CALL
operator delete(
void *,
void * )
SAL_THROW(())
104 , 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);
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);
155 inline SAL_CALL operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ()
SAL_THROW(())
OWeakObject(const OWeakObject &rObj)
Dummy copy constructor.
Definition: weak.hxx:111
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
sal_Int32 oslInterlockedCount
Definition: interlck.h:32
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
OWeakObject()
Default Constructor.
Definition: weak.hxx:102
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358