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 60 of file subtotal.hxx.

Constructor & Destructor Documentation

◆ ScFunctionData() [1/2]

ScFunctionData::ScFunctionData ( )
inline

Definition at line 63 of file subtotal.hxx.

◆ ScFunctionData() [2/2]

ScFunctionData::ScFunctionData ( ScSubTotalFunc  eFn)
inline

Definition at line 64 of file subtotal.hxx.

Member Function Documentation

◆ getCountRef()

sal_uInt64 & ScFunctionData::getCountRef ( )
inlineprivate

Definition at line 79 of file subtotal.hxx.

References maWelford, and WelfordRunner::mnCount.

Referenced by getResult(), and update().

◆ getError()

bool ScFunctionData::getError ( ) const
inline

Definition at line 69 of file subtotal.hxx.

References mbError.

Referenced by ScTable::UpdateSelectionFunction().

◆ getFunc()

ScSubTotalFunc ScFunctionData::getFunc ( ) const
inline

Definition at line 70 of file subtotal.hxx.

References meFunc.

Referenced by ScColumn::UpdateSelectionFunction().

◆ getResult()

double ScFunctionData::getResult ( )

◆ getValueRef()

double & ScFunctionData::getValueRef ( )
inlineprivate

Definition at line 78 of file subtotal.hxx.

References maWelford, and WelfordRunner::mfMean.

Referenced by getResult(), and update().

◆ setError()

void ScFunctionData::setError ( )
inline

Definition at line 71 of file subtotal.hxx.

References mbError.

◆ update()

void ScFunctionData::update ( double  fNewVal)

Member Data Documentation

◆ maWelford

WelfordRunner ScFunctionData::maWelford
private

Definition at line 74 of file subtotal.hxx.

Referenced by getCountRef(), getResult(), getValueRef(), and update().

◆ mbError

bool ScFunctionData::mbError
private

Definition at line 76 of file subtotal.hxx.

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

◆ meFunc

ScSubTotalFunc ScFunctionData::meFunc
private

Definition at line 75 of file subtotal.hxx.

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


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