28 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
29 #define _COM_SUN_STAR_UNO_SEQUENCE_HXX_
69 _pSequence = rSeq._pSequence;
76 : _pSequence( pSequence )
85 #if ! defined EXCEPTIONS_OFF
91 #if ! defined EXCEPTIONS_OFF
93 throw ::std::bad_alloc();
102 #if ! defined EXCEPTIONS_OFF
108 #if ! defined EXCEPTIONS_OFF
110 throw ::std::bad_alloc();
138 if (_pSequence == rSeq._pSequence)
153 return (!
operator == ( rSeq ));
161 #if ! defined EXCEPTIONS_OFF
167 #if ! defined EXCEPTIONS_OFF
169 throw ::std::bad_alloc();
171 return reinterpret_cast< E *
>( _pSequence->elements );
179 nIndex >= 0 && nIndex < getLength(),
180 "### illegal index of sequence!" );
181 return getArray()[ nIndex ];
190 nIndex >= 0 && nIndex < getLength(),
191 "### illegal index of sequence!" );
192 return reinterpret_cast< const E *
>( _pSequence->elements )[ nIndex ];
200 #if !defined EXCEPTIONS_OFF
206 #if !defined EXCEPTIONS_OFF
208 throw ::std::bad_alloc();
214 const ::rtl::ByteSequence & rByteSequence )
SAL_THROW(())
216 return ::com::sun::star::uno::Sequence< sal_Int8 >(
217 *
reinterpret_cast< const ::com::sun::star::uno::Sequence< sal_Int8 > *
>( &rByteSequence ) );
227 template<
typename T > inline ::com::sun::star::uno::Type
const &
229 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
236 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
244 template<
typename T > inline ::com::sun::star::uno::Type
const &
246 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
256 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
267 inline const ::com::sun::star::uno::Type &
278 inline const ::com::sun::star::uno::Type &
286 rElementType.getTypeLibType() );
292 #if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
297 inline const ::com::sun::star::uno::Type &
300 #if !( defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
303 if (! s_pType_com_sun_star_uno_Sequence_Char)
307 & s_pType_com_sun_star_uno_Sequence_Char,
308 rElementType.getTypeLibType() );
311 & s_pType_com_sun_star_uno_Sequence_Char );