class ExpOperation

A single operation in an expression. More...

Full nameTelEngine::ExpOperation
Definition#include <yateclass.h>
InheritsTelEngine::NamedString [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class describes a single operation in an expression evaluator

inline  ExpOperation (const ExpOperation& original)

ExpOperation

Copy constructor

Parameters:
originalOperation to copy

inline  ExpOperation (const ExpOperation& original, const char* name)

ExpOperation

Copy constructor with renaming, to be used for named results

Parameters:
originalOperation to copy
nameName of the newly created operation

inline explicit  ExpOperation (const String& value, const char* name = 0)

ExpOperation

Push String constructor

Parameters:
valueString constant to push on stack on execution
nameOptional of the newly created constant

inline explicit  ExpOperation (long int value, const char* name = 0)

ExpOperation

Push Number constructor

Parameters:
valueInteger constant to push on stack on execution
nameOptional of the newly created constant

inline  ExpOperation (ExpEvaluator::Opcode oper, const char* name = 0, long int value = 0)

ExpOperation

Constructor from components

Parameters:
operOperation code
nameOptional name of the operation or result
valueOptional 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 Tue Mar 8 18:42:27 2011, using kdoc 2.0a54.