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

#include <Expression.hpp>

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

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
 

Detailed Description

A logical AND expression.

Member Function Documentation

◆ contains_and()

bool wmtk::components::image_simulation::expression_parser::AndExpr::contains_and ( ) const
inlineoverridevirtual

Checks if the expression contains a logical AND operation.

Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.

◆ contains_not()

bool wmtk::components::image_simulation::expression_parser::AndExpr::contains_not ( ) const
inlineoverridevirtual

Checks if the expression contains a logical NOT operation.

Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.

◆ contains_or()

bool wmtk::components::image_simulation::expression_parser::AndExpr::contains_or ( ) const
inlineoverridevirtual

Checks if the expression contains a logical OR operation.

Reimplemented from wmtk::components::image_simulation::expression_parser::Expression.

◆ eval()

bool wmtk::components::image_simulation::expression_parser::AndExpr::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::AndExpr::tag_names_involved ( ) const
inlineoverridevirtual

◆ tags_involved()

CellTag wmtk::components::image_simulation::expression_parser::AndExpr::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::AndExpr::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: