#include <cpar.h>
Public Methods | |
void | operator= (int _i) |
void | operator= (long _l) |
void | operator= (double _d) |
void | operator= (cPar *_p) |
void | operator= (cPar &_r) |
void | operator= (MathFuncNoArg _f) |
void | operator= (MathFunc1Arg _f) |
void | operator= (MathFunc2Args _f) |
void | operator= (MathFunc3Args _f) |
void | operator= (MathFunc4Args _f) |
void | operator= (char _op) |
If the value of the cPar is of expression type, the expression must be converted to reversed Polish form. The reversed Polish form expression is stored in a vector of ExprElem structures.
|
Operation. During evaluation of the expression, two items (or three, with '?') are popped out of the stack, the given operator is applied to them and the result is pushed back on the stack. The operation can be:
|
|
The argument can be a pointer to a function that takes 4 double arguments and returns a double. Effect during evaluation of the expression: 4 doubles are popped from the stack, the given function is called with them as arguments, and the return value is pushed back on the stack. See also the cFunctionType class and the Define_Function() macro. The OMNeT++ functions generating random variables of different distributions can also be used in ExprElem expressions. |
|
The argument can be a pointer to a function that takes 3 double arguments and returns a double. Effect during evaluation of the expression: 3 doubles are popped from the stack, the given function is called with them as arguments, and the return value is pushed back on the stack. See also the cFunctionType class and the Define_Function() macro. The OMNeT++ functions generating random variables of different distributions can also be used in ExprElem expressions. |
|
The argument can be a pointer to a function that takes 2 double arguments and returns a double. Effect during evaluation of the expression: 2 doubles are popped from the stack, the given function is called with them as arguments, and the return value is pushed back on the stack. See also the cFunctionType class and the Define_Function() macro. The OMNeT++ functions generating random variables of different distributions can also be used in ExprElem expressions. |
|
The argument can be a pointer to a function that takes 1 double argument and returns a double (e.g. sqrt()). Effect during evaluation of the expression: 1 double is popped from the stack, the given function is called with them as arguments, and the return value is pushed back on the stack. See also the cFunctionType class and the Define_Function() macro. The OMNeT++ functions generating random variables of different distributions can also be used in ExprElem expressions. |
|
The argument can be a pointer to a function that takes no arguments and returns a double. Effect during evaluation of the expression: the return value is pushed on the stack. See also the cFunctionType class and the Define_Function() macro. The OMNeT++ functions generating random variables of different distributions can also be used in ExprElem expressions. |
|
Effect during evaluation of the expression: takes the value of the cPar object (a double) and pushes the value on the evaluation stack. The cPar which evaluates this expression will copy the cPar for itself. |
|
Effect during evaluation of the expression: takes the value of the cPar object (a double) and pushes the value on the evaluation stack. The cPar is an "external" one: its ownership does not change. This is how NED-language REF parameters in expressions are handled. |
|
Effect during evaluation of the expression: pushes the given number (which is converted to double) on the evaluation stack. |
|
Effect during evaluation of the expression: pushes the given number (which is converted to double) on the evaluation stack. |
|
Effect during evaluation of the expression: pushes the given number (which is converted to double) on the evaluation stack. |