
Element propagator for array of integers More...
#include <element.hh>
Classes | |
| class | ByVal |
| Sorting pointers to (index,value) pairs in value order. More... | |
| class | IdxVal |
| Linked index-value pairs. More... | |
| class | IterIdxUnmark |
| Value iterator for indices in index-value map. More... | |
| class | IterVal |
| Value iterator for values in index-value map. More... | |
| class | IterValUnmark |
| Value iterator for values in index-value map. More... | |
Public Member Functions | |
| virtual Actor * | copy (Space &home, bool share) |
| Perform copying during cloning. More... | |
| virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
| Const function (defined as high binary) More... | |
| virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
| Perform propagation. More... | |
| virtual size_t | dispose (Space &home) |
| Delete propagator and return its size. More... | |
Public Member Functions inherited from Gecode::Propagator | |
| ModEventDelta | modeventdelta (void) const |
| Return the modification event delta. More... | |
| virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
| Advise function. More... | |
| double | afc (const Space &home) const |
| Return the accumlated failure count. More... | |
Public Member Functions inherited from Gecode::Actor | |
Static Public Member Functions | |
| static ExecStatus | post (Home home, IntSharedArray &i, V0 x0, V1 x1) |
Post propagator for . More... | |
Static Public Member Functions inherited from Gecode::Actor | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. More... | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. More... | |
Protected Types | |
| typedef Gecode::Support::IntTypeTraits< Idx >::utype | IdxSize |
| Type for index size. More... | |
| typedef Gecode::Support::IntTypeTraits< Val >::utype | ValSize |
| Type for value size. More... | |
Protected Member Functions | |
| void | prune_idx (void) |
| Prune index according to x0. More... | |
| void | prune_val (void) |
| Prune values according to x1. More... | |
| Int (Space &home, bool shared, Int &p) | |
| Constructor for cloning p. More... | |
| Int (Home home, IntSharedArray &i, V0 x0, V1 x1) | |
| Constructor for creation. More... | |
Protected Member Functions inherited from Gecode::Propagator | |
| Propagator (Home home) | |
| Constructor for posting. More... | |
| Propagator (Space &home, bool share, Propagator &p) | |
| Constructor for cloning p. More... | |
| Propagator * | fwd (void) const |
| Return forwarding pointer during copying. More... | |
Static Protected Member Functions | |
| static ExecStatus | assigned_val (Space &home, IntSharedArray &c, V0 x0, V1 x1) |
| Prune when x1 is assigned. More... | |
Protected Attributes | |
| V0 | x0 |
| View for index. More... | |
| IdxSize | s0 |
| Size of x0 at last execution. More... | |
| V1 | x1 |
| View for result. More... | |
| ValSize | s1 |
| Size of x1 at last execution. More... | |
| IntSharedArray | c |
| Shared array of integer values. More... | |
| IdxVal * | iv |
| The index-value data structure. More... | |
Element propagator for array of integers
Requires
Definition at line 61 of file element.hh.
|
protected |
Type for index size.
Definition at line 158 of file element.hh.
|
protected |
Type for value size.
Definition at line 164 of file element.hh.
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |
|
staticprotected |
|
virtual |
|
virtual |
Const function (defined as high binary)
Implements Gecode::Propagator.
|
virtual |
|
static |
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
|
protected |
View for index.
Definition at line 156 of file element.hh.
|
protected |
Size of x0 at last execution.
Definition at line 160 of file element.hh.
|
protected |
View for result.
Definition at line 162 of file element.hh.
|
protected |
Size of x1 at last execution.
Definition at line 166 of file element.hh.
|
protected |
Shared array of integer values.
Definition at line 168 of file element.hh.
|
protected |
The index-value data structure.
Definition at line 170 of file element.hh.