LibreOffice Module sc (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
ScFlatUInt16RowSegments Class Reference

#include <segmenttree.hxx>

Classes

class  ForwardIterator
 
struct  RangeData
 

Public Member Functions

 ScFlatUInt16RowSegments (SCROW nMaxRow, sal_uInt16 nDefault)
 
 ScFlatUInt16RowSegments (const ScFlatUInt16RowSegments &r)
 
 ~ScFlatUInt16RowSegments ()
 
void setValue (SCROW nRow1, SCROW nRow2, sal_uInt16 nValue)
 
void setValueIf (SCROW nRow1, SCROW nRow2, sal_uInt16 nValue, const std::function< bool(sal_uInt16)> &rPredicate)
 
sal_uInt16 getValue (SCROW nRow)
 
sal_uInt64 getSumValue (SCROW nRow1, SCROW nRow2)
 
bool getRangeData (SCROW nRow, RangeData &rData)
 
void removeSegment (SCROW nRow1, SCROW nRow2)
 
void insertSegment (SCROW nRow, SCROW nSize)
 
SCROW findLastTrue (sal_uInt16 nValue) const
 
void enableTreeSearch (bool bEnable)
 
void makeReady ()
 
OString dumpAsString ()
 

Private Attributes

::std::unique_ptr< ScFlatUInt16SegmentsImplmpImpl
 

Detailed Description

Definition at line 118 of file segmenttree.hxx.

Constructor & Destructor Documentation

◆ ScFlatUInt16RowSegments() [1/2]

ScFlatUInt16RowSegments::ScFlatUInt16RowSegments ( SCROW  nMaxRow,
sal_uInt16  nDefault 
)

Definition at line 623 of file segmenttree.cxx.

◆ ScFlatUInt16RowSegments() [2/2]

ScFlatUInt16RowSegments::ScFlatUInt16RowSegments ( const ScFlatUInt16RowSegments r)

Definition at line 628 of file segmenttree.cxx.

◆ ~ScFlatUInt16RowSegments()

ScFlatUInt16RowSegments::~ScFlatUInt16RowSegments ( )

Definition at line 633 of file segmenttree.cxx.

Member Function Documentation

◆ dumpAsString()

OString ScFlatUInt16RowSegments::dumpAsString ( )

Definition at line 694 of file segmenttree.cxx.

References getRangeData(), and ScFlatUInt16RowSegments::RangeData::mnRow2.

◆ enableTreeSearch()

void ScFlatUInt16RowSegments::enableTreeSearch ( bool  bEnable)

Definition at line 679 of file segmenttree.cxx.

References mpImpl.

◆ findLastTrue()

SCROW ScFlatUInt16RowSegments::findLastTrue ( sal_uInt16  nValue) const

Definition at line 674 of file segmenttree.cxx.

References mpImpl, and nValue.

◆ getRangeData()

bool ScFlatUInt16RowSegments::getRangeData ( SCROW  nRow,
RangeData rData 
)

Definition at line 652 of file segmenttree.cxx.

References aData, mpImpl, and rData.

Referenced by dumpAsString().

◆ getSumValue()

sal_uInt64 ScFlatUInt16RowSegments::getSumValue ( SCROW  nRow1,
SCROW  nRow2 
)

Definition at line 647 of file segmenttree.cxx.

References mpImpl.

◆ getValue()

sal_uInt16 ScFlatUInt16RowSegments::getValue ( SCROW  nRow)

Definition at line 642 of file segmenttree.cxx.

References mpImpl.

◆ insertSegment()

void ScFlatUInt16RowSegments::insertSegment ( SCROW  nRow,
SCROW  nSize 
)

Definition at line 669 of file segmenttree.cxx.

References mpImpl.

◆ makeReady()

void ScFlatUInt16RowSegments::makeReady ( )

Definition at line 689 of file segmenttree.cxx.

References mpImpl.

◆ removeSegment()

void ScFlatUInt16RowSegments::removeSegment ( SCROW  nRow1,
SCROW  nRow2 
)

Definition at line 664 of file segmenttree.cxx.

References mpImpl.

◆ setValue()

void ScFlatUInt16RowSegments::setValue ( SCROW  nRow1,
SCROW  nRow2,
sal_uInt16  nValue 
)

Definition at line 637 of file segmenttree.cxx.

References mpImpl, and nValue.

◆ setValueIf()

void ScFlatUInt16RowSegments::setValueIf ( SCROW  nRow1,
SCROW  nRow2,
sal_uInt16  nValue,
const std::function< bool(sal_uInt16)> &  rPredicate 
)

Definition at line 684 of file segmenttree.cxx.

References mpImpl, and nValue.

Member Data Documentation

◆ mpImpl

::std::unique_ptr<ScFlatUInt16SegmentsImpl> ScFlatUInt16RowSegments::mpImpl
private

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