Lines Matching refs:A
40 template< typename A, typename D > class ScCompressedArrayIterator;
60 template< typename A, typename D > class ScCompressedArray
65 A nEnd; // start is end of previous entry + 1
71 ScCompressedArray( A nMaxAccess,
75 ScCompressedArray( A nMaxAccess,
80 void SetValue( A nPos, const D& rValue );
81 void SetValue( A nStart, A nEnd, const D& rValue );
82 const D& GetValue( A nPos ) const;
85 const D& GetValue( A nPos, size_t& nIndex, A& nEnd ) const;
88 const D& GetValue( A nPos, size_t& nIndex, A& nStart, A& nEnd ) const;
93 const D& GetNextValue( size_t& nIndex, A& nEnd ) const;
97 const D& GetPrevValue( size_t& nIndex, A& nStart ) const;
102 A GetLastUnequalAccess( A nStart, const D& rCompare );
106 const D& Insert( A nStart, size_t nCount );
108 void Remove( A nStart, size_t nCount );
112 A nStart, A nEnd, long nSourceDy = 0 );
117 SC_DLLPUBLIC size_t Search( A nPos ) const;
125 friend class ScCompressedArrayIterator<A,D>;
131 A nMaxAccess;
135 template< typename A, typename D >
136 void ScCompressedArray<A,D>::Reset( const D& rValue ) in Reset()
149 template< typename A, typename D >
150 void ScCompressedArray<A,D>::SetValue( A nPos, const D& rValue ) in SetValue()
156 template< typename A, typename D >
157 const D& ScCompressedArray<A,D>::GetValue( A nPos ) const in GetValue()
164 template< typename A, typename D >
165 const D& ScCompressedArray<A,D>::GetValue( A nPos, size_t& nIndex, A& nEnd ) const in GetValue()
173 template< typename A, typename D >
174 const D& ScCompressedArray<A,D>::GetValue( A nPos, size_t& nIndex, A& nStart, in GetValue()
175 A& nEnd ) const in GetValue()
184 template< typename A, typename D >
185 const D& ScCompressedArray<A,D>::GetNextValue( size_t& nIndex, A& nEnd ) const in GetNextValue()
195 template< typename A, typename D >
196 const D& ScCompressedArray<A,D>::GetPrevValue( size_t& nIndex, A& nStart ) const in GetPrevValue()
205 template< typename A, typename D >
206 size_t ScCompressedArray<A,D>::GetEntryCount() const in GetEntryCount()
212 template< typename A, typename D >
213 const typename ScCompressedArray<A,D>::DataEntry&
214 ScCompressedArray<A,D>::GetDataEntry( size_t nIndex ) const in GetDataEntry()
234 template< typename A, typename D > class ScCompressedArrayIterator
238 const ScCompressedArray<A,D> & rArray,
239 A nStart, A nEnd );
241 void NewLimits( A nStart, A nEnd );
242 A GetIterStart() const;
243 A GetIterEnd() const;
246 A GetPos() const;
251 A GetRangeStart() const;
252 A GetRangeEnd() const;
254 void Resync( A nPos );
259 void Follow( const ScCompressedArrayIterator<A,X>& );
262 const ScCompressedArray<A,D> & rArray;
264 A nIterStart;
265 A nIterEnd;
266 A nCurrent;
271 template< typename A, typename D >
272 ScCompressedArrayIterator<A,D>::ScCompressedArrayIterator( in ScCompressedArrayIterator()
273 const ScCompressedArray<A,D> & rArrayP, A nStart, A nEnd ) in ScCompressedArrayIterator() argument
281 template< typename A, typename D >
282 void ScCompressedArrayIterator<A,D>::NewLimits( A nStart, A nEnd ) in NewLimits()
292 template< typename A, typename D >
293 A ScCompressedArrayIterator<A,D>::GetIterStart() const in GetIterStart()
299 template< typename A, typename D >
300 A ScCompressedArrayIterator<A,D>::GetIterEnd() const in GetIterEnd()
306 template< typename A, typename D >
307 bool ScCompressedArrayIterator<A,D>::operator++() in operator ++()
319 template< typename A, typename D >
320 A ScCompressedArrayIterator<A,D>::GetPos() const in GetPos()
326 template< typename A, typename D >
327 bool ScCompressedArrayIterator<A,D>::NextRange() in NextRange()
344 template< typename A, typename D >
345 ScCompressedArrayIterator<A,D>::operator bool() const
351 template< typename A, typename D >
352 const D& ScCompressedArrayIterator<A,D>::operator*() const in operator *()
358 template< typename A, typename D >
359 A ScCompressedArrayIterator<A,D>::GetRangeStart() const in GetRangeStart()
369 template< typename A, typename D >
370 A ScCompressedArrayIterator<A,D>::GetRangeEnd() const in GetRangeEnd()
377 template< typename A, typename D >
378 void ScCompressedArrayIterator<A,D>::Resync( A nPos ) in Resync()
397 template< typename A, typename D > class ScSummableCompressedArray : public ScCompressedArray<A,D>
400 ScSummableCompressedArray( A nMaxAccessP, in ScSummableCompressedArray()
403 : ScCompressedArray<A,D>( nMaxAccessP, in ScSummableCompressedArray()
406 ScSummableCompressedArray( A nMaxAccessP, in ScSummableCompressedArray()
408 : ScCompressedArray<A,D>( nMaxAccessP, in ScSummableCompressedArray()
414 unsigned long SumValues( A nStart, A nEnd ) const;
420 unsigned long SumValuesContinuation( A nStart, A nEnd,
429 unsigned long SumScaledValuesContinuation( A nStart, A nEnd,
440 template< typename A, typename D > class ScBitMaskCompressedArray : public ScCompressedArray<A,D>
443 ScBitMaskCompressedArray( A nMaxAccessP, in ScBitMaskCompressedArray()
446 : ScCompressedArray<A,D>( nMaxAccessP, rValue, nDeltaP) in ScBitMaskCompressedArray()
448 ScBitMaskCompressedArray( A nMaxAccessP, in ScBitMaskCompressedArray()
450 : ScCompressedArray<A,D>( nMaxAccessP, in ScBitMaskCompressedArray()
453 void AndValue( A nPos, const D& rValueToAnd );
454 void OrValue( A nPos, const D& rValueToOr );
455 void AndValue( A nStart, A nEnd, const D& rValueToAnd );
456 void OrValue( A nStart, A nEnd, const D& rValueToOr );
461 A nStart, A nEnd, const D& rValueToAnd,
467 A nStart, A nEnd, const D& rValueToOr,
473 A GetBitStateStart( A nEnd, const D& rBitMask,
479 A GetBitStateEnd( A nStart, const D& rBitMask,
486 SC_DLLPUBLIC A GetFirstForCondition( A nStart, A nEnd,
494 SC_DLLPUBLIC A GetLastForCondition( A nStart, A nEnd,
500 A CountForCondition( A nStart, A nEnd,
506 SC_DLLPUBLIC bool HasCondition( A nStart, A nEnd,
513 size_t FillArrayForCondition( A nStart, A nEnd,
516 A * pArray, size_t nArraySize ) const;
520 A CountForAnyBitCondition( A nStart, A nEnd,
526 A GetLastAnyBitAccess( A nStart,
532 SC_DLLPUBLIC unsigned long SumCoupledArrayForCondition( A nStart, A nEnd,
534 const ScSummableCompressedArray<A,S>& rArray ) const;
539 SC_DLLPUBLIC unsigned long SumScaledCoupledArrayForCondition( A nStart, A nEnd,
541 const ScSummableCompressedArray<A,S>& rArray,
546 template< typename A, typename D >
547 void ScBitMaskCompressedArray<A,D>::AndValue( A nPos, const D& rValueToAnd ) in AndValue()
555 template< typename A, typename D >
556 void ScBitMaskCompressedArray<A,D>::OrValue( A nPos, const D& rValueToOr ) in OrValue()
571 template< typename A, typename D, typename S > class ScCoupledCompressedArrayIterator
575 const ScBitMaskCompressedArray<A,D> & rArray1,
576 A nStart, A nEnd,
579 const ScCompressedArray<A,S> & rArray2 );
580 void NewLimits( A nStart, A nEnd );
581 A GetIterStart() const;
582 A GetIterEnd() const;
584 A GetPos() const;
588 A GetRangeStart() const;
589 A GetRangeEnd() const;
590 void Resync( A nPos );
593 ScCompressedArrayIterator<A,D> aIter1;
594 ScCompressedArrayIterator<A,S> aIter2;
602 template< typename A, typename D, typename S >
603 A ScCoupledCompressedArrayIterator<A,D,S>::GetIterStart() const in GetIterStart()
609 template< typename A, typename D, typename S >
610 A ScCoupledCompressedArrayIterator<A,D,S>::GetIterEnd() const in GetIterEnd()
616 template< typename A, typename D, typename S >
617 ScCoupledCompressedArrayIterator<A,D,S>::operator bool() const
623 template< typename A, typename D, typename S >
624 const S& ScCoupledCompressedArrayIterator<A,D,S>::operator*() const in operator *()
630 template< typename A, typename D, typename S >
631 bool ScCoupledCompressedArrayIterator<A,D,S>::operator ++() in operator ++()
644 template< typename A, typename D, typename S >
645 A ScCoupledCompressedArrayIterator<A,D,S>::GetPos() const in GetPos()
651 template< typename A, typename D, typename S >
652 A ScCoupledCompressedArrayIterator<A,D,S>::GetRangeStart() const in GetRangeStart()
658 template< typename A, typename D, typename S >
659 A ScCoupledCompressedArrayIterator<A,D,S>::GetRangeEnd() const in GetRangeEnd()