#include <StkFunc.h>

Public Member Functions | |
| StkFunc (const StkFunc &other) | |
| Constructs a function with the same name and number of arguments as of the one specified. | |
| const string & | getOpName () const |
| Gets the function name. | |
| int | getArgCount () const |
| Gets the number of arguments. | |
| int | getStackIncrement () const |
| The stack increment is 1 - (number of arguments) for functions. | |
| virtual bool | equalsOp (const StkOp &other) const |
Returns true if two operations have the same name, number of arguments and stack increment. | |
| virtual bool | dependsOn (const StkOp &f) const |
| Overriding methods should returns true if the operation depends on the specified function. | |
| virtual void | evalStack (GReal_t *&p) const =0 |
| Evaluates the stack. | |
| virtual string | getClassName () const |
| Gets the class name. | |
Protected Member Functions | |
| StkFunc (const string &name, int argc) | |
| Constructs a function with the specified name and number of arguments. | |
Protected Attributes | |
| string | stkfName |
| Function name. | |
| int | stkfArgc |
| Number of arguments. | |
| gridripper::math::expr::StkFunc::StkFunc | ( | const StkFunc & | other | ) |
Constructs a function with the same name and number of arguments as of the one specified.
| other | the object to copy |
| const string& gridripper::math::expr::StkFunc::getOpName | ( | ) | const [inline, virtual] |
| int gridripper::math::expr::StkFunc::getArgCount | ( | ) | const [inline, virtual] |
| int gridripper::math::expr::StkFunc::getStackIncrement | ( | ) | const [inline, virtual] |
The stack increment is 1 - (number of arguments) for functions.
Implements gridripper::math::expr::StkOp.
| virtual bool gridripper::math::expr::StkFunc::dependsOn | ( | const StkOp & | f | ) | const [inline, virtual] |
Overriding methods should returns true if the operation depends on the specified function.
The default implementation always returns false.
Implements gridripper::math::expr::StkOp.
Reimplemented in gridripper::math::expr::Expr.
| virtual void gridripper::math::expr::StkFunc::evalStack | ( | GReal_t *& | p | ) | const [pure virtual] |
Evaluates the stack.
| p | the stack pointer |
Implements gridripper::math::expr::StkOp.
Implemented in gridripper::math::expr::Expr, gridripper::math::expr::StkArg, gridripper::math::expr::StkConst, and gridripper::math::expr::StkVar.
| virtual string gridripper::math::expr::StkFunc::getClassName | ( | ) | const [inline, virtual] |
Gets the class name.
Implements gridripper::math::expr::StkOp.
Reimplemented in gridripper::math::expr::Expr, gridripper::math::expr::StkArg, gridripper::math::expr::StkConst, and gridripper::math::expr::StkVar.
string gridripper::math::expr::StkFunc::stkfName [protected] |
Function name.
int gridripper::math::expr::StkFunc::stkfArgc [protected] |
Number of arguments.
1.5.6