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
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 | |||
) | [virtual] |
template<class ViewA, class ViewB>
PropCost Gecode::Int::Element::Int< ViewA, ViewB >::cost | ( | void | ) | const [virtual] |
template<class ViewA, class ViewB>
ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::propagate | ( | Space * | home | ) | [virtual] |
template<class ViewA, class ViewB>
ExecStatus Gecode::Int::Element::Int< ViewA, ViewB >::post | ( | Space * | home, | |
IntSharedArray & | i, | |||
ViewA | x0, | |||
ViewB | x1 | |||
) | [static] |
template<class ViewA, class ViewB>
void Gecode::Int::Element::Int< ViewA, ViewB >::flush | ( | void | ) | [virtual] |
template<class ViewA, class ViewB>
size_t Gecode::Int::Element::Int< ViewA, ViewB >::size | ( | void | ) | const [virtual] |
template<class ViewA, class ViewB>
size_t Gecode::Int::Element::Int< ViewA, ViewB >::dispose | ( | Space * | home | ) | [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: 3246)
- gecode/int/element/int.icc (Revision: 3246)