19 #ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
20 #define _COM_SUN_STAR_UNO_SEQUENCE_HXX_
60 _pSequence = rSeq._pSequence;
67 : _pSequence( pSequence )
76 #if ! defined EXCEPTIONS_OFF
82 #if ! defined EXCEPTIONS_OFF
84 throw ::std::bad_alloc();
93 #if ! defined EXCEPTIONS_OFF
99 #if ! defined EXCEPTIONS_OFF
101 throw ::std::bad_alloc();
129 if (_pSequence == rSeq._pSequence)
144 return (!
operator == ( rSeq ));
152 #if ! defined EXCEPTIONS_OFF
158 #if ! defined EXCEPTIONS_OFF
160 throw ::std::bad_alloc();
162 return reinterpret_cast< E *
>( _pSequence->elements );
170 nIndex >= 0 && nIndex < getLength(),
171 "### illegal index of sequence!" );
172 return getArray()[ nIndex ];
181 nIndex >= 0 && nIndex < getLength(),
182 "### illegal index of sequence!" );
183 return reinterpret_cast< const E *
>( _pSequence->elements )[ nIndex ];
191 #if !defined EXCEPTIONS_OFF
197 #if !defined EXCEPTIONS_OFF
199 throw ::std::bad_alloc();
205 const ::rtl::ByteSequence & rByteSequence )
SAL_THROW(())
207 return ::com::sun::star::uno::Sequence< sal_Int8 >(
208 *
reinterpret_cast< const ::com::sun::star::uno::Sequence< sal_Int8 > *
>( &rByteSequence ) );
218 template<
typename T > inline ::com::sun::star::uno::Type
const &
220 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
227 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
235 template<
typename T > inline ::com::sun::star::uno::Type
const &
237 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
247 typename ::com::sun::star::uno::Sequence< T >::ElementType *
>(
258 inline const ::com::sun::star::uno::Type &
269 inline const ::com::sun::star::uno::Type &
277 rElementType.getTypeLibType() );
283 #if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
288 inline const ::com::sun::star::uno::Type &
291 #if !( defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
294 if (! s_pType_com_sun_star_uno_Sequence_Char)
298 & s_pType_com_sun_star_uno_Sequence_Char,
299 rElementType.getTypeLibType() );
302 & s_pType_com_sun_star_uno_Sequence_Char );