valuecalc.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSPREAD_VALUECALC
00021 #define KSPREAD_VALUECALC
00022
00023 #include "kspread_value.h"
00024
00025 namespace KSpread {
00026
00027 class ValueConverter;
00028
00039 class ValueCalc {
00040 public:
00041 ValueCalc (ValueConverter* converter);
00042
00044 KSpreadValue add (const KSpreadValue &a, const KSpreadValue &b);
00045 KSpreadValue sub (const KSpreadValue &a, const KSpreadValue &b);
00046 KSpreadValue mul (const KSpreadValue &a, const KSpreadValue &b);
00047 KSpreadValue div (const KSpreadValue &a, const KSpreadValue &b);
00048 KSpreadValue pow (const KSpreadValue &a, const KSpreadValue &b);
00049 KSpreadValue add (const KSpreadValue &a, double b);
00050 KSpreadValue sub (const KSpreadValue &a, double b);
00051 KSpreadValue mul (const KSpreadValue &a, double b);
00052 KSpreadValue div (const KSpreadValue &a, double b);
00053 KSpreadValue pow (const KSpreadValue &a, double b);
00054
00056 KSpreadValue log (const KSpreadValue &number, const KSpreadValue &base);
00057 KSpreadValue log (const KSpreadValue &number, double base = 10);
00058 KSpreadValue ln (const KSpreadValue &number);
00059
00061 KSpreadValue sum (const KSpreadValue &range);
00062 int count (const KSpreadValue &range);
00063 int countA (const KSpreadValue &range);
00064 KSpreadValue avg (const KSpreadValue &range);
00065 KSpreadValue max (const KSpreadValue &range);
00066 KSpreadValue min (const KSpreadValue &range);
00067
00068 protected:
00069 ValueConverter* converter;
00071 KSpreadValue::Format format (KSpreadValue::Format a, KSpreadValue::Format b);
00072 };
00073
00074 }
00075
00076
00077 #endif // KSPREAD_VALUECALC
00078
This file is part of the documentation for kspread Library Version 1.4.2.