Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
wmtk::components::image_simulation::expression_parser::EmptyExpr Class Reference

#include <Expression.hpp>

Inheritance diagram for wmtk::components::image_simulation::expression_parser::EmptyExpr:
wmtk::components::image_simulation::expression_parser::Expression

Public Member Functions

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.
 
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
virtual bool contains_not () const
 Checks if the expression contains a logical NOT operation.
 
virtual bool contains_and () const
 Checks if the expression contains a logical AND operation.
 
virtual bool contains_or () const
 Checks if the expression contains a logical OR operation.
 
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.
 

Detailed Description

An expression that evaluates to true if the provided tags set is empty.

Member Function Documentation

◆ eval()

bool wmtk::components::image_simulation::expression_parser::EmptyExpr::eval ( const CellTag &  tags) const
inlineoverridevirtual

Evaluates the expression against a given set of tags.

Parameters
tagsThe tags evaluated against the boolean expression.
Returns
true If the expression is satisfied by the provided tags.
false Otherwise.

Implements wmtk::components::image_simulation::expression_parser::Expression.

◆ tag_names_involved()

std::set< std::string > wmtk::components::image_simulation::expression_parser::EmptyExpr::tag_names_involved ( ) const
inlineoverridevirtual

◆ tags_involved()

CellTag wmtk::components::image_simulation::expression_parser::EmptyExpr::tags_involved ( ) const
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.

Returns
CellTag The set of tags involved in this expression.

Implements wmtk::components::image_simulation::expression_parser::Expression.

◆ to_string()

std::string wmtk::components::image_simulation::expression_parser::EmptyExpr::to_string ( ) const
inlineoverridevirtual

Converts the expression to its string representation. Mainly for debugging purposes.

Returns
std::string The string representation of the expression.

Implements wmtk::components::image_simulation::expression_parser::Expression.


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