open-var-list.hpp
Go to the documentation of this file.
void notice(Actor &a, ActorProperty p, bool duplicate=false)
Notice actor property.
Definition core.hpp:3373
Exception: Arguments contain same variable multiply
Definition exception.hpp:80
ModEvent gq(Space &home, int n)
Restrict domain values to be greater or equal than n.
Definition int.hpp:139
OpenMaterialize(Space &home, OpenMaterialize &p)
Definition open-var-list.hpp:234
virtual PropCost cost(const Space &, const ModEventDelta &) const
Cost function.
Definition open-var-list.hpp:247
virtual size_t dispose(Space &home)
Delete actor and return its size.
Definition open-var-list.hpp:269
virtual ExecStatus propagate(Space &home, const ModEventDelta &)
Propagation function.
Definition open-var-list.hpp:259
OpenVarList< Var >::Object Object
Definition open-var-list.hpp:226
OpenMaterialize(Home home, Object *source)
Definition open-var-list.hpp:229
static void post(Home home, Object *source)
Definition open-var-list.hpp:277
Exception: Variable created with empty domain
Definition exception.hpp:59
Transition transition
Definition open-var-list.hpp:42
Functions(Factory create0, Transition transition0)
Definition open-var-list.hpp:44
Object(Home home, Factory create, Transition t, int max)
Definition open-var-list.hpp:93
static int checked_maximum(int max)
Definition open-var-list.hpp:63
void reschedule(Space &home, Propagator &p)
Definition open-var-list.hpp:213
static Factory checked(Factory create)
Definition open-var-list.hpp:71
void cancel(Space &home, Propagator &p)
Definition open-var-list.hpp:208
void subscribe(Space &home, Propagator &p)
Definition open-var-list.hpp:203
void materialize(Space &home, int size)
Definition open-var-list.hpp:184
Object(Home home, Factory create, int max)
Definition open-var-list.hpp:84
static Transition checked(Transition t)
Definition open-var-list.hpp:78
virtual size_t dispose(Space &home)
Delete actor and return its size.
Definition open-var-list.hpp:125
void materialize(Space &home, int n)
Materialize the first n variables.
Definition open-var-list.hpp:350
void update(Space &home, OpenVarList< Var > &s)
Update during cloning.
Definition open-var-list.hpp:317
int known_length(void) const
Return the number of constructed positions (their values may be unassigned).
Definition open-var-list.hpp:323
std::function< Var(Space &home, int i)> Factory
Function creating the variable at position i in home.
Definition int.hh:948
void cancel(Space &home, Propagator &p)
Cancel the subscription of p to the addition of positions.
Definition open-var-list.hpp:391
void reschedule(Space &home, Propagator &p)
Reschedule p for the addition of positions.
Definition open-var-list.hpp:397
void subscribe(Space &home, Propagator &p)
Subscribe p to the addition of positions.
Definition open-var-list.hpp:385
std::function< void(Space &home, OpenVarList< Var > x, int i)> Transition
Function called after materializing position i.
Definition int.hh:959
Var get(Space &home, int i)
Require and return the variable at position i.
Definition open-var-list.hpp:357
Var operator[](int i) const
Return variable at position i, where 0 <= i < known_length().
Definition open-var-list.hpp:329
std::unordered_set< const void * > VarImpSet
Definition open-var-list.hpp:55
void materialize(Space &home, int n)
Require and construct at least the first n positions.
Definition open-var-list.hpp:457
View operator[](int i) const
Return the view at constructed position i.
Definition open-var-list.hpp:443
void reschedule(Space &home, Propagator &p)
Reschedule p for construction of positions.
Definition open-var-list.hpp:476
int known_length(void) const
Return the number of constructed positions.
Definition open-var-list.hpp:437
void update(Space &home, OpenViewList< View > &s)
Update during cloning.
Definition open-var-list.hpp:431
void cancel(Space &home, Propagator &p)
Cancel the subscription of p to construction of positions.
Definition open-var-list.hpp:470
void subscribe(Space &home, Propagator &p)
Subscribe p to construction of positions.
Definition open-var-list.hpp:464
static PropCost linear(PropCost::Mod m, unsigned int n)
Linear complexity for modifier pcm and size measure n.
Definition core.hpp:5080
Suppress global propagator information during scoped posting.
Definition core.hpp:2070
void update(Space &home, VarImpVar< VarImp > &y)
Update this variable to be a clone of variable y.
Definition var.hpp:116
void cancel(Space &home, Propagator &p, PropCond pc)
Cancel subscription of propagator p with propagation condition pc to view.
Definition view.hpp:527
void reschedule(Space &home, Propagator &p, PropCond pc)
Re-schedule propagator p with propagation condition pc.
Definition view.hpp:532
void subscribe(Space &home, Propagator &p, PropCond pc, bool schedule=true)
Subscribe propagator p with propagation condition pc to view.
Definition view.hpp:521
void ignore(Actor &a, ActorProperty p, bool duplicate=false)
Ignore actor property.
Definition core.hpp:4321
void nonnegative(int n, const char *l)
Check whether n is in range and nonnegative, otherwise throw out of limits with information l.
Definition limits.hpp:68
void check(int n, const char *l)
Check whether n is in range, otherwise throw out of limits with information l.
Definition limits.hpp:46
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:99
MinusView open_list_view< MinusView >(IntVar x)
Definition open-var-list.hpp:414
View open_list_view(typename View::VarType x)
Construct an element view without changing the shared source list.
Definition open-var-list.hpp:408
Gecode toplevel namespace
void min(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:67
void max(Home home, FloatVar x0, FloatVar x1, FloatVar x2)
Post propagator for .
Definition arithmetic.cpp:49
