00001 #ifndef gridripper_math_expr_StkArg_h
00002 #define gridripper_math_expr_StkArg_h
00003
00004 #include <gridripper/math/expr/StkFunc.h>
00005
00006 namespace gridripper { namespace math { namespace expr {
00007
00008 using namespace std;
00009
00017 class StkArg: public StkFunc
00018 {
00019 public:
00021 GReal_t value;
00022
00023 public:
00029 StkArg(const string& name, GReal_t value = 0):
00030 StkFunc(name, 0), value(value) { }
00031
00036 StkArg(const StkArg& other): StkFunc(other), value(other.value) { }
00037
00042 void evalStack(GReal_t* &p) const { *(++p) = value; }
00043
00048 virtual string getClassName() const { return "StkArg"; }
00049 };
00050
00051 } } }
00052
00053 #endif