
Item combining bin and size information. More...
#include <bin-packing.hh>
Public Member Functions | |
| Item (void) | |
| Default constructor. More... | |
| Item (IntView b, int s) | |
| Constructor. More... | |
| IntView | bin (void) const |
| Return bin of item. More... | |
| void | bin (IntView b) |
| Set bin of item to b. More... | |
| int | size (void) const |
| Return size of item. More... | |
| void | size (int s) |
| Set size of item to s. More... | |
| void | update (Space &home, bool share, Item &i) |
| Update item during cloning. More... | |
Public Member Functions inherited from Gecode::DerivedView< IntView > | |
| VarImpType * | varimp (void) const |
| Return variable implementation of view. More... | |
| IntView | base (void) const |
| Return view from which this view is derived. More... | |
| unsigned int | degree (void) const |
| Return degree (number of subscribed propagators) More... | |
| double | afc (const Space &home) const |
| Return accumulated failure count. More... | |
| bool | assigned (void) const |
| Test whether view is assigned. More... | |
| void | subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true) |
| Subscribe propagator p with propagation condition pc to view. More... | |
| void | subscribe (Space &home, Advisor &a) |
| Subscribe advisor a to view. More... | |
| void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p with propagation condition pc to view. More... | |
| void | cancel (Space &home, Advisor &a) |
| Cancel subscription of advisor a. More... | |
| void | update (Space &home, bool share, DerivedView< IntView > &y) |
| Update this view to be a clone of view y. More... | |
Protected Attributes | |
| int | s |
| Size of item. More... | |
Protected Attributes inherited from Gecode::DerivedView< IntView > | |
| IntView | x |
| View from which this view is derived. More... | |
Additional Inherited Members | |
Public Types inherited from Gecode::DerivedView< IntView > | |
| typedef IntView::VarImpType | VarImpType |
| The variable implementation type belonging to the View. More... | |
| typedef IntView::VarType | VarType |
| The variable type belonging to the View. More... | |
Static Public Member Functions inherited from Gecode::DerivedView< IntView > | |
| static bool | varderived (void) |
| Return whether this view is derived from a VarImpView. More... | |
| static void | schedule (Space &home, Propagator &p, ModEvent me) |
| Schedule propagator p with modification event me. More... | |
| static ModEvent | me (const ModEventDelta &med) |
| Return modification event for view type in med. More... | |
| static ModEventDelta | med (ModEvent) |
| Translate modification event me to modification event delta for view. More... | |
| static ModEvent | modevent (const Delta &d) |
| Return modification event. More... | |
Protected Member Functions inherited from Gecode::DerivedView< IntView > | |
| DerivedView (void) | |
| Default constructor. More... | |
| DerivedView (const IntView &y) | |
| Initialize with view y. More... | |
Item combining bin and size information.
Definition at line 57 of file bin-packing.hh.
|
inline |
Default constructor.
Definition at line 45 of file propagate.hpp.
|
inline |
Constructor.
Definition at line 48 of file propagate.hpp.
|
inline |
Return bin of item.
Definition at line 52 of file propagate.hpp.
|
inline |
Set bin of item to b.
Definition at line 56 of file propagate.hpp.
|
inline |
Return size of item.
Definition at line 60 of file propagate.hpp.
|
inline |
Set size of item to s.
Definition at line 64 of file propagate.hpp.
Update item during cloning.
Definition at line 69 of file propagate.hpp.
|
protected |
Size of item.
Definition at line 61 of file bin-packing.hh.