|
| | SetVarImp (Space &home) |
| | Initialize with empty lower and full upper bound. More...
|
| |
| | SetVarImp (Space &home, int glbMin, int glbMax, int lubMin, int lubMax, unsigned int cardMin=0, unsigned int cardMax=Limits::card) |
| | Initialize with given bounds and cardinality. More...
|
| |
| | SetVarImp (Space &home, const IntSet &glbD, int lubMin, int lubMax, unsigned int cardMin, unsigned int cardMax) |
| | Initialize with given bounds and cardinality. More...
|
| |
| | SetVarImp (Space &home, int glbMin, int glbMax, const IntSet &lubD, unsigned int cardMin, unsigned int cardMax) |
| | Initialize with given bounds and cardinality. More...
|
| |
| | SetVarImp (Space &home, const IntSet &glbD, const IntSet &lubD, unsigned int cardMin, unsigned int cardMax) |
| | Initialize with given bounds and cardinality. More...
|
| |
|
| unsigned int | cardMin (void) const |
| | Return current cardinality minimum. More...
|
| |
| unsigned int | cardMax (void) const |
| | Return current cardinality maximum. More...
|
| |
| int | lubMin (void) const |
| | Return minimum of the least upper bound. More...
|
| |
| int | lubMax (void) const |
| | Return maximum of the least upper bound. More...
|
| |
| int | lubMinN (unsigned int n) const |
| | Return n -th smallest element in the least upper bound. More...
|
| |
| int | glbMin (void) const |
| | Return minimum of the greatest lower bound. More...
|
| |
| int | glbMax (void) const |
| | Return maximum of the greatest lower bound. More...
|
| |
| unsigned int | glbSize (void) const |
| | Return the size of the greatest lower bound. More...
|
| |
| unsigned int | lubSize (void) const |
| | Return the size of the least upper bound. More...
|
| |
|
| ModEvent | include (Space &home, int n) |
| | Include n in the greatest lower bound. More...
|
| |
| ModEvent | include (Space &home, int i, int j) |
| | Include the range in the greatest lower bound. More...
|
| |
| ModEvent | exclude (Space &home, int n) |
| | Exclude n from the least upper bound. More...
|
| |
| ModEvent | exclude (Space &home, int i, int j) |
| | Exclude the range from the least upper bound. More...
|
| |
| ModEvent | intersect (Space &home, int n) |
| | Exclude everything but n from the least upper bound. More...
|
| |
| ModEvent | intersect (Space &home, int i, int j) |
| | Exclude everything but the range from the least upper bound. More...
|
| |
| ModEvent | cardMin (Space &home, unsigned int n) |
| | Restrict cardinality to be at least n. More...
|
| |
| ModEvent | cardMax (Space &home, unsigned int n) |
| | Restrict cardinality to be at most n. More...
|
| |
|
| | SetVarImpBase (void) |
| | Constructor for creating static instance of variable. More...
|
| |
| | SetVarImpBase (Gecode::Space &home) |
| | Constructor for creating variable. More...
|
| |
| void | subscribe (Gecode::Space &home, Gecode::Propagator &p, Gecode::PropCond pc, bool assigned, bool schedule) |
| | Subscribe propagator p with propagation condition pc. More...
|
| |
| void | subscribe (Gecode::Space &home, Gecode::Advisor &a, bool assigned) |
| | Subscribe advisor a if assigned is false. More...
|
| |
| Gecode::ModEvent | notify (Gecode::Space &home, Gecode::ModEvent me, Gecode::Delta &d) |
| | Notify that variable implementation has been modified with modification event me and delta information d. More...
|
| |
| | VarImp (Space &home) |
| | Creation. More...
|
| |
| | VarImp (void) |
| | Creation of static instances. More...
|
| |
| VarImp * | next (void) const |
| | Return next copied variable. More...
|
| |
| | VarImp (Space &home, bool share, VarImp &x) |
| | Constructor for cloning. More...
|
| |
| bool | copied (void) const |
| | Is variable already copied. More...
|
| |
| VarImp * | forward (void) const |
| | Use forward pointer if variable already copied. More...
|
| |
| void | cancel (Space &home, Propagator &p, PropCond pc, bool assigned) |
| | Cancel subscription of propagator p with propagation condition pc. More...
|
| |
| void | cancel (Space &home, Advisor &a, bool assigned) |
| | Cancel subscription of advisor a. More...
|
| |
| void | subscribe (Space &home, Propagator &p, PropCond pc, bool assigned, ModEvent me, bool schedule) |
| | Subscribe propagator p with propagation condition pc. More...
|
| |
| void | subscribe (Space &home, Advisor &a, bool assigned) |
| | Subscribe advisor a to variable. More...
|
| |
| unsigned int | degree (void) const |
| | Return degree (number of subscribed propagators and advisors) More...
|
| |
| double | afc (const Space &home) const |
| | Return accumulated failure count (plus degree) More...
|
| |
| unsigned int | bits (void) const |
| | Provide access to free bits. More...
|
| |
| unsigned int & | bits (void) |
| | Provide access to free bits. More...
|
| |
| static void | schedule (Space &home, Propagator &p, ModEvent me, bool force=false) |
| | Schedule propagator p with modification event me. More...
|
| |
| static ModEvent | me (const ModEventDelta &med) |
| | Project modification event for this variable type from med. More...
|
| |
| static ModEventDelta | med (ModEvent me) |
| | Translate modification event me into modification event delta. More...
|
| |
| static ModEvent | me_combine (ModEvent me1, ModEvent me2) |
| | Combine modifications events me1 and me2. More...
|
| |
| static ModEvent | modevent (const Delta &d) |
| | Return modification event. More...
|
| |
| static void * | operator new (size_t, Space &) |
| | Allocate memory from space. More...
|
| |
| static void | operator delete (void *, Space &) |
| | Return memory to space. More...
|
| |
| static void | operator delete (void *) |
| | Needed for exceptions. More...
|
| |
| ActorLink ** | base |
| | Subscribed actors. More...
|
| |
| VarImp< Gecode::Set::SetVarImpConf > * | fwd |
| | Forwarding pointer. More...
|
| |
| unsigned int | idx [pc_max+1] |
| | Indices of subscribed actors. More...
|
| |
| VarImp< Gecode::Set::SetVarImpConf > * | next |
| | During cloning, points to the next copied variable. More...
|
| |
Finite integer set variable implementation.
Definition at line 434 of file var-imp.hpp.