[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Feb 13 12:40:29 CET 2004
CVS commit by staikos:
missed committing this file
M +13 -0 enodes.h 1.3
--- kdeextragear-2/kst/kst/enodes.h #1.2:1.3
@@ -37,4 +37,6 @@ namespace Equation {
virtual ~Node();
+ virtual bool isConst() = 0;
+ virtual void fold(Context*);
virtual double value(Context*) = 0;
};
@@ -44,4 +46,5 @@ namespace Equation {
BinaryNode(Node *left, Node *right);
virtual ~BinaryNode();
+ virtual void fold(Context*);
protected:
@@ -60,4 +63,6 @@ namespace Equation {
// Makes no sense for this type
virtual double value(Context*) { return 0.0; }
+
+ virtual bool isConst();
double at(int, Context*);
@@ -72,4 +77,5 @@ namespace Equation {
virtual ~Function();
+ virtual bool isConst();
virtual double value(Context*);
@@ -86,4 +92,5 @@ namespace Equation {
virtual ~Number();
+ virtual bool isConst();
virtual double value(Context*);
@@ -98,8 +106,10 @@ namespace Equation {
virtual ~Identifier();
+ virtual bool isConst();
virtual double value(Context*);
protected:
char *_name;
+ double *_const;
};
@@ -110,4 +120,5 @@ namespace Equation {
virtual ~Data();
+ virtual bool isConst();
virtual double value(Context*);
@@ -122,4 +133,5 @@ namespace Equation {
x(Node *left, Node *right); \
virtual ~x(); \
+ virtual bool isConst(); \
virtual double value(Context*); \
};
@@ -129,4 +141,5 @@ CreateNode(Subtraction)
CreateNode(Multiplication)
CreateNode(Division)
+CreateNode(Power)
#undef CreateNode
More information about the Kst
mailing list