|
LogiXpr
|
Functions for evaluating expressions. More...
Functions | |
| std::vector< std::unordered_map< std::string, bool > > | getTruthTableInputs (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs) |
| Generate the truth table inputs for the given expressions. | |
| bool | evaluateExpression (std::shared_ptr< Expression > expression, std::unordered_map< std::string, bool > inputs) |
| Evaluate the expression with the given inputs. | |
| bool | isEquivalent (std::shared_ptr< Expression > lhs, std::shared_ptr< Expression > rhs) |
| Check if two expressions are equivalent. | |
Functions for evaluating expressions.
| bool evaluateExpression | ( | std::shared_ptr< Expression > | expression, |
| std::unordered_map< std::string, bool > | inputs | ||
| ) |
Evaluate the expression with the given inputs.
| expression | pointer to expression to evaluate |
| inputs | map of variable inputs |
Definition at line 31 of file evaluator.cpp.
| std::vector< std::unordered_map< std::string, bool > > getTruthTableInputs | ( | std::shared_ptr< Expression > | lhs, |
| std::shared_ptr< Expression > | rhs | ||
| ) |
Generate the truth table inputs for the given expressions.
| lhs | pointer to left hand side expression |
| rhs | pointer to right hand side expression |
Definition at line 8 of file evaluator.cpp.
| bool isEquivalent | ( | std::shared_ptr< Expression > | lhs, |
| std::shared_ptr< Expression > | rhs | ||
| ) |
Check if two expressions are equivalent.
| lhs | pointer to left hand side expression |
| rhs | pointer to right hand side expression |
Definition at line 60 of file evaluator.cpp.