Geogram
Version 1.9.1
A programming library of geometric algorithms
|
A simple parser for boolean expressions. More...
#include <geogram/basic/boolean_expression.h>
Public Member Functions | |
BooleanExpression (const std::string &expr) | |
Constructs a boolean expression. More... | |
bool | operator() (index_t x) |
Evaluates the boolean expression. More... | |
Protected Member Functions | |
bool | parse_or () |
bool | parse_and () |
bool | parse_factor () |
bool | parse_variable () |
char | cur_char () const |
void | next_char () |
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 | ) |
Evaluates the boolean expression.
[in] | x | the different bits of x correspond to the variables A..Z or x0..x31. |