19 #ifndef INCLUDED_COM_SUN_STAR_UNO_ANY_H
20 #define INCLUDED_COM_SUN_STAR_UNO_ANY_H
51 inline static void * SAL_CALL
operator new (
size_t nSize )
SAL_THROW(())
53 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
55 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
SAL_THROW(())
57 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
70 explicit inline Any( T
const & value );
72 explicit inline Any(
bool value );
117 {
return *
reinterpret_cast< const Type *
>( &pType ); }
144 inline ::rtl::OUString SAL_CALL getValueTypeName() const SAL_THROW(());
150 inline
bool SAL_CALL hasValue() const SAL_THROW(())
157 inline const void * SAL_CALL
getValue() const SAL_THROW(())
172 template <
typename T>
173 inline T
get()
const;
181 inline void SAL_CALL setValue(
const void * pData_,
const Type & rType )
SAL_THROW(());
200 inline void SAL_CALL clear() SAL_THROW(());
208 inline
bool SAL_CALL isExtractableTo( const
Type & rType ) const SAL_THROW(());
216 template <typename T>
217 inline
bool has() const;
225 inline
bool SAL_CALL operator == ( const
Any & rAny ) const SAL_THROW(());
232 inline
bool SAL_CALL operator != ( const
Any & rAny ) const SAL_THROW(());
243 template<> sal_uInt16
Any::get<sal_uInt16>() const SAL_DELETED_FUNCTION;
244 template<>
bool Any::has<sal_uInt16>() const SAL_DELETED_FUNCTION;
254 inline
Any SAL_CALL
makeAny( const C & value ) SAL_THROW(());
258 inline
Any SAL_CALL
makeAny(
bool const & value ) SAL_THROW(());
270 inline
void SAL_CALL operator <<= (
Any & rAny, const C & value ) SAL_THROW(());
274 inline
void SAL_CALL operator <<= (
Any & rAny,
bool const & value )
287 inline
bool SAL_CALL operator >>= ( const
Any & rAny, C & value ) SAL_THROW(());
300 inline
bool SAL_CALL operator == ( const
Any & rAny, const C & value ) SAL_THROW(());
312 inline
bool SAL_CALL operator != ( const
Any & rAny, const C & value ) SAL_THROW(());
317 inline
bool SAL_CALL operator >>= ( const
Any & rAny,
sal_Bool & value ) SAL_THROW(());
319 inline
bool SAL_CALL operator == ( const
Any & rAny, const
sal_Bool & value ) SAL_THROW(());
321 inline
bool SAL_CALL operator >>= (
Any const & rAny,
bool & value )
324 inline
bool SAL_CALL operator == (
Any const & rAny,
bool const & value )
328 inline
bool SAL_CALL operator >>= ( const
Any & rAny,
sal_Int8 & value ) SAL_THROW(());
331 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_Int16 & value ) SAL_THROW(());
333 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_uInt16 & value ) SAL_THROW(());
336 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_Int32 & value ) SAL_THROW(());
338 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_uInt32 & value ) SAL_THROW(());
341 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_Int64 & value ) SAL_THROW(());
343 inline
bool SAL_CALL operator >>= ( const
Any & rAny, sal_uInt64 & value ) SAL_THROW(());
346 inline
bool SAL_CALL operator >>= ( const
Any & rAny,
float & value ) SAL_THROW(());
349 inline
bool SAL_CALL operator >>= ( const
Any & rAny,
double & value ) SAL_THROW(());
352 inline
bool SAL_CALL operator >>= ( const
Any & rAny, ::
rtl::OUString & value ) SAL_THROW(());
354 inline
bool SAL_CALL operator == ( const
Any & rAny, const ::
rtl::OUString & value ) SAL_THROW(());
357 inline
bool SAL_CALL operator >>= ( const
Any & rAny, Type & value ) SAL_THROW(());
359 inline
bool SAL_CALL operator == ( const
Any & rAny, const Type & value ) SAL_THROW(());
362 inline
bool SAL_CALL operator >>= ( const
Any & rAny,
Any & value ) SAL_THROW(());
365 inline
bool SAL_CALL operator == ( const
Any & rAny, const BaseReference & value ) SAL_THROW(());
383 return ::cppu::UnoType< ::com::sun::star::uno::Any >::get();
const ::com::sun::star::uno::Type & getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Any *) SAL_THROW(())
Gets the meta type of IDL type any.
Definition: Any.h:381
unsigned char sal_Bool
Definition: types.h:46
TypeClass getValueTypeClass() const SAL_THROW(())
Gets the type class of the set value.
Definition: Any.h:137
C++ class representing an IDL meta type.
Definition: Type.h:55
Definition: bootstrap.hxx:24
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
typelib_TypeDescriptionReference * getValueTypeRef() const SAL_THROW(())
Gets the type of the set value.
Definition: Any.h:122
void getValueTypeDescription(typelib_TypeDescription **ppTypeDescr) const SAL_THROW(())
Gets the type description of the set value.
Definition: Any.h:130
type class of void
Definition: typeclass.h:29
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
Holds a weak reference to a type description.
Definition: typedescription.h:40
signed char sal_Int8
Definition: types.h:51
C++ class representing an IDL any.
Definition: Any.h:46
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
Full type description of a type.
Definition: typedescription.h:71
Any makeAny(const C &value) SAL_THROW(())
Template function to generically construct an any from a C++ value.
Definition: Any.hxx:182
This base class serves as a base class for all template reference classes and has been introduced due...
Definition: Reference.h:54
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:582
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:410
const void * getValue() const SAL_THROW(())
Gets a pointer to the set value.
Definition: Any.h:157
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:603
This is the binary specification of an UNO any.
Definition: any2.h:40
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
typelib_TypeClass eTypeClass
type class of type
Definition: typedescription.h:52
const Type & getValueType() const SAL_THROW(())
Gets the type of the set value.
Definition: Any.h:116