LibreOffice Module sc (master) 1
|
#include <dptabres.hxx>
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 ScDPAggData * | GetExistingChild () const |
ScDPAggData * | GetChild () |
void | Dump (int nIndent) const |
Private Attributes | |
WelfordRunner | maWelford |
double | fVal |
double | fAux |
sal_Int64 | nCount |
std::unique_ptr< ScDPAggData > | pChild |
std::vector< double > | mSortedValues |
Definition at line 153 of file dptabres.hxx.
|
inline |
Definition at line 164 of file dptabres.hxx.
void ScDPAggData::Calculate | ( | ScSubTotalFunc | eFunc, |
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 449 of file dptabres.cxx.
References ScDPSubTotalState::eColForce, ScDPSubTotalState::eRowForce, fAux, fVal, WelfordRunner::getCount(), WelfordRunner::getVariancePopulation(), WelfordRunner::getVarianceSample(), IsCalculated(), maWelford, mSortedValues, nCount, SC_DPAGG_RESULT_EMPTY, SC_DPAGG_RESULT_ERROR, SC_DPAGG_RESULT_VALID, SUBTOTAL_FUNC_AVE, SUBTOTAL_FUNC_CNT, SUBTOTAL_FUNC_CNT2, SUBTOTAL_FUNC_MAX, SUBTOTAL_FUNC_MED, SUBTOTAL_FUNC_MIN, SUBTOTAL_FUNC_NONE, SUBTOTAL_FUNC_PROD, SUBTOTAL_FUNC_STD, SUBTOTAL_FUNC_STDP, SUBTOTAL_FUNC_SUM, SUBTOTAL_FUNC_VAR, and SUBTOTAL_FUNC_VARP.
Referenced by lcl_GetChildTotal(), and ScDPDataMember::UpdateDataRow().
void ScDPAggData::Dump | ( | int | nIndent | ) | const |
double ScDPAggData::GetAuxiliary | ( | ) | const |
Definition at line 645 of file dptabres.cxx.
References fAux, and IsCalculated().
Referenced by ScDPDataMember::UpdateRunningTotals().
ScDPAggData * ScDPAggData::GetChild | ( | ) |
Definition at line 661 of file dptabres.cxx.
References pChild.
Referenced by ScDPDataMember::GetAggData(), lcl_GetChildTotal(), and ScDPDataMember::UpdateValues().
|
inline |
Definition at line 183 of file dptabres.hxx.
References pChild.
Referenced by ScDPDataMember::GetConstAggData().
double ScDPAggData::GetResult | ( | ) | const |
Definition at line 600 of file dptabres.cxx.
References fVal, and IsCalculated().
Referenced by ScDPDataMember::GetAggregate(), lcl_IsEqual(), lcl_IsLess(), ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateRunningTotals().
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().
bool ScDPAggData::HasError | ( | ) | const |
Definition at line 607 of file dptabres.cxx.
References IsCalculated(), nCount, and SC_DPAGG_RESULT_ERROR.
Referenced by ScDPDataMember::HasError(), lcl_IsEqual(), lcl_IsLess(), and ScDPDataMember::UpdateRunningTotals().
bool ScDPAggData::IsCalculated | ( | ) | const |
Definition at line 595 of file dptabres.cxx.
References nCount, and SC_DPAGG_RESULT_EMPTY.
Referenced by Calculate(), GetAuxiliary(), GetResult(), HasData(), HasError(), lcl_GetChildTotal(), SetAuxiliary(), SetEmpty(), SetError(), and SetResult().
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().
void ScDPAggData::SetAuxiliary | ( | double | fNew | ) |
Definition at line 653 of file dptabres.cxx.
References fAux, and IsCalculated().
Referenced by ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateRunningTotals().
void ScDPAggData::SetEmpty | ( | bool | bSet | ) |
Definition at line 635 of file dptabres.cxx.
References IsCalculated(), nCount, SC_DPAGG_RESULT_EMPTY, and SC_DPAGG_RESULT_VALID.
Referenced by ScDPDataMember::UpdateRunningTotals().
void ScDPAggData::SetError | ( | ) |
Definition at line 628 of file dptabres.cxx.
References IsCalculated(), nCount, and SC_DPAGG_RESULT_ERROR.
Referenced by ScDPDataMember::UpdateRunningTotals().
void ScDPAggData::SetResult | ( | double | fNew | ) |
Definition at line 621 of file dptabres.cxx.
References fVal, and IsCalculated().
Referenced by ScDPDataMember::UpdateRunningTotals().
void ScDPAggData::Update | ( | const ScDPValue & | rNext, |
ScSubTotalFunc | eFunc, | ||
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 374 of file dptabres.cxx.
References ScDPSubTotalState::eColForce, ScDPValue::Empty, ScDPSubTotalState::eRowForce, ScDPValue::Error, fVal, maWelford, ScDPValue::meType, ScDPValue::mfValue, mSortedValues, nCount, SubTotal::SafeMult(), SubTotal::SafePlus(), ScDPValue::String, SUBTOTAL_FUNC_AVE, SUBTOTAL_FUNC_CNT, SUBTOTAL_FUNC_CNT2, SUBTOTAL_FUNC_MAX, SUBTOTAL_FUNC_MED, SUBTOTAL_FUNC_MIN, SUBTOTAL_FUNC_NONE, SUBTOTAL_FUNC_PROD, SUBTOTAL_FUNC_STD, SUBTOTAL_FUNC_STDP, SUBTOTAL_FUNC_SUM, SUBTOTAL_FUNC_VAR, SUBTOTAL_FUNC_VARP, and WelfordRunner::update().
Referenced by ScDPDataMember::UpdateValues().
|
private |
Definition at line 158 of file dptabres.hxx.
Referenced by Calculate(), GetAuxiliary(), Reset(), and SetAuxiliary().
|
private |
Definition at line 157 of file dptabres.hxx.
Referenced by Calculate(), GetResult(), Reset(), SetResult(), and Update().
|
private |
Definition at line 156 of file dptabres.hxx.
Referenced by Calculate(), Reset(), and Update().
|
private |
Definition at line 161 of file dptabres.hxx.
Referenced by Calculate(), and Update().
|
private |
Definition at line 159 of file dptabres.hxx.
Referenced by Calculate(), HasData(), HasError(), IsCalculated(), Reset(), SetEmpty(), SetError(), and Update().
|
private |
Definition at line 160 of file dptabres.hxx.
Referenced by GetChild(), GetExistingChild(), and Reset().