|
Wildmeshing Toolkit
|
#include <Expression.hpp>
Public Member Functions | |
| AndExpr (ExpressionPtr left, ExpressionPtr right) | |
| bool | eval (const CellTag &tags) const override |
| Evaluates the expression against a given set of tags. | |
| std::string | to_string () const override |
| Converts the expression to its string representation. Mainly for debugging purposes. | |
| bool | contains_not () const override |
| Checks if the expression contains a logical NOT operation. | |
| bool | contains_and () const override |
| Checks if the expression contains a logical AND operation. | |
| bool | contains_or () const override |
| Checks if the expression contains a logical OR operation. | |
| CellTag | tags_involved () const override |
| Returns the set of tags involved in this expression. | |
| std::set< std::string > | tag_names_involved () const override |
Public Member Functions inherited from wmtk::components::image_simulation::expression_parser::Expression | |
| bool | contains_only_and () const |
| Checks if the expression contains only logical AND operations or none. | |
| bool | contains_only_or () const |
| Checks if the expression contains only logical OR operations or none. | |
| bool | contains_only_not () const |
| Checks if the expression contains only logical NOT operations or none. | |
Private Attributes | |
| ExpressionPtr | m_left |
| ExpressionPtr | m_right |
A logical AND expression.
|
inlineoverridevirtual |
Checks if the expression contains a logical AND operation.
Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.
|
inlineoverridevirtual |
Checks if the expression contains a logical NOT operation.
Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.
|
inlineoverridevirtual |
Checks if the expression contains a logical OR operation.
Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.
|
inlineoverridevirtual |
Evaluates the expression against a given set of tags.
| tags | The tags evaluated against the boolean expression. |
Implements wmtk::components::image_simulation::expression_parser::Expression.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the set of tags involved in this expression.
This is useful for intent operations to determine which tags are relevant for the operation.
Implements wmtk::components::image_simulation::expression_parser::Expression.
|
inlineoverridevirtual |
Converts the expression to its string representation. Mainly for debugging purposes.
Implements wmtk::components::image_simulation::expression_parser::Expression.