registry.cpp File Reference
#include <gecode/flatzinc/registry-internal.hh>#include <gecode/kernel.hh>#include <gecode/int.hh>#include <gecode/minimodel.hh>#include <gecode/float.hh>#include <gecode/flatzinc.hh>#include <gecode/flatzinc/blackbox.hh>Go to the source code of this file.
Namespaces | |
| namespace | Gecode |
| Gecode toplevel namespace | |
| namespace | Gecode::FlatZinc |
| Interpreter for the FlatZinc language. | |
| namespace | Gecode::FlatZinc::RegistryDetail |
Macros | |
| #define | BOOL_OP(op) |
| #define | BOOL_ARRAY_OP(op) |
Functions | |
| Registry & | Gecode::FlatZinc::registry (void) |
| Return global registry object. | |
| void | Gecode::FlatZinc::RegistryDetail::post_int_in_reif (FlatZincSpace &s, const ConExpr &ce, AST::Node *ann) |
| void | Gecode::FlatZinc::RegistryDetail::post_int_in_imp (FlatZincSpace &s, const ConExpr &ce, AST::Node *ann) |
Macro Definition Documentation
◆ BOOL_OP
| #define BOOL_OP | ( | op | ) |
Value:
BoolVar b0 = s.arg2BoolVar(ce[0]); \
BoolVar b1 = s.arg2BoolVar(ce[1]); \
if (ce[2]->isBool()) { \
rel(s, b0, op, b1, ce[2]->getBool(), s.ann2ipl(ann)); \
} else { \
rel(s, b0, op, b1, s.bv[ce[2]->getBoolVar()], s.ann2ipl(ann)); \
}
Definition at line 567 of file registry.cpp.
◆ BOOL_ARRAY_OP
| #define BOOL_ARRAY_OP | ( | op | ) |
Value:
BoolVarArgs bv = s.arg2boolvarargs(ce[0]); \
if (ce.size()==1) { \
rel(s, op, bv, 1, s.ann2ipl(ann)); \
} else if (ce[1]->isBool()) { \
rel(s, op, bv, ce[1]->getBool(), s.ann2ipl(ann)); \
} else { \
rel(s, op, bv, s.bv[ce[1]->getBoolVar()], s.ann2ipl(ann)); \
}
Definition at line 576 of file registry.cpp.
