Open 3D Engine ExpressionEvaluation Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ExpressionEvaluation::MathExpressionOperators Class Reference

Inherits ExpressionEvaluation::ExpressionElementParser.

Public Types

enum  MathExpressionOperatorPriority {
  Unknown = -1 , AddSubtract = 0 , MultiplyDivideModulo = 1 , Power = 2 ,
  Function = 3
}
 
enum  MathOperatorId {
  Add = 0 , Subtract , Multiply , Divide ,
  Modulo
}
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (MathExpressionOperators, AZ::SystemAllocator)
 
ExpressionParserId GetParserId () const override
 
ParseResult ParseElement (const AZStd::string &inputText, size_t offset) const override
 
void EvaluateToken (const ElementInformation &elementInformation, ExpressionResultStack &evaluationStack) const override
 
- Public Member Functions inherited from ExpressionEvaluation::ExpressionElementParser
 AZ_CLASS_ALLOCATOR (ExpressionElementParser, AZ::SystemAllocator)
 
virtual ExpressionParserId GetParserId () const =0
 
virtual ParseResult ParseElement (const AZStd::string &inputText, size_t offset) const =0
 
virtual void EvaluateToken (const ElementInformation &parseResult, ExpressionResultStack &evaluationStack) const =0
 

Static Public Member Functions

static ElementInformation AddOperator ()
 
static ElementInformation SubtractOperator ()
 
static ElementInformation MultiplyOperator ()
 
static ElementInformation DivideOperator ()
 
static ElementInformation ModuloOperator ()
 

Member Function Documentation

◆ EvaluateToken()

void ExpressionEvaluation::MathExpressionOperators::EvaluateToken ( const ElementInformation elementInformation,
ExpressionResultStack evaluationStack 
) const
overridevirtual

◆ GetParserId()

ExpressionParserId ExpressionEvaluation::MathExpressionOperators::GetParserId ( ) const
overridevirtual

◆ ParseElement()

ParseResult ExpressionEvaluation::MathExpressionOperators::ParseElement ( const AZStd::string &  inputText,
size_t  offset 
) const
overridevirtual

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