19 #ifndef INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_HXX
20 #define INCLUDED_COM_SUN_STAR_UNO_SEQUENCE_HXX
60 osl_atomic_increment( &rSeq._pSequence->
nRefCount );
61 _pSequence = rSeq._pSequence;
67 : _pSequence( pSequence )
80 throw ::std::bad_alloc();
92 throw ::std::bad_alloc();
95 #if defined LIBO_INTERNAL_ONLY
99 const_cast<E *>(init.begin()), init.size(),
cpp_acquire))
101 throw std::bad_alloc();
109 if (osl_atomic_decrement( &_pSequence->nRefCount ) == 0)
129 if (_pSequence == rSeq._pSequence)
142 return (!
operator == ( rSeq ));
154 throw ::std::bad_alloc();
155 return reinterpret_cast< E *
>( _pSequence->elements );
161 {
return getConstArray(); }
166 {
return begin() + getLength(); }
172 assert(nIndex >= 0 && static_cast<sal_uInt32>(nIndex) < static_cast<sal_uInt32>(getLength()));
173 return getArray()[ nIndex ];
180 assert(nIndex >= 0 && static_cast<sal_uInt32>(nIndex) < static_cast<sal_uInt32>(getLength()));
181 return reinterpret_cast< const E *
>( _pSequence->elements )[ nIndex ];
193 throw ::std::bad_alloc();
197 const ::rtl::ByteSequence & rByteSequence )
199 return ::com::sun::star::uno::Sequence< sal_Int8 >(
200 *
reinterpret_cast< const ::com::sun::star::uno::Sequence< sal_Int8 > *
>( &rByteSequence ) );
210 template<
typename T > inline ::com::sun::star::uno::Type
const &
212 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
219 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
227 template<
typename T > inline ::com::sun::star::uno::Type
const &
229 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
239 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
250 inline const ::com::sun::star::uno::Type &
260 inline const ::com::sun::star::uno::Type &
267 rElementType.getTypeLibType() );
274 inline const ::com::sun::star::uno::Type &
278 if (! s_pType_com_sun_star_uno_Sequence_Char)
282 & s_pType_com_sun_star_uno_Sequence_Char,
283 rElementType.getTypeLibType() );
286 & s_pType_com_sun_star_uno_Sequence_Char );