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 70 of file element.hh.
Public Member Functions | |
| virtual Actor * | copy (Space *home, bool share) |
| Perform copying during cloning. | |
| virtual PropCost | cost (ModEventDelta med) const |
| Const function (return PC_BINARY_HI). | |
| virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
| Perform propagation. | |
| virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
| Specification for this propagator. | |
| virtual size_t | allocated (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 void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
| Post propagator according to specification. | |
| static Support::Symbol | ati (void) |
| Mangled name of this propagator. | |
| 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
template<class ViewA, class ViewB>
| Gecode::Int::Element::Int< ViewA, ViewB >::Int | ( | Space * | home, | |
| bool | shared, | |||
| Int< ViewA, ViewB > & | p | |||
| ) | [inline, protected] |
template<class ViewA, class ViewB>
| Gecode::Int::Element::Int< ViewA, ViewB >::Int | ( | Space * | home, | |
| IntSharedArray & | i, | |||
| ViewA | x0, | |||
| ViewB | x1 | |||
| ) | [inline, protected] |
Member Function Documentation
template<class ViewA, class ViewB>
| Actor * Gecode::Int::Element::Int< ViewA, ViewB >::copy | ( | Space * | home, | |
| bool | share | |||
| ) | [inline, virtual] |
template<class ViewA, class ViewB>
| PropCost Gecode::Int::Element::Int< ViewA, ViewB >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
template<class ViewA, class ViewB>
| ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::propagate | ( | Space * | home, | |
| ModEventDelta | med | |||
| ) | [inline, virtual] |
template<class ViewA, class ViewB>
| Reflection::ActorSpec Gecode::Int::Element::Int< ViewA, ViewB >::spec | ( | const Space * | home, | |
| Reflection::VarMap & | m | |||
| ) | const [inline, virtual] |
template<class ViewA, class ViewB>
| void Gecode::Int::Element::Int< ViewA, ViewB >::post | ( | Space * | home, | |
| Reflection::VarMap & | vars, | |||
| const Reflection::ActorSpec & | spec | |||
| ) | [inline, static] |
template<class ViewA, class ViewB>
| Support::Symbol Gecode::Int::Element::Int< ViewA, ViewB >::ati | ( | void | ) | [inline, static] |
template<class ViewA, class ViewB>
| ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::post | ( | Space * | home, | |
| IntSharedArray & | i, | |||
| ViewA | x0, | |||
| ViewB | x1 | |||
| ) | [inline, static] |
template<class ViewA, class ViewB>
| size_t Gecode::Int::Element::Int< ViewA, ViewB >::allocated | ( | void | ) | const [inline, virtual] |
template<class ViewA, class ViewB>
| size_t Gecode::Int::Element::Int< ViewA, ViewB >::dispose | ( | Space * | home | ) | [inline, virtual] |
Member Data Documentation
template<class ViewA, class ViewB>
ViewA Gecode::Int::Element::Int< ViewA, ViewB >::x0 [protected] |
template<class ViewA, class ViewB>
ViewB Gecode::Int::Element::Int< ViewA, ViewB >::x1 [protected] |
template<class ViewA, class ViewB>
IntSharedArray Gecode::Int::Element::Int< ViewA, ViewB >::c [protected] |
template<class ViewA, class ViewB>
IdxValMap* Gecode::Int::Element::Int< ViewA, ViewB >::ivm [protected] |
The documentation for this class was generated from the following files:
- gecode/int/element.hh (Revision: 7285)
- gecode/int/element/int.icc (Revision: 7295)

.