Gecode::Int::Element::Int< ViewA, ViewB > Class Template Reference
[Integer propagators]
#include <element.hh>
Inherits Gecode::Propagator.
Detailed Description
template<class ViewA, class ViewB>
class Gecode::Int::Element::Int< ViewA, ViewB >
Element propagator for array of integers
Requires
#include "gecode/int/element.hh"
Definition at line 59 of file element.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Perform copying during cloning. | |
virtual PropCost | cost (void) const |
Const function (return PC_BINARY_HI). | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
virtual void | flush (void) |
Flush cached index-value map. | |
virtual size_t | size (void) const |
Return size of index-value map. | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, IntSharedArray &i, ViewA x0, ViewB x1) |
Post propagator for . | |
Protected Member Functions | |
Int (Space *home, bool shared, Int &p) | |
Constructor for cloning p. | |
Int (Space *home, IntSharedArray &i, ViewA x0, ViewB x1) | |
Constructor for creation. | |
Protected Attributes | |
ViewA | x0 |
View for index. | |
ViewB | x1 |
View for result. | |
IntSharedArray | c |
Shared array of integer values. | |
IdxValMap * | ivm |
Cache for index-value map. |
Constructor & Destructor Documentation
|
Constructor for cloning p.
|
|
Constructor for creation.
|
Member Function Documentation
|
Perform copying during cloning.
Implements Gecode::Actor. |
|
Const function (return PC_BINARY_HI).
Implements Gecode::Propagator. |
|
Perform propagation.
Implements Gecode::Propagator. |
|
Post propagator for .
|
|
Flush cached index-value map.
Reimplemented from Gecode::Actor. |
|
Return size of index-value map.
|
|
Delete propagator and return its size.
Reimplemented from Gecode::Actor. |
Member Data Documentation
|
View for index.
Definition at line 62 of file element.hh. |
|
View for result.
Definition at line 64 of file element.hh. |
|
Shared array of integer values.
Definition at line 66 of file element.hh. |
|
Cache for index-value map.
Definition at line 68 of file element.hh. |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 3512)
- gecode/int/element/int.icc (Revision: 3512)