Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ExpressionEvaluator Class Reference

List of all members.

Detailed Description

A quick expression evaluator.

Handles all arithmetic, all D numbers, predefined constants and functions.


Public Types

typedef real function (double v) FuncED
 A custom function that takes a single double and returns a real.

typedef real function (double a, double b) FuncEDD
 A custom function that takes two doubles and returns a real.


Public Member Functions

void define (char[] name, float value)
 Define a constant.

void define (char[] name, FuncED func)
 Define a function which takes a single double argument.

void define (char[] name, FuncEDD func)
 Define a function which takes two doubles as arguments.

void predefineMath ()
 Define various mathematics expressions.

bit eval (char[] text, out float value)
 Evaluate and set the result in value, or return false if the operation could not be completed.

void skipSpaces (inout char *s, char *e)
 Skip all spaces.


Member Function Documentation

bit ExpressionEvaluator.eval chartext  [],
out float  value
 

Evaluate and set the result in value, or return false if the operation could not be completed.

value may still hold some kind of value.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 13:12:51 2003 for dig by doxygen 1.3.2