19 #ifndef INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_H
20 #define INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_H
61 inline static void * SAL_CALL
operator new ( ::size_t nSize )
64 inline static void SAL_CALL
operator delete (
void * pMem )
67 inline static void * SAL_CALL
operator new ( ::size_t,
void * pMem )
70 inline static void SAL_CALL
operator delete (
void *,
void * )
109 inline
Sequence( const E * pElements, sal_Int32 len );
115 inline explicit
Sequence( sal_Int32 len );
135 inline sal_Int32 SAL_CALL getLength() const SAL_THROW(())
136 {
return _pSequence->nElements; }
144 {
return (_pSequence->nElements > 0); }
153 {
return reinterpret_cast< const E *
>( _pSequence->elements ); }
164 inline E * SAL_CALL getArray();
178 inline E
const * begin()
const;
192 inline E
const * end()
const;
204 inline E & SAL_CALL operator [] ( sal_Int32 nIndex );
212 inline const E & SAL_CALL operator [] ( sal_Int32 nIndex )
const
241 inline void SAL_CALL realloc( sal_Int32 nSize );
248 {
return _pSequence; }
256 inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
toUnoSequence(
257 const ::rtl::ByteSequence & rByteSequence )
SAL_THROW(());
275 inline const ::com::sun::star::uno::Type &
276 SAL_CALL
getCppuType( const ::com::sun::star::uno::Sequence< E > * )
291 inline const ::com::sun::star::uno::Type &
302 inline const ::com::sun::star::uno::Type &
const ::com::sun::star::uno::Type & getCharSequenceCppuType()
Gets the meta type of IDL sequence< char >.
Definition: Sequence.hxx:268
sal_Bool operator!=(const Any &rAny, const C &value)
Template unequality operator: compares set value of left side any to right side value.
Definition: Any.hxx:565
Holds a weak reference to a type description.
Definition: typedescription.h:40
inline::com::sun::star::uno::Sequence< sal_Int8 > toUnoSequence(const ::rtl::ByteSequence &rByteSequence)
Creates a UNO byte sequence from a SAL byte sequence.
Definition: Sequence.hxx:183
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
sal_Bool hasElements() const
Tests whether the sequence has elements, i.e.
Definition: Sequence.h:143
const ::com::sun::star::uno::Type & getCppuSequenceType(const ::com::sun::star::uno::Type &rElementType)
Gets the meta type of IDL sequence.
Definition: Sequence.hxx:249
E ElementType
typedefs the element type of the sequence
Definition: Sequence.h:83
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:591
This is the binary specification of a SAL sequence.
Definition: types.h:325
const E * getConstArray() const
Gets a pointer to elements array for reading.
Definition: Sequence.h:152
unsigned char sal_Bool
Definition: types.h:46
__sal_NoAcquire
Definition: types.h:372
sal_Bool operator==(const Any &rAny, const C &value)
Template equality operator: compares set value of left side any to right side value.
Definition: Any.hxx:554
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
const ::com::sun::star::uno::Type & getCppuType(const ::com::sun::star::uno::Sequence< E > *)
Gets the meta type of IDL sequence.
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358