The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::statistics::expression::ExpressionParser Class Reference

Class for parsing statistical expressions based on a specific TreeNode context. More...

#include <ExpressionParser.hpp>

Public Member Functions

 ExpressionParser (TreeNode *n, std::vector< const TreeNode * > &already_used, const StatisticPairs &report_si)
 Construct a parser in the context of a specific TreeNode.
 
Expression && parse (const std::string &input)
 

Detailed Description

Class for parsing statistical expressions based on a specific TreeNode context.

Definition at line 28 of file ExpressionParser.hpp.

Constructor & Destructor Documentation

◆ ExpressionParser()

sparta::statistics::expression::ExpressionParser::ExpressionParser ( TreeNode n,
std::vector< const TreeNode * > &  already_used,
const StatisticPairs report_si 
)
inline

Construct a parser in the context of a specific TreeNode.

Parameters
nTreeNode context for parsing expressions using this parser
already_usedNodes which have been used by an expression containing this. These Nodes are off-limits for parsing here and should throw an Exception if encountered
report_siStatisticInstance objects already created from previous expressions that now live in the report

Definition at line 51 of file ExpressionParser.hpp.

Member Function Documentation

◆ parse()

Expression && sparta::statistics::expression::ExpressionParser::parse ( const std::string &  input)
inline

Definition at line 57 of file ExpressionParser.hpp.


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