Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXExpression Class Reference

Expression. More...

#include <FXExpression.h>

List of all members.

Public Member Functions

 FXExpression ()
 FXExpression (const FXExpression &orig)
 FXExpression (const FXchar *expression, const FXchar *variables=NULL, FXExpressionError *error=NULL)
 FXExpression (const FXString &expression, const FXString &variables=FXString::null, FXExpressionError *error=NULL)
FXExpressionoperator= (const FXExpression &orig)
bool empty () const
FXdouble evaluate (const FXdouble *args=NULL)
FXExpressionError parse (const FXchar *expression, const FXchar *variables=NULL)
FXExpressionError parse (const FXString &expression, const FXString &variables=FXString::null)
 ~FXExpression ()

Static Public Member Functions

static const FXchargetError (FXExpressionError err)


Detailed Description

Expression.

See also:


Constructor & Destructor Documentation

FX::FXExpression::FXExpression  ) 
 

Construct empty expression object.

FX::FXExpression::FXExpression const FXExpression orig  ) 
 

Copy expression object.

FX::FXExpression::FXExpression const FXchar expression,
const FXchar variables = NULL,
FXExpressionError error = NULL
 

Compile expression; if error is not NULL, error code is returned.

FX::FXExpression::FXExpression const FXString expression,
const FXString variables = FXString::null,
FXExpressionError error = NULL
 

Compile expression; if error is not NULL, error code is returned.

FX::FXExpression::~FXExpression  ) 
 

Delete.


Member Function Documentation

FXExpression& FX::FXExpression::operator= const FXExpression orig  ) 
 

Assign another expression to this one.

bool FX::FXExpression::empty  )  const [inline]
 

See if expression is empty.

FXdouble FX::FXExpression::evaluate const FXdouble args = NULL  ) 
 

Evaluate expression with given arguments, if any.

FXExpressionError FX::FXExpression::parse const FXchar expression,
const FXchar variables = NULL
 

Parse expression, return error code if syntax error is found.

FXExpressionError FX::FXExpression::parse const FXString expression,
const FXString variables = FXString::null
 

Parse expression, return error code if syntax error is found.

static const FXchar* FX::FXExpression::getError FXExpressionError  err  )  [inline, static]
 

Returns error code for given error.

Copyright © 1997-2005 Jeroen van der Zijp