LibreOffice Module sc (master) 1
Public Member Functions | List of all members
ScBitMaskCompressedArray< A, D > Class Template Referencefinal

The data type represents bits, manageable by bitwise operations. More...

#include <compressedarray.hxx>

Inheritance diagram for ScBitMaskCompressedArray< A, D >:
[legend]
Collaboration diagram for ScBitMaskCompressedArray< A, D >:
[legend]

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 DGetValue (A nPos) const
 
A GetLastPos () const
 
const DGetValue (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 DGetNextValue (size_t &nIndex, A &nEnd) const
 Get next value and it's region end row. More...
 
const DInsert (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
 

Detailed Description

template<typename A, typename D>
class ScBitMaskCompressedArray< A, D >

The data type represents bits, manageable by bitwise operations.

Definition at line 183 of file compressedarray.hxx.

Constructor & Destructor Documentation

◆ ScBitMaskCompressedArray()

template<typename A , typename D >
ScBitMaskCompressedArray< A, D >::ScBitMaskCompressedArray ( A  nMaxAccessP,
const D rValue 
)
inline

Definition at line 186 of file compressedarray.hxx.

References A, and D.

Member Function Documentation

◆ AndValue() [1/2]

template<typename A , typename D >
void ScBitMaskCompressedArray< A, D >::AndValue ( A  nPos,
const D rValueToAnd 
)

Definition at line 207 of file compressedarray.hxx.

References D, GetValue, nPos, and SetValue().

◆ AndValue() [2/2]

template<typename A , typename D >
void ScBitMaskCompressedArray< A, D >::AndValue ( A  nStart,
A  nEnd,
const D rValueToAnd 
)

◆ CopyFromAnded()

template<typename A , typename D >
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().

◆ GetLastAnyBitAccess()

template<typename A , typename D >
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.

◆ OrValue() [1/2]

template<typename A , typename D >
void ScBitMaskCompressedArray< A, D >::OrValue ( A  nPos,
const D rValueToOr 
)

Definition at line 215 of file compressedarray.hxx.

References D, GetValue, nPos, and SetValue().

◆ OrValue() [2/2]

template<typename A , typename D >
void ScBitMaskCompressedArray< A, D >::OrValue ( A  nStart,
A  nEnd,
const D rValueToOr 
)

The documentation for this class was generated from the following files: