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 154 of file dptabres.hxx.

Constructor & Destructor Documentation

ScDPAggData::ScDPAggData ( )
inline

Definition at line 165 of file dptabres.hxx.

Member Function Documentation

void ScDPAggData::Calculate ( ScSubTotalFunc  eFunc,
const ScDPSubTotalState rSubState 
)
void ScDPAggData::Dump ( int  nIndent) const
double ScDPAggData::GetAuxiliary ( ) const

Definition at line 644 of file dptabres.cxx.

References assert(), fAux, and IsCalculated().

Referenced by ScDPDataMember::UpdateRunningTotals().

ScDPAggData * ScDPAggData::GetChild ( )

Definition at line 660 of file dptabres.cxx.

References pChild.

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

const ScDPAggData* ScDPAggData::GetExistingChild ( ) const
inline

Definition at line 184 of file dptabres.hxx.

Referenced by ScDPDataMember::GetConstAggData().

double ScDPAggData::GetResult ( ) const
bool ScDPAggData::HasData ( ) const

Definition at line 613 of file dptabres.cxx.

References assert(), IsCalculated(), nCount, and SC_DPAGG_RESULT_EMPTY.

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

bool ScDPAggData::HasError ( ) const
bool ScDPAggData::IsCalculated ( ) const
void ScDPAggData::Reset ( void  )

Definition at line 667 of file dptabres.cxx.

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

Referenced by ScDPDataMember::ResetResults().

void ScDPAggData::SetAuxiliary ( double  fNew)

Definition at line 652 of file dptabres.cxx.

References assert(), fAux, and IsCalculated().

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

void ScDPAggData::SetEmpty ( bool  bSet)
void ScDPAggData::SetError ( )

Definition at line 627 of file dptabres.cxx.

References assert(), IsCalculated(), nCount, and SC_DPAGG_RESULT_ERROR.

Referenced by ScDPDataMember::UpdateRunningTotals().

void ScDPAggData::SetResult ( double  fNew)

Definition at line 620 of file dptabres.cxx.

References assert(), fVal, and IsCalculated().

Referenced by ScDPDataMember::UpdateRunningTotals().

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

Member Data Documentation

double ScDPAggData::fAux
private

Definition at line 159 of file dptabres.hxx.

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

double ScDPAggData::fVal
private

Definition at line 158 of file dptabres.hxx.

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

WelfordRunner ScDPAggData::maWelford
private

Definition at line 157 of file dptabres.hxx.

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

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

Definition at line 162 of file dptabres.hxx.

Referenced by Calculate(), and Update().

sal_Int64 ScDPAggData::nCount
private

Definition at line 160 of file dptabres.hxx.

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

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

Definition at line 161 of file dptabres.hxx.

Referenced by GetChild(), and Reset().


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