19 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_H_
20 #define _COM_SUN_STAR_UNO_SEQUENCE_H_
27 #if ! defined EXCEPTIONS_OFF
64 inline static void * SAL_CALL
operator new ( ::size_t nSize )
67 inline static void SAL_CALL
operator delete (
void * pMem )
70 inline static void * SAL_CALL
operator new ( ::size_t,
void * pMem )
73 inline static void SAL_CALL
operator delete (
void *,
void * )
112 inline
Sequence( const E * pElements, sal_Int32 len );
118 inline explicit
Sequence( sal_Int32 len );
138 inline sal_Int32 SAL_CALL
getLength() const SAL_THROW(())
156 {
return reinterpret_cast< const E *
>( _pSequence->
elements ); }
179 inline E & SAL_CALL
operator [] ( sal_Int32 nIndex );
187 inline const E & SAL_CALL
operator [] ( sal_Int32 nIndex )
const
216 inline void SAL_CALL
realloc( sal_Int32 nSize );
223 {
return _pSequence; }
231 inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
toUnoSequence(
232 const ::rtl::ByteSequence & rByteSequence )
SAL_THROW(());
250 inline const ::com::sun::star::uno::Type &
251 SAL_CALL
getCppuType( const ::com::sun::star::uno::Sequence< E > * )
266 inline const ::com::sun::star::uno::Type &
277 inline const ::com::sun::star::uno::Type &
void realloc(sal_Int32 nSize)
Reallocates sequence to new length.
Definition: Sequence.hxx:187
const ::com::sun::star::uno::Type & getCharSequenceCppuType()
Gets the meta type of IDL sequence< char >.
Definition: Sequence.hxx:288
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:203
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:356
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:146
sal_Int32 getLength() const
Gets length of the sequence.
Definition: Sequence.h:138
sal_Bool operator!=(const Sequence< E > &rSeq) const
Unequality operator: Compares two sequences.
Definition: Sequence.hxx:144
const ::com::sun::star::uno::Type & getCppuSequenceType(const ::com::sun::star::uno::Type &rElementType)
Gets the meta type of IDL sequence.
Definition: Sequence.hxx:269
E ElementType
typedefs the element type of the sequence
Definition: Sequence.h:86
sal_Bool operator==(const Sequence< E > &rSeq) const
Equality operator: Compares two sequences.
Definition: Sequence.hxx:129
This is the binary specification of a SAL sequence.
Definition: types.h:323
const E * getConstArray() const
Gets a pointer to elements array for reading.
Definition: Sequence.h:155
Sequence()
Default constructor: Creates an empty sequence.
Definition: Sequence.hxx:49
char elements[1]
elements array
Definition: types.h:333
sal_Int32 nElements
element count
Definition: types.h:330
E & operator[](sal_Int32 nIndex)
Non-const index operator: Obtains a reference to element indexed at given position.
Definition: Sequence.hxx:170
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
unsigned char sal_Bool
Definition: types.h:37
E * getArray()
Gets a pointer to elements array for reading and writing.
Definition: Sequence.hxx:152
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
__sal_NoAcquire
Definition: types.h:370
const ::com::sun::star::uno::Type & getCppuType(const ::com::sun::star::uno::Sequence< E > *)
Gets the meta type of IDL sequence.