![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BasicMathExpressionEvaluator.h>
Public Member Functions | |
| CORE_API | FBasicMathExpressionEvaluator () |
| CORE_API TValueOrError< double, FExpressionError > | Evaluate (const TCHAR *InExpression, double InExistingValue=0) const |
Static Public Member Functions | |
| static CORE_API void | DefineArithmeticTokens (FTokenDefinitions &TokenDefinitions) |
| static CORE_API void | DefineArithmeticOperators (FExpressionGrammar &TokenDefinitions) |
| static CORE_API void | MapArithmeticOperators (FOperatorJumpTable &JumpTable) |
A basic math expression evaluator
| FBasicMathExpressionEvaluator::FBasicMathExpressionEvaluator | ( | ) |
Constructor that sets up the parser's lexer and compiler
|
static |
|
static |
Utils that can be re-used as part of more complex evaluators
Note precedences are 3-5 for power/multiplicative/additive
| TValueOrError< double, FExpressionError > FBasicMathExpressionEvaluator::Evaluate | ( | const TCHAR * | InExpression, |
| double | InExistingValue = 0 |
||
| ) | const |
Evaluate the given expression, resulting in either a double value, or an error
|
static |