open.hpp
Go to the documentation of this file.
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Definition core.hpp:3373
Standard view/value selectors over the materialized prefix.
Definition open.hpp:43
int value(const Choice &c, unsigned int a) const
Definition open.hpp:126
static const Choice * value_choice(const Brancher &, int, BoolView)
Definition open.hpp:120
OpenListBrancher(Space &home, OpenListBrancher &b)
Definition open.hpp:71
virtual void print(const Space &home, const Choice &c, unsigned int a, std::ostream &o) const
Print branch for choice c and alternative a.
Definition open.hpp:212
virtual const Choice * choice(const Space &, Archive &e)
Return choice from e.
Definition open.hpp:158
static const Choice * value_choice(const Brancher &b, int i, IntView x)
Definition open.hpp:115
virtual NGL * ngl(Space &home, const Choice &c, unsigned int a) const
Create no-good literal for choice c and alternative a.
Definition open.hpp:196
virtual ExecStatus commit(Space &home, const Choice &c, unsigned int a)
Commit for choice c and alternative a.
Definition open.hpp:172
SharedData< VarValPrint< Var, int > > printer
Definition open.hpp:51
virtual bool status(const Space &home) const
Check status of brancher, return true if alternatives left.
Definition open.hpp:134
ValSelCommitBase< View, int > * vsc
Binary value selector, or null for one alternative per domain value.
Definition open.hpp:49
int position(Space &home)
Select from a temporary array, keeping positions stable across growth.
Definition open.hpp:93
OpenListBrancher(Home home, OpenViewList< View > list0, ViewSel< View > *vs0[n], ValSelCommitBase< View, int > *vsc0, bool values_min0, bool select_first0, BranchFilter< Var > bf, VarValPrint< Var, int > vvp)
Definition open.hpp:57
bool values_min
Whether enumerated domain values are tried in increasing order.
Definition open.hpp:53
static void post(Home home, OpenViewList< View > list, VarBranch vars[n], ValSelCommitBase< View, int > *vsc, bool values_min, BranchFilter< Var > bf, VarValPrint< Var, int > vvp)
Definition open.hpp:257
Choice storing position and values for integer views
Definition view-values.hpp:37
int val(unsigned int a) const
Return value to branch with for alternative a.
Definition view-values.hpp:69
Exception: Unknown value or variable selection passed as argument
Definition exception.hpp:108
int known_length(void) const
Return the number of constructed positions.
Definition open-var-list.hpp:437
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
Definition core.hpp:4321
Integer branchers.
ViewSel< IntView > * viewsel(Space &home, const IntVarBranch &ivb)
Return view selectors for integer views.
Definition view-sel.cpp:39
ValSelCommitBase< IntView, int > * open_valselcommit(Home home, IntValBranch vals, bool &values_min)
Select binary branching or enumeration of integer domain values.
Definition open.hpp:299
void post_open_brancher(Home home, OpenViewList< View > list, VarBranch vars[n], ValSelCommitBase< View, int > *vsc, bool values_min, BranchFilter< typename View::VarType > bf, VarValPrint< typename View::VarType, int > vvp)
Choose the native filtered or unfiltered brancher policy.
Definition open.hpp:316
void check_open_selector(IntVarBranch vars, bool open)
Reject fixed-position statistics while new variables can still appear.
Definition open.hpp:272
ValSelCommitBase< IntView, int > * valselcommit(Space &home, const IntValBranch &ivb)
Return value and commit for integer views.
Definition val-sel-commit.cpp:39
Gecode toplevel namespace
std::function< bool(const Space &home, Var x, int i)> BranchFilter
Function type for branch filter functions.
Definition filter.hpp:40
std::function< void(const Space &home, const Brancher &b, unsigned int a, Var x, int i, const Val &m, std::ostream &o)> VarValPrint
Function type for printing variable and value selection.
Definition print.hpp:40
TFE post(PropagatorGroup g)
Only post functions (but not propagators) from g are considered.
Definition filter.cpp:138
