ExpOperation Class Reference

A single operation in an expression. More...

#include <yateclass.h>

Inheritance diagram for ExpOperation:

NamedString String GenObject

List of all members.

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


Detailed Description

A single operation in an expression.

This class describes a single operation in an expression evaluator


Constructor & Destructor Documentation

ExpOperation ( const ExpOperation original  )  [inline]

Copy constructor

Parameters:
original Operation to copy

ExpOperation ( const ExpOperation original,
const char *  name 
) [inline]

Copy constructor with renaming, to be used for named results

Parameters:
original Operation to copy
name Name of the newly created operation

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

Push String constructor

Parameters:
value String constant to push on stack on execution
name Optional of the newly created constant

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

Push Number constructor

Parameters:
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

Parameters:
oper Operation code
name Optional name of the operation or result
value Optional integer constant used as function parameter count


Member Function Documentation

ExpEvaluator::Opcode opcode (  )  const [inline]

Retrieve the code of this operation

Returns:
Operation code as declared in the expression evaluator

long int number (  )  const [inline]

Retrieve the number stored in this operation

Returns:
Stored number


The documentation for this class was generated from the following file:

Generated on Sat May 28 18:28:23 2011 for Yate by  doxygen 1.5.6