Gecode::Int::Distinct::DomCtrl< View > Class Template Reference
[Integer propagators]
#include <distinct.hh>
Detailed Description
template<class View>
class Gecode::Int::Distinct::DomCtrl< View >
Propagation controller for domain consistent distinct.
The propagation controller provides convenient access to performing incremental domain consistent distinct propagation so that the routines can be reused easily.
Requires
#include "gecode/int/distinct.hh"
Definition at line 197 of file distinct.hh.
Public Member Functions | |
DomCtrl (void) | |
Initialize with non-initialized view-value graph. | |
bool | available (void) |
Check whether a view-value graph is available. | |
ExecStatus | init (Space *home, int n, View *x) |
Initialize view-value graph for views x. | |
ExecStatus | sync (void) |
Synchronize available view-value graph. | |
ExecStatus | propagate (Space *home, bool &assigned) |
Perform propagation, assigned is true if a view gets assigned. | |
Protected Attributes | |
ViewValGraph | vvg |
Propagation is performed on a view-value graph. | |
Classes | |
class | ViewValGraph |
View-value graph for propagation. More... |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Distinct::DomCtrl< View >::DomCtrl | ( | void | ) | [inline] |
Member Function Documentation
template<class View>
bool Gecode::Int::Distinct::DomCtrl< View >::available | ( | void | ) | [inline] |
template<class View>
ExecStatus Gecode::Int::Distinct::DomCtrl< View >::init | ( | Space * | home, | |
int | n, | |||
View * | x | |||
) | [inline] |
template<class View>
ExecStatus Gecode::Int::Distinct::DomCtrl< View >::sync | ( | void | ) | [inline] |
template<class View>
ExecStatus Gecode::Int::Distinct::DomCtrl< View >::propagate | ( | Space * | home, | |
bool & | assigned | |||
) | [inline] |
Member Data Documentation
template<class View>
ViewValGraph Gecode::Int::Distinct::DomCtrl< View >::vvg [protected] |
The documentation for this class was generated from the following files:
- gecode/int/distinct.hh (Revision: 7285)
- gecode/int/distinct/dom.icc (Revision: 7359)