LibreOffice Module sc (master) 1
|
The data type represents bits, manageable by bitwise operations. More...
#include <compressedarray.hxx>
Public Member Functions | |
ScBitMaskCompressedArray (A nMaxAccessP, const D &rValue) | |
void | AndValue (A nPos, const D &rValueToAnd) |
void | OrValue (A nPos, const D &rValueToOr) |
void | AndValue (A nStart, A nEnd, const D &rValueToAnd) |
void | OrValue (A nStart, A nEnd, const D &rValueToOr) |
void | CopyFromAnded (const ScBitMaskCompressedArray &rArray, A nStart, A nEnd, const D &rValueToAnd) |
Copy values from rArray and bitwise AND them with rValueToAnd. More... | |
A | GetLastAnyBitAccess (const D &rBitMask) const |
Return the last row where an entry meets the condition: ((aValue & rBitMask) != 0), start searching at 0. More... | |
Public Member Functions inherited from ScCompressedArray< A, D > | |
ScCompressedArray (A nMaxAccess, const D &rValue) | |
Construct with nMaxAccess=MAXROW, for example. More... | |
void | Reset (const D &rValue) |
void | SetValue (A nPos, const D &rValue) |
void | SetValue (A nStart, A nEnd, const D &rValue) |
const D & | GetValue (A nPos) const |
A | GetLastPos () const |
const D & | GetValue (A nPos, size_t &nIndex, A &nEnd) const |
Get value for a row, and it's region end row. More... | |
RangeData | GetRangeData (A nPos) const |
Get range data for a row, i.e. More... | |
const D & | GetNextValue (size_t &nIndex, A &nEnd) const |
Get next value and it's region end row. More... | |
const D & | Insert (A nStart, size_t nCount) |
Insert rows before nStart and copy value for inserted rows from nStart-1, return that value. More... | |
void | InsertPreservingSize (A nStart, size_t nCount, const D &rFillValue) |
void | Remove (A nStart, size_t nCount) |
void | RemovePreservingSize (A nStart, size_t nCount, const D &rFillValue) |
void | CopyFrom (const ScCompressedArray &rArray, A nStart, A nEnd) |
Copy rArray.nStart+nSourceDy to this.nStart. More... | |
void | CopyFrom (const ScCompressedArray &rArray, A nDestStart, A nDestEnd, A nSrcStart) |
SC_DLLPUBLIC size_t | Search (A nPos) const |
Obtain index into entries for nPos. More... | |
Iterator | begin () const |
Additional Inherited Members | |
Protected Attributes inherited from ScCompressedArray< A, D > | |
size_t | nCount |
size_t | nLimit |
std::unique_ptr< DataEntry[]> | pData |
A | nMaxAccess |
The data type represents bits, manageable by bitwise operations.
Definition at line 183 of file compressedarray.hxx.
|
inline |
Definition at line 186 of file compressedarray.hxx.
void ScBitMaskCompressedArray< A, D >::AndValue | ( | A | nPos, |
const D & | rValueToAnd | ||
) |
Definition at line 207 of file compressedarray.hxx.
References D, GetValue, nPos, and SetValue().
Definition at line 312 of file compressedarray.cxx.
References A, ScCompressedArray< A, D >::nCount, nIndex, ScCompressedArray< A, D >::pData, ScCompressedArray< A, D >::Search(), and ScCompressedArray< A, D >::SetValue().
void ScBitMaskCompressedArray< A, D >::CopyFromAnded | ( | const ScBitMaskCompressedArray< A, D > & | rArray, |
A | nStart, | ||
A | nEnd, | ||
const D & | rValueToAnd | ||
) |
Copy values from rArray and bitwise AND them with rValueToAnd.
Definition at line 364 of file compressedarray.cxx.
References A, D, ScCompressedArray< A, D >::GetNextValue(), ScCompressedArray< A, D >::GetValue(), nIndex, and ScCompressedArray< A, D >::SetValue().
A ScBitMaskCompressedArray< A, D >::GetLastAnyBitAccess | ( | const D & | rBitMask | ) | const |
Return the last row where an entry meets the condition: ((aValue & rBitMask) != 0), start searching at 0.
If no entry meets this condition, ::std::numeric_limits<A>::max() is returned.
Definition at line 383 of file compressedarray.cxx.
References A, ScCompressedArray< A, D >::nCount, nIndex, and ScCompressedArray< A, D >::pData.
void ScBitMaskCompressedArray< A, D >::OrValue | ( | A | nPos, |
const D & | rValueToOr | ||
) |
Definition at line 215 of file compressedarray.hxx.
References D, GetValue, nPos, and SetValue().
Definition at line 338 of file compressedarray.cxx.
References A, ScCompressedArray< A, D >::nCount, nIndex, ScCompressedArray< A, D >::pData, ScCompressedArray< A, D >::Search(), and ScCompressedArray< A, D >::SetValue().