19 #ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
20 #define _COM_SUN_STAR_UNO_REFERENCE_H_
34 class RuntimeException;
67 inline static XInterface * SAL_CALL
iquery( XInterface * pInterface,
const Type & rType )
69 #ifndef EXCEPTIONS_OFF
77 inline static XInterface * SAL_CALL
iquery_throw( XInterface * pInterface,
const Type & rType )
86 inline XInterface * SAL_CALL
get()
const SAL_THROW(())
142 #ifndef EXCEPTIONS_OFF
167 template<
class interface_type >
168 class Reference :
public BaseReference
175 inline static XInterface * SAL_CALL iquery( XInterface * pInterface )
177 #ifndef EXCEPTIONS_OFF
184 inline static XInterface * SAL_CALL iquery_throw( XInterface * pInterface )
191 inline static interface_type * SAL_CALL iset_throw( interface_type * pInterface )
206 static inline interface_type * castFromXInterface(XInterface * p) {
207 return static_cast< interface_type *
>(
static_cast< void *
>(p));
221 static inline XInterface * castToXInterface(interface_type * p) {
222 return static_cast< XInterface *
>(
static_cast< void *
>(p));
228 inline static void * SAL_CALL
operator new ( ::size_t nSize )
SAL_THROW(())
230 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
232 inline static void * SAL_CALL
operator new ( ::size_t,
void * pMem )
SAL_THROW(())
234 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
255 inline
Reference( interface_type * pInterface ) SAL_THROW(());
290 #ifndef EXCEPTIONS_OFF
346 inline interface_type * SAL_CALL
operator -> () const SAL_THROW(())
353 inline interface_type * SAL_CALL
get()
const SAL_THROW(())
358 inline void SAL_CALL
clear() SAL_THROW(());
371 inline
sal_Bool SAL_CALL
set( interface_type * pInterface ) SAL_THROW(());
420 #ifndef EXCEPTIONS_OFF
505 template <
typename T>
506 inline T * get_pointer( Reference<T>
const& r )