GM6000 Digital Heater Controller Branch: main
SDX-1330
List of all members | Classes | Public Member Functions
Cpl::Math::RealExpressionParser< T > Class Template Reference

This template class evaluates an null terminate string that represents an real-number arithmetic expression. More...

Detailed Description

template<typename T>
class Cpl::Math::RealExpressionParser< T >

This template class evaluates an null terminate string that represents an real-number arithmetic expression.

Template Arg(s): T Double/float type to use for the numeric expression/calculations

#include <RealExpressionParser.h>

Public Member Functions

 RealExpressionParser ()
 Constructor.
 
bool eval (const char *expressionAsText, T &result)
 Evaluates an integer arithmetic expression and returns true if the expression was successfully evaluated.
 

Constructor & Destructor Documentation

◆ RealExpressionParser()

template<typename T >
Cpl::Math::RealExpressionParser< T >::RealExpressionParser ( )
inline

Constructor.

Member Function Documentation

◆ eval()

template<typename T >
bool Cpl::Math::RealExpressionParser< T >::eval ( const char *  expressionAsText,
T &  result 
)
inline

Evaluates an integer arithmetic expression and returns true if the expression was successfully evaluated.

The evaluated value is returned via, the 'result' argument.


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