19 #ifndef INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_H 20 #define INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_H 29 #if defined LIBO_INTERNAL_ONLY 30 #include <initializer_list> 65 inline static void * SAL_CALL
operator new ( ::size_t nSize )
67 inline static void SAL_CALL
operator delete (
void * pMem )
69 inline static void * SAL_CALL
operator new ( ::size_t,
void * pMem )
71 inline static void SAL_CALL
operator delete (
void *,
void * )
108 inline Sequence(
const E * pElements, sal_Int32 len );
114 inline explicit Sequence( sal_Int32 len );
116 #if defined LIBO_INTERNAL_ONLY 123 inline Sequence(std::initializer_list<E> init);
144 {
return _pSequence->nElements; }
152 {
return (_pSequence->nElements > 0); }
161 {
return reinterpret_cast< const E *
>( _pSequence->elements ); }
172 inline E * SAL_CALL getArray();
186 inline E
const * begin()
const;
200 inline E
const * end()
const;
212 inline E & SAL_CALL operator [] ( sal_Int32 nIndex );
220 inline const E & SAL_CALL operator [] ( sal_Int32 nIndex )
const;
246 inline void SAL_CALL realloc( sal_Int32 nSize );
253 {
return _pSequence; }
267 inline ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
toUnoSequence(
268 const ::rtl::ByteSequence & rByteSequence );
289 inline const ::com::sun::star::uno::Type &
290 SAL_CALL
getCppuType( const ::com::sun::star::uno::Sequence< E > * );
306 inline const ::com::sun::star::uno::Type &
320 inline const ::com::sun::star::uno::Type &
const ::com::sun::star::uno::Type & getCppuType(const ::com::sun::star::uno::Sequence< E > *)
Gets the meta type of IDL sequence.
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:408
const ::com::sun::star::uno::Type & getCharSequenceCppuType()
Gets the meta type of IDL sequence< char >.
Definition: Sequence.hxx:276
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:612
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
Definition: Sequence.h:258
bool hasElements() const
Tests whether the sequence has elements, i.e.
Definition: Sequence.h:151
const ::com::sun::star::uno::Type & getCppuSequenceType(const ::com::sun::star::uno::Type &rElementType)
Gets the meta type of IDL sequence.
Definition: Sequence.hxx:262
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:197
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:584
__sal_NoAcquire
Definition: types.h:382
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:40
E ElementType
typedefs the element type of the sequence
Definition: Sequence.h:83
This is the binary specification of a SAL sequence.
Definition: types.h:343
Definition: bootstrap.hxx:29
#define SAL_DEPRECATED(message)
Use as follows: SAL_DEPRECATED("Dont use, its evil.") void doit(int nPara);.
Definition: types.h:499
const E * getConstArray() const
Gets a pointer to elements array for reading.
Definition: Sequence.h:160
bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:116
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
sal_Int32 getLength() const
Gets length of the sequence.
Definition: Sequence.h:143