#include <yateclass.h>

Public Member Functions | |
| ExpOperation (const ExpOperation &original) | |
| ExpOperation (const ExpOperation &original, const char *name) | |
| ExpOperation (const String &value, const char *name=0) | |
| ExpOperation (long int value, const char *name=0) | |
| ExpOperation (ExpEvaluator::Opcode oper, const char *name=0, long int value=0) | |
| ExpEvaluator::Opcode | opcode () const |
| long int | number () const |
Friends | |
| class | ExpEvaluator |
This class describes a single operation in an expression evaluator
| ExpOperation | ( | const ExpOperation & | original | ) | [inline] |
Copy constructor
| original | Operation to copy |
| ExpOperation | ( | const ExpOperation & | original, | |
| const char * | name | |||
| ) | [inline] |
Copy constructor with renaming, to be used for named results
| original | Operation to copy | |
| name | Name of the newly created operation |
| ExpOperation | ( | const String & | value, | |
| const char * | name = 0 | |||
| ) | [inline, explicit] |
| ExpOperation | ( | long int | value, | |
| const char * | name = 0 | |||
| ) | [inline, explicit] |
Push Number constructor
| value | Integer constant to push on stack on execution | |
| name | Optional of the newly created constant |
References String::operator=().
| ExpOperation | ( | ExpEvaluator::Opcode | oper, | |
| const char * | name = 0, |
|||
| long int | value = 0 | |||
| ) | [inline] |
Constructor from components
| oper | Operation code | |
| name | Optional name of the operation or result | |
| value | Optional integer constant used as function parameter count |
| ExpEvaluator::Opcode opcode | ( | ) | const [inline] |
Retrieve the code of this operation
| long int number | ( | ) | const [inline] |
Retrieve the number stored in this operation
1.5.6