|
Geogram Version 1.10.2
A programming library of geometric algorithms
|
A simple parser for boolean expressions. More...
#include <geogram/basic/boolean_expression.h>
Classes | |
| struct | Context |
| Stores the state of a current parsing operation. More... | |
Public Member Functions | |
| BooleanExpression (const std::string &expr) | |
| Constructs a boolean expression. | |
| bool | operator() (index_t x) const |
| Evaluates the boolean expression. | |
Protected Member Functions | |
| bool | parse_or (Context &C) const |
| bool | parse_and (Context &C) const |
| bool | parse_factor (Context &C) const |
| bool | parse_variable (Context &C) const |
A simple parser for boolean expressions.
Definition at line 57 of file boolean_expression.h.
| GEO::BooleanExpression::BooleanExpression | ( | const std::string & | expr | ) |
Constructs a boolean expression.
| [in] | expr | the expression, with the following syntax:
|
| bool GEO::BooleanExpression::operator() | ( | index_t | x | ) | const |
Evaluates the boolean expression.
| [in] | x | the different bits of x correspond to the variables A..Z or x0..x31. |