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();
98 if (osl_atomic_decrement( &_pSequence->nRefCount ) == 0)
118 if (_pSequence == rSeq._pSequence)
131 return (!
operator == ( rSeq ));
143 throw ::std::bad_alloc();
144 return reinterpret_cast< E *
>( _pSequence->elements );
150 {
return getConstArray(); }
155 {
return begin() + getLength(); }
161 assert(nIndex >= 0 && static_cast<sal_uInt32>(nIndex) < static_cast<sal_uInt32>(getLength()));
162 return getArray()[ nIndex ];
169 assert(nIndex >= 0 && static_cast<sal_uInt32>(nIndex) < static_cast<sal_uInt32>(getLength()));
170 return reinterpret_cast< const E *
>( _pSequence->elements )[ nIndex ];
182 throw ::std::bad_alloc();
186 const ::rtl::ByteSequence & rByteSequence )
188 return ::com::sun::star::uno::Sequence< sal_Int8 >(
189 *
reinterpret_cast< const ::com::sun::star::uno::Sequence< sal_Int8 > *
>( &rByteSequence ) );
199 template<
typename T > inline ::com::sun::star::uno::Type
const &
201 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
208 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
216 template<
typename T > inline ::com::sun::star::uno::Type
const &
218 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
228 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
239 inline const ::com::sun::star::uno::Type &
249 inline const ::com::sun::star::uno::Type &
256 rElementType.getTypeLibType() );
263 inline const ::com::sun::star::uno::Type &
267 if (! s_pType_com_sun_star_uno_Sequence_Char)
271 & s_pType_com_sun_star_uno_Sequence_Char,
272 rElementType.getTypeLibType() );
275 & s_pType_com_sun_star_uno_Sequence_Char );