34 namespace Gecode {
namespace Int {
namespace Branch {
47 return (a == 0) ? x.eq(home,n) : x.nq(home,n);
60 int n, std::ostream& o)
const {
61 o <<
"var[" << i <<
"] " 62 << ((a == 0) ?
"=" :
"!=") <<
" " <<
n;
76 return (a == 0) ? x.lq(home,n) : x.gr(home,n);
89 int n, std::ostream& o)
const {
90 o <<
"var[" << i <<
"] " 91 << ((a == 0) ?
"<=" :
">") <<
" " <<
n;
105 return (a == 0) ? x.gq(home,n) : x.le(home,n);
118 int n, std::ostream& o)
const {
119 o <<
"var[" << i <<
"] " 120 << ((a == 0) ?
">=" :
"<") <<
" " <<
n;
134 return (a == 0) ? x.gr(home,n) : x.lq(home,n);
147 int n, std::ostream& o)
const {
148 o <<
"var[" << i <<
"] " 149 << ((a == 0) ?
">" :
"<=") <<
" " <<
n;
void print(const Space &home, unsigned int a, View x, int i, int n, std::ostream &o) const
Print on o the alternative with view x at position i and value n.
No-good literal for less or equal.
ValCommitGr(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
No-good literal for greater or equal.
void print(const Space &home, unsigned int a, View x, int i, int n, std::ostream &o) const
Print on o the alternative with view x at position i and value n.
NGL * ngl(Space &home, unsigned int a, View x, int n) const
Create no-good literal for alternative a.
int ModEvent
Type for modification events.
ValCommitEq(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
ModEvent commit(Space &home, unsigned int a, View x, int i, int n)
Commit view x at position i to value n for alternative a.
Value commit class for less or equal.
No-good literal for equality.
Value commit class for greater.
Base class for value commit.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
NGL * ngl(Space &home, unsigned int a, View x, int n) const
Create no-good literal for alternative a.
ValCommitGq(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
Value commit class for greater or equal.
NGL * ngl(Space &home, unsigned int a, View x, int n) const
Create no-good literal for alternative a.
void print(const Space &home, unsigned int a, View x, int i, int n, std::ostream &o) const
Print on o the alternative with view x at position i and value n.
Value commit class for equality.
NGL * ngl(Space &home, unsigned int a, View x, int n) const
Create no-good literal for alternative a.
void print(const Space &home, unsigned int a, View x, int i, int n, std::ostream &o) const
Print on o the alternative with view x at position i and value n.
Value branching information.
ModEvent commit(Space &home, unsigned int a, View x, int i, int n)
Commit view x at position i to value n for alternative a.
ModEvent commit(Space &home, unsigned int a, View x, int i, int n)
Commit view x at position i to value n for alternative a.
struct Gecode::@585::NNF::@62::@64 a
For atomic nodes.
Post propagator for SetVar x
Gecode toplevel namespace
ValCommitLq(Space &home, const ValBranch< Var > &vb)
Constructor for initialization.
ModEvent commit(Space &home, unsigned int a, View x, int i, int n)
Commit view x at position i to value n for alternative a.
No-good literal recorded during search.