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...
 
virtual ~ScCompressedArray ()
 
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 186 of file compressedarray.hxx.

Constructor & Destructor Documentation

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

Definition at line 189 of file compressedarray.hxx.

References A, and D.

Member Function Documentation

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

Definition at line 210 of file compressedarray.hxx.

References D, GetValue, rValue, and SetValue.

Referenced by ScTable::SyncColRowFlags().

template<typename A , typename D >
void ScBitMaskCompressedArray< A, D >::AndValue ( A  nStart,
A  nEnd,
const D rValueToAnd 
)
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 369 of file compressedarray.cxx.

References A, D, ScCompressedArray< A, D >::GetNextValue(), ScCompressedArray< A, D >::GetValue(), nIndex, rValue, and ScCompressedArray< A, D >::SetValue().

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 388 of file compressedarray.cxx.

References A, ScCompressedArray< A, D >::nCount, nIndex, and ScCompressedArray< A, D >::pData.

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

Definition at line 218 of file compressedarray.hxx.

References D, GetValue, rValue, and SetValue.

Referenced by ScTable::SyncColRowFlags().

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: