compressedarray.hxx (38d50f7b) compressedarray.hxx (7ee1d29c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 532 unchanged lines hidden (view full) ---

541 const ScSummableCompressedArray<A,S>& rArray,
542 double fScale ) const;
543};
544
545
546template< typename A, typename D >
547void ScBitMaskCompressedArray<A,D>::AndValue( A nPos, const D& rValueToAnd )
548{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 532 unchanged lines hidden (view full) ---

541 const ScSummableCompressedArray<A,S>& rArray,
542 double fScale ) const;
543};
544
545
546template< typename A, typename D >
547void ScBitMaskCompressedArray<A,D>::AndValue( A nPos, const D& rValueToAnd )
548{
549 const D& rValue = GetValue( nPos);
549 const D& rValue = this->GetValue( nPos);
550 if ((rValue & rValueToAnd) != rValue)
550 if ((rValue & rValueToAnd) != rValue)
551 SetValue( nPos, rValue & rValueToAnd);
551 this->SetValue( nPos, rValue & rValueToAnd);
552}
553
554
555template< typename A, typename D >
556void ScBitMaskCompressedArray<A,D>::OrValue( A nPos, const D& rValueToOr )
557{
552}
553
554
555template< typename A, typename D >
556void ScBitMaskCompressedArray<A,D>::OrValue( A nPos, const D& rValueToOr )
557{
558 const D& rValue = GetValue( nPos);
558 const D& rValue = this->GetValue( nPos);
559 if ((rValue | rValueToOr) != rValue)
559 if ((rValue | rValueToOr) != rValue)
560 SetValue( nPos, rValue | rValueToOr);
560 this->SetValue( nPos, rValue | rValueToOr);
561}
562
563
564// === ScCoupledCompressedArrayIterator ======================================
565
566/** Iterate over a ScBitMaskCompressedArray and retrieve values from a coupled
567 array for positions where in the bit mask array the condition ((*aIter1 &
568 rBitMask) == rMaskedCompare) is met.

--- 97 unchanged lines hidden ---
561}
562
563
564// === ScCoupledCompressedArrayIterator ======================================
565
566/** Iterate over a ScBitMaskCompressedArray and retrieve values from a coupled
567 array for positions where in the bit mask array the condition ((*aIter1 &
568 rBitMask) == rMaskedCompare) is met.

--- 97 unchanged lines hidden ---