FX::FXExpression Class Reference

#include <FXExpression.h>

List of all members.


Detailed Description

Expression.

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 FXchar * getError (FXExpressionError err)

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.


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:58:41 2008 for TnFOX by doxygen v1.5.6