Murl::Util::Evaluator Class Reference

An expression evaluator. More...

#include "murl_util_evaluator.h"

Public Member Functions

 Evaluator ()
 The constructor.
 
virtual ~Evaluator ()
 The destructor.
 
virtual Bool AddConstants (const IAttributes *constants)
 Add a set of user-defined constants used during evaluation. More...
 
virtual Bool AddVariables (IAttributes *variables)
 Add a set of user-defined variables used during evaluation. More...
 
virtual Bool Update ()
 Update the evaluator. More...
 
virtual Bool Evaluate (const String &expression, String &result)
 Evaluate a given expression string. More...
 

Detailed Description

An expression evaluator.

Member Function Documentation

◆ AddConstants()

virtual Bool Murl::Util::Evaluator::AddConstants ( const IAttributes constants)
virtual

Add a set of user-defined constants used during evaluation.

Parameters
constantsThe user-defined constants.
Returns
true if successful.

◆ AddVariables()

virtual Bool Murl::Util::Evaluator::AddVariables ( IAttributes variables)
virtual

Add a set of user-defined variables used during evaluation.

Parameters
variablesThe user-defined variables.
Returns
true if successful.

◆ Update()

virtual Bool Murl::Util::Evaluator::Update ( )
virtual

Update the evaluator.

Whenever an input constant or variable has changed, this method must be called prior to Evaluate() to reflect the actual changes.

Returns
true if successful.

◆ Evaluate()

virtual Bool Murl::Util::Evaluator::Evaluate ( const String expression,
String result 
)
virtual

Evaluate a given expression string.

Parameters
expressionThe expression string to evaluate
resultA reference to a string receiving the result.
Returns
true if successful.

The documentation for this class was generated from the following file:
  • murl_util_evaluator.h


Copyright © 2011-2018 Spraylight GmbH.