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

To calculate a single subtotal function. More...

#include <subtotal.hxx>

Collaboration diagram for ScFunctionData:
[legend]

Public Member Functions

 ScFunctionData ()
 
 ScFunctionData (ScSubTotalFunc eFn)
 
void update (double fNewVal)
 
double getResult ()
 Check getError() after (!) obtaining the result. More...
 
bool getError () const
 
ScSubTotalFunc getFunc () const
 
void setError ()
 

Private Member Functions

double & getValueRef ()
 
sal_uInt64 & getCountRef ()
 

Private Attributes

WelfordRunner maWelford
 
ScSubTotalFunc meFunc
 
bool mbError
 

Detailed Description

To calculate a single subtotal function.

Definition at line 61 of file subtotal.hxx.

Constructor & Destructor Documentation

ScFunctionData::ScFunctionData ( )
inline

Definition at line 64 of file subtotal.hxx.

ScFunctionData::ScFunctionData ( ScSubTotalFunc  eFn)
inline

Definition at line 65 of file subtotal.hxx.

Member Function Documentation

sal_uInt64& ScFunctionData::getCountRef ( )
inlineprivate

Definition at line 80 of file subtotal.hxx.

References WelfordRunner::mnCount.

Referenced by getResult(), and update().

bool ScFunctionData::getError ( ) const
inline

Definition at line 70 of file subtotal.hxx.

References mbError.

Referenced by ScDocument::GetSelectionFunction(), and ScTable::UpdateSelectionFunction().

ScSubTotalFunc ScFunctionData::getFunc ( ) const
inline

Definition at line 71 of file subtotal.hxx.

References meFunc.

Referenced by ScColumn::UpdateSelectionFunction().

double ScFunctionData::getResult ( )
double& ScFunctionData::getValueRef ( )
inlineprivate

Definition at line 79 of file subtotal.hxx.

References WelfordRunner::mfMean.

Referenced by getResult(), and update().

void ScFunctionData::setError ( )
inline

Definition at line 72 of file subtotal.hxx.

References mbError.

void ScFunctionData::update ( double  fNewVal)

Member Data Documentation

WelfordRunner ScFunctionData::maWelford
private

Definition at line 75 of file subtotal.hxx.

Referenced by getResult(), and update().

bool ScFunctionData::mbError
private

Definition at line 77 of file subtotal.hxx.

Referenced by getError(), getResult(), setError(), and update().

ScSubTotalFunc ScFunctionData::meFunc
private

Definition at line 76 of file subtotal.hxx.

Referenced by getFunc(), getResult(), and update().


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