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

#include <dptabres.hxx>

Collaboration diagram for ScDPAggData:
[legend]

Public Member Functions

 ScDPAggData ()
 
void Update (const ScDPValue &rNext, ScSubTotalFunc eFunc, const ScDPSubTotalState &rSubState)
 
void Calculate (ScSubTotalFunc eFunc, const ScDPSubTotalState &rSubState)
 
bool IsCalculated () const
 
double GetResult () const
 
bool HasError () const
 
bool HasData () const
 
void SetResult (double fNew)
 
void SetEmpty (bool bSet)
 
void SetError ()
 
double GetAuxiliary () const
 
void SetAuxiliary (double fNew)
 
void Reset ()
 
const ScDPAggDataGetExistingChild () const
 
ScDPAggDataGetChild ()
 
void Dump (int nIndent) const
 

Private Attributes

WelfordRunner maWelford
 
double fVal
 
double fAux
 
sal_Int64 nCount
 
std::unique_ptr< ScDPAggDatapChild
 
std::vector< double > mSortedValues
 

Detailed Description

Definition at line 153 of file dptabres.hxx.

Constructor & Destructor Documentation

◆ ScDPAggData()

ScDPAggData::ScDPAggData ( )
inline

Definition at line 164 of file dptabres.hxx.

Member Function Documentation

◆ Calculate()

void ScDPAggData::Calculate ( ScSubTotalFunc  eFunc,
const ScDPSubTotalState rSubState 
)

◆ Dump()

void ScDPAggData::Dump ( int  nIndent) const

◆ GetAuxiliary()

double ScDPAggData::GetAuxiliary ( ) const

Definition at line 645 of file dptabres.cxx.

References fAux, and IsCalculated().

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ GetChild()

ScDPAggData * ScDPAggData::GetChild ( )

Definition at line 661 of file dptabres.cxx.

References pChild.

Referenced by ScDPDataMember::GetAggData(), lcl_GetChildTotal(), and ScDPDataMember::UpdateValues().

◆ GetExistingChild()

const ScDPAggData * ScDPAggData::GetExistingChild ( ) const
inline

Definition at line 183 of file dptabres.hxx.

References pChild.

Referenced by ScDPDataMember::GetConstAggData().

◆ GetResult()

double ScDPAggData::GetResult ( ) const

◆ HasData()

bool ScDPAggData::HasData ( ) const

Definition at line 614 of file dptabres.cxx.

References IsCalculated(), nCount, and SC_DPAGG_RESULT_EMPTY.

Referenced by ScDPDataMember::HasData(), lcl_IsEqual(), and lcl_IsLess().

◆ HasError()

bool ScDPAggData::HasError ( ) const

◆ IsCalculated()

bool ScDPAggData::IsCalculated ( ) const

◆ Reset()

void ScDPAggData::Reset ( void  )

Definition at line 668 of file dptabres.cxx.

References fAux, fVal, maWelford, nCount, pChild, and SC_DPAGG_EMPTY.

Referenced by ScDPDataMember::ResetResults().

◆ SetAuxiliary()

void ScDPAggData::SetAuxiliary ( double  fNew)

Definition at line 653 of file dptabres.cxx.

References fAux, and IsCalculated().

Referenced by ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateRunningTotals().

◆ SetEmpty()

void ScDPAggData::SetEmpty ( bool  bSet)

◆ SetError()

void ScDPAggData::SetError ( )

Definition at line 628 of file dptabres.cxx.

References IsCalculated(), nCount, and SC_DPAGG_RESULT_ERROR.

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ SetResult()

void ScDPAggData::SetResult ( double  fNew)

Definition at line 621 of file dptabres.cxx.

References fVal, and IsCalculated().

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ Update()

void ScDPAggData::Update ( const ScDPValue rNext,
ScSubTotalFunc  eFunc,
const ScDPSubTotalState rSubState 
)

Member Data Documentation

◆ fAux

double ScDPAggData::fAux
private

Definition at line 158 of file dptabres.hxx.

Referenced by Calculate(), GetAuxiliary(), Reset(), and SetAuxiliary().

◆ fVal

double ScDPAggData::fVal
private

Definition at line 157 of file dptabres.hxx.

Referenced by Calculate(), GetResult(), Reset(), SetResult(), and Update().

◆ maWelford

WelfordRunner ScDPAggData::maWelford
private

Definition at line 156 of file dptabres.hxx.

Referenced by Calculate(), Reset(), and Update().

◆ mSortedValues

std::vector<double> ScDPAggData::mSortedValues
private

Definition at line 161 of file dptabres.hxx.

Referenced by Calculate(), and Update().

◆ nCount

sal_Int64 ScDPAggData::nCount
private

Definition at line 159 of file dptabres.hxx.

Referenced by Calculate(), HasData(), HasError(), IsCalculated(), Reset(), SetEmpty(), SetError(), and Update().

◆ pChild

std::unique_ptr<ScDPAggData> ScDPAggData::pChild
private

Definition at line 160 of file dptabres.hxx.

Referenced by GetChild(), GetExistingChild(), and Reset().


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