19 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
20 #define _COM_SUN_STAR_UNO_SEQUENCE_HXX_
62 osl_atomic_increment( &rSeq._pSequence->nRefCount );
63 _pSequence = rSeq._pSequence;
70 : _pSequence( pSequence )
79 #if ! defined EXCEPTIONS_OFF
85 #if ! defined EXCEPTIONS_OFF
87 throw ::std::bad_alloc();
96 #if ! defined EXCEPTIONS_OFF
102 #if ! defined EXCEPTIONS_OFF
104 throw ::std::bad_alloc();
132 if (_pSequence == rSeq._pSequence)
147 return (!
operator == ( rSeq ));
155 #if ! defined EXCEPTIONS_OFF
161 #if ! defined EXCEPTIONS_OFF
163 throw ::std::bad_alloc();
165 return reinterpret_cast< E *
>( _pSequence->elements );
172 assert( nIndex >= 0 && nIndex < getLength() );
173 return getArray()[ nIndex ];
181 assert( nIndex >= 0 && nIndex < getLength() );
182 return reinterpret_cast< const E *
>( _pSequence->elements )[ nIndex ];
190 #if !defined EXCEPTIONS_OFF
196 #if !defined EXCEPTIONS_OFF
198 throw ::std::bad_alloc();
204 const ::rtl::ByteSequence & rByteSequence )
SAL_THROW(())
206 return ::com::sun::star::uno::Sequence< sal_Int8 >(
207 *
reinterpret_cast< const ::com::sun::star::uno::Sequence< sal_Int8 > *
>( &rByteSequence ) );
217 template<
typename T > inline ::com::sun::star::uno::Type
const &
219 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
226 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
234 template<
typename T > inline ::com::sun::star::uno::Type
const &
236 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
246 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
257 inline const ::com::sun::star::uno::Type &
268 inline const ::com::sun::star::uno::Type &
276 rElementType.getTypeLibType() );
282 #if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
287 inline const ::com::sun::star::uno::Type &
290 #if !( defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
293 if (! s_pType_com_sun_star_uno_Sequence_Char)
297 & s_pType_com_sun_star_uno_Sequence_Char,
298 rElementType.getTypeLibType() );
301 & s_pType_com_sun_star_uno_Sequence_Char );