Boolean expressions. More...
#include <gecode/minimodel.hh>
Classes | |
| class | Misc |
| Miscealloneous Boolean expressions. More... | |
| class | Node |
| Node for Boolean expression More... | |
Public Types | |
| enum | NodeType { NT_VAR , NT_NOT , NT_AND , NT_OR , NT_EQV , NT_RLIN , NT_RLINFLOAT , NT_RSET , NT_MISC , NT_CONST } |
| Type of Boolean expression. More... | |
Public Member Functions | |
| BoolExpr (void) | |
| BoolExpr (const BoolExpr &e) | |
| Copy constructor. | |
| BoolExpr (const BoolExpr &l, NodeType t, const BoolExpr &r) | |
| Construct expression for type and subexpresssions. | |
| template<class Bool, std::enable_if_t< std::is_same< Bool, bool >::value, int > = 0> | |
| BoolExpr (Bool value) | |
| BoolExpr (const BoolVar &x) | |
| Construct expression for variable. | |
| BoolExpr (const BoolExpr &e, NodeType t) | |
| Construct expression for negation. | |
| BoolExpr (const LinIntRel &rl) | |
| Construct expression for reified linear relation. | |
| BoolExpr (const LinFloatRel &rfl) | |
| Construct expression for reified float relation. | |
| BoolExpr (const SetRel &rs) | |
| Construct expression for reified set relation. | |
| BoolExpr (const SetCmpRel &rs) | |
| Construct expression for reified set relation. | |
| BoolExpr (Misc *m) | |
| Construct expression for miscellaneous Boolean expression. | |
| BoolVar | expr (Home home, const IntPropLevels &ipls) const |
| Post propagators for expression. | |
| void | rel (Home home, const IntPropLevels &ipls) const |
| Post propagators for relation. | |
| const BoolExpr & | operator= (const BoolExpr &e) |
| Assignment operator. | |
| ~BoolExpr (void) | |
| Destructor. | |
Detailed Description
Boolean expressions.
Definition at line 1353 of file minimodel.hh.
Member Enumeration Documentation
◆ NodeType
Type of Boolean expression.
Definition at line 1356 of file minimodel.hh.
Constructor & Destructor Documentation
◆ BoolExpr() [1/11]
| Gecode::BoolExpr::BoolExpr | ( | void | ) |
Default constructor
Creates an empty accumulator for direct use with the public && and || accumulation operators. In every other context, the expression is invalid; materialization throws MiniModel::TooFewArguments.
Definition at line 131 of file bool-expr.cpp.
◆ BoolExpr() [2/11]
| Gecode::BoolExpr::BoolExpr | ( | const BoolExpr & | e | ) |
Copy constructor.
Definition at line 133 of file bool-expr.cpp.
◆ BoolExpr() [3/11]
| Gecode::BoolExpr::BoolExpr | ( | const BoolExpr & | l, |
| NodeType | t, | ||
| const BoolExpr & | r ) |
Construct expression for type and subexpresssions.
Definition at line 145 of file bool-expr.cpp.
◆ BoolExpr() [4/11]
|
inline |
Construct expression for a Boolean constant
Only bool arguments are accepted, so integer expressions do not become ambiguous through an implicit conversion to bool.
Definition at line 44 of file bool-expr.hpp.
◆ BoolExpr() [5/11]
| Gecode::BoolExpr::BoolExpr | ( | const BoolVar & | x | ) |
Construct expression for variable.
Definition at line 137 of file bool-expr.cpp.
◆ BoolExpr() [6/11]
| Gecode::BoolExpr::BoolExpr | ( | const BoolExpr & | e, |
| NodeType | t ) |
Construct expression for negation.
Definition at line 173 of file bool-expr.cpp.
◆ BoolExpr() [7/11]
| Gecode::BoolExpr::BoolExpr | ( | const LinIntRel & | rl | ) |
Construct expression for reified linear relation.
Definition at line 189 of file bool-expr.cpp.
◆ BoolExpr() [8/11]
| Gecode::BoolExpr::BoolExpr | ( | const LinFloatRel & | rfl | ) |
Construct expression for reified float relation.
Definition at line 199 of file bool-expr.cpp.
◆ BoolExpr() [9/11]
| Gecode::BoolExpr::BoolExpr | ( | const SetRel & | rs | ) |
Construct expression for reified set relation.
Definition at line 210 of file bool-expr.cpp.
◆ BoolExpr() [10/11]
| Gecode::BoolExpr::BoolExpr | ( | const SetCmpRel & | rs | ) |
Construct expression for reified set relation.
Definition at line 219 of file bool-expr.cpp.
◆ BoolExpr() [11/11]
|
explicit |
Construct expression for miscellaneous Boolean expression.
Definition at line 229 of file bool-expr.cpp.
◆ ~BoolExpr()
| Gecode::BoolExpr::~BoolExpr | ( | void | ) |
Destructor.
Definition at line 257 of file bool-expr.cpp.
Member Function Documentation
◆ expr()
| BoolVar Gecode::BoolExpr::expr | ( | Home | home, |
| const IntPropLevels & | ipls ) const |
Post propagators for expression.
Definition at line 624 of file bool-expr.cpp.
◆ rel()
| void Gecode::BoolExpr::rel | ( | Home | home, |
| const IntPropLevels & | ipls ) const |
Post propagators for relation.
Definition at line 630 of file bool-expr.cpp.
◆ operator=()
| const BoolExpr & Gecode::BoolExpr::operator= | ( | const BoolExpr & | e | ) |
Assignment operator.
Definition at line 245 of file bool-expr.cpp.
The documentation for this class was generated from the following files:
- gecode/minimodel.hh
- gecode/minimodel/bool-expr.cpp
- gecode/minimodel/bool-expr.hpp
