|
|
This class describes a single operation in an expression evaluator
| inline ExpOperation (const ExpOperation& original)
| ExpOperation |
Copy constructor
Parameters:
| original | Operation to copy |
| inline ExpOperation (const ExpOperation& original, const char* name)
| ExpOperation |
Copy constructor with renaming, to be used for named results
Parameters:
| original | Operation to copy |
| name | Name of the newly created operation |
| inline explicit ExpOperation (const String& value, const char* name = 0)
| ExpOperation |
Push String constructor
Parameters:
| value | String constant to push on stack on execution |
| name | Optional of the newly created constant |
| inline explicit ExpOperation (long int value, const char* name = 0)
| ExpOperation |
Push Number constructor
Parameters:
| value | Integer constant to push on stack on execution |
| name | Optional of the newly created constant |
| inline ExpOperation (ExpEvaluator::Opcode oper, const char* name = 0, long int value = 0)
| ExpOperation |
Constructor from components
Parameters:
| oper | Operation code |
| name | Optional name of the operation or result |
| value | Optional integer constant used as function parameter count |
| inline ExpEvaluator::Opcode opcode ()
| opcode |
[const]
Retrieve the code of this operation
Returns: Operation code as declared in the expression evaluator
| inline long int number ()
| number |
[const]
Retrieve the number stored in this operation
Returns: Stored number
| Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54. |