28 #ifndef _COM_SUN_STAR_UNO_ANY_H_
29 #define _COM_SUN_STAR_UNO_ANY_H_
60 inline static void * SAL_CALL
operator new (
size_t nSize )
SAL_THROW(())
62 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
64 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
SAL_THROW(())
66 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
79 explicit inline Any( T
const & value );
81 explicit inline Any(
bool value );
126 {
return *
reinterpret_cast< const Type *
>( &
pType ); }
166 inline const void * SAL_CALL
getValue() const SAL_THROW(())
169 #if ! defined(EXCEPTIONS_OFF)
183 template <
typename T>
184 inline T
get()
const;
185 #endif // ! defined(EXCEPTIONS_OFF)
212 inline void SAL_CALL
clear() SAL_THROW(());
228 template <typename T>
229 inline
bool has() const;
237 inline
sal_Bool SAL_CALL operator == ( const
Any & rAny ) const SAL_THROW(());
244 inline
sal_Bool SAL_CALL operator != ( const
Any & rAny ) const SAL_THROW(());
248 explicit
Any( sal_uInt16 );
249 #if defined(_MSC_VER)
253 #if ! defined(EXCEPTIONS_OFF)
255 sal_uInt16 get<sal_uInt16>()
const;
256 #endif // ! defined(EXCEPTIONS_OFF)
258 bool has<sal_uInt16>()
const;
259 #endif // defined(_MSC_VER)
288 inline void SAL_CALL
operator <<= ( Any & rAny,
bool const & value )
380 return ::cppu::UnoType< ::com::sun::star::uno::Any >::get();