28 #ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
29 #define _COM_SUN_STAR_UNO_REFERENCE_H_
43 class RuntimeException;
76 inline static XInterface * SAL_CALL
iquery( XInterface * pInterface,
const Type & rType )
78 #ifndef EXCEPTIONS_OFF
86 inline static XInterface * SAL_CALL
iquery_throw( XInterface * pInterface,
const Type & rType )
95 inline XInterface * SAL_CALL
get()
const SAL_THROW(())
151 #ifndef EXCEPTIONS_OFF
176 template<
class interface_type >
184 inline static XInterface * SAL_CALL iquery( XInterface * pInterface )
186 #ifndef EXCEPTIONS_OFF
193 inline static XInterface * SAL_CALL iquery_throw( XInterface * pInterface )
200 inline static interface_type * SAL_CALL iset_throw( interface_type * pInterface )
215 static inline interface_type * castFromXInterface(XInterface * p) {
216 return static_cast< interface_type *
>(
static_cast< void *
>(p));
230 static inline XInterface * castToXInterface(interface_type * p) {
231 return static_cast< XInterface *
>(
static_cast< void *
>(p));
237 inline static void * SAL_CALL
operator new ( ::size_t nSize )
SAL_THROW(())
239 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
241 inline static void * SAL_CALL
operator new ( ::size_t,
void * pMem )
SAL_THROW(())
243 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
299 #ifndef EXCEPTIONS_OFF
355 inline interface_type * SAL_CALL
operator -> () const SAL_THROW(())
362 inline interface_type * SAL_CALL
get()
const SAL_THROW(())
367 inline void SAL_CALL
clear() SAL_THROW(());
380 inline
sal_Bool SAL_CALL
set( interface_type * pInterface ) SAL_THROW(());
429 #ifndef EXCEPTIONS_OFF
514 template <
typename T>
515 inline T * get_pointer( Reference<T>
const& r )