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 )
113 :
com::sun::star::uno::XWeak()
115 , m_pWeakConnectionPoint( 0 )
135 const ::com::sun::star::uno::Type & rType )
136 throw (::com::sun::star::uno::RuntimeException, std::exception)
SAL_OVERRIDE;
139 virtual void SAL_CALL acquire()
143 virtual
void SAL_CALL release()
144 throw () SAL_OVERRIDE;
150 virtual ::
com::sun::star::uno::Reference< ::
com::sun::star::uno::XAdapter > SAL_CALL queryAdapter()
151 throw (::
com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
157 inline SAL_CALL operator ::
com::sun::star::uno::Reference< ::
com::sun::star::uno::XInterface > ()
SAL_THROW(())
173 static inline ::com::sun::star::uno::XInterface * acquire(OWeakObject * instance)
175 assert(instance != 0);
sal_Int32 oslInterlockedCount
Definition: interlck.h:32
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_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
OWeakObject() SAL_THROW(())
Default Constructor.
Definition: weak.hxx:102
OWeakObject(const OWeakObject &rObj) SAL_THROW(())
Dummy copy constructor.
Definition: weak.hxx:112
#define SAL_OVERRIDE
C++11 "override" feature.
Definition: types.h:423
Definition: Enterable.hxx:26
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
Base class to implement an UNO object supporting weak references, i.e.
Definition: weak.hxx:43
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.