Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Global Functions in Namespace uno
in Sourcefile Any.h


makeAny

template< typename C >


Any makeAny(
const C & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Summary
Template function to generically construct an any from a C++ value.
Template Parameters
C
value type
    
Parameters
value
a value
    
Return
an any

makeAny
Any makeAny(
const bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator!=

template< typename C >


sal_Bool operator!=(
const Any & rAny,
const C & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Description
Template unequality operator: compares set value of left side any to right side value. The values need not be of equal type, e.g. a short integer is compared to a long integer. This operator can be implemented as template member function, if all supported compilers can cope with template member functions.
Template Parameters
C
value type
Parameters
rAny
another any (left side)
value
a value (right side)
Return
true if values are unequal, false otherwise

operator<<=

template< typename C >


void operator<<=(
Any & rAny,
const C & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Summary
Template binary <<= operator to set the value of an any.
Template Parameters
C
value type
    
Parameters
rAny
destination any (left side)
    
value
source value (right side)

operator<<=
void operator<<=(
Any & rAny,
const bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==
sal_Bool operator==(
const Any & rAny,
const sal_Bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==
sal_Bool operator==(
const Any & rAny,
const bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==
sal_Bool operator==(
const Any & rAny,
const ::rtl::OUString & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==
sal_Bool operator==(
const Any & rAny,
const Type & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==
sal_Bool operator==(
const Any & rAny,
const BaseReference & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator==

template< typename C >


sal_Bool operator==(
const Any & rAny,
const C & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Description
Template equality operator: compares set value of left side any to right side value. The values need not be of equal type, e.g. a short integer is compared to a long integer. This operator can be implemented as template member function, if all supported compilers can cope with template member functions.
Template Parameters
C
value type
Parameters
rAny
another any (left side)
value
a value (right side)
Return
true if values are equal, false otherwise

operator>>=

template< typename C >


sal_Bool operator>>=(
const Any & rAny,
C & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Description
Template binary >>= operator to assign a value from an any. If the any does not contain a value that can be assigned without data loss, then this operation will fail returning false.
Template Parameters
C
value type
Parameters
rAny
source any (left side)
value
destination value (right side)
Return
true if assignment was possible without data loss

operator>>=
sal_Bool operator>>=(
const Any & rAny,
bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_Int16 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_uInt16 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_Int32 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_uInt32 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_Int64 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_uInt64 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
float & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
double & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
::rtl::OUString & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
Type & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
Any & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_Bool & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


operator>>=
sal_Bool operator>>=(
const Any & rAny,
sal_Int8 & value ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.