Home

Download

Features

Screenshots

Usage

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

FunctionParser Class Reference

#include <fparser.hh>

Inheritance diagram for FunctionParser:

Inheritance graph
[legend]
Collaboration diagram for FunctionParser:

Collaboration graph
[legend]
List of all members.

Public Types

typedef double(* FunctionPtr )(const double *)

Public Methods

int Parse (const std::string &Function, const std::string &Vars, bool useDegrees=false)
const char * ErrorMsg (void) const
double Eval (const double *Vars)
int EvalError (void) const
bool AddConstant (const std::string &name, double value)
bool AddFunction (const std::string &name, FunctionPtr, unsigned paramsAmount)
bool AddFunction (const std::string &name, FunctionParser &)
void Optimize ()
 FunctionParser ()
 ~FunctionParser ()
void PrintByteCode (std::ostream &dest) const
int Parse (const std::string &Function, const std::string &Vars)
const char * ErrorMsg (void) const
double Eval (const double *Vars)
int EvalError (void) const
 FunctionParser (int mode=RADIANS)
 ~FunctionParser ()

Static Public Attributes

const int DEGREES = 0
const int RADIANS = 1

Detailed Description

Author:
Warp

Definition at line 16 of file fparser.hh.


The documentation for this class was generated from the following files:
Generated on Mon Jun 2 22:43:28 2003 for Fung-Calc by doxygen1.2.17