Gecode::Int::Circuit::Dom< View > Class Template Reference
[Integer propagators]
#include <circuit.hh>
Inherits Gecode::Int::Circuit::Base< View >.
Detailed Description
template<class View>
class Gecode::Int::Circuit::Dom< View >
"Domain consistent" circuit propagator
Propagates domain consistent distinct, checks that the induced variable value graph is stronlgy connected, and prunes too shot cycles.
Requires
#include "gecode/int/circuit.hh"
Definition at line 131 of file circuit.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (ModEventDelta med) const |
Cost function. | |
virtual ExecStatus | propagate (Space *home, ModEventDelta med) |
Perform propagation. | |
virtual Reflection::ActorSpec | spec (const Space *home, Reflection::VarMap &m) const |
Specification for this propagator. | |
Static Public Member Functions | |
static Support::Symbol | ati (void) |
Name of this propagator. | |
static void | post (Space *home, Reflection::VarMap &vars, const Reflection::ActorSpec &spec) |
Post propagator according to specification. | |
static ExecStatus | post (Space *home, ViewArray< View > &x) |
Post propagator for circuit on x. | |
Protected Member Functions | |
Dom (Space *home, bool share, Dom &p) | |
Constructor for cloning p. | |
Dom (Space *home, ViewArray< View > &x) | |
Constructor for posting. | |
Protected Attributes | |
Distinct::DomCtrl< View > | dc |
Propagation controller for propagating distinct. |
Constructor & Destructor Documentation
template<class View>
Gecode::Int::Circuit::Dom< View >::Dom | ( | Space * | home, | |
bool | share, | |||
Dom< View > & | p | |||
) | [inline, protected] |
template<class View>
Gecode::Int::Circuit::Dom< View >::Dom | ( | Space * | home, | |
ViewArray< View > & | x | |||
) | [inline, protected] |
Member Function Documentation
template<class View>
Actor * Gecode::Int::Circuit::Dom< View >::copy | ( | Space * | home, | |
bool | share | |||
) | [inline, virtual] |
template<class View>
PropCost Gecode::Int::Circuit::Dom< View >::cost | ( | ModEventDelta | med | ) | const [inline, virtual] |
Cost function.
If in stage for naive value propagation, the cost is dynamic PC_LINEAR_HI. Otherwise it is dynamic PC_QUADRATIC_LO.
Reimplemented from Gecode::NaryPropagator< View, PC_INT_DOM >.
template<class View>
ExecStatus Gecode::Int::Circuit::Dom< View >::propagate | ( | Space * | home, | |
ModEventDelta | med | |||
) | [inline, virtual] |
template<class View>
Reflection::ActorSpec Gecode::Int::Circuit::Dom< View >::spec | ( | const Space * | home, | |
Reflection::VarMap & | m | |||
) | const [inline, virtual] |
template<class View>
Support::Symbol Gecode::Int::Circuit::Dom< View >::ati | ( | void | ) | [inline, static] |
template<class View>
void Gecode::Int::Circuit::Dom< View >::post | ( | Space * | home, | |
Reflection::VarMap & | vars, | |||
const Reflection::ActorSpec & | spec | |||
) | [inline, static] |
template<class View>
ExecStatus Gecode::Int::Circuit::Dom< View >::post | ( | Space * | home, | |
ViewArray< View > & | x | |||
) | [inline, static] |
Member Data Documentation
template<class View>
Distinct::DomCtrl<View> Gecode::Int::Circuit::Dom< View >::dc [protected] |
The documentation for this class was generated from the following files:
- gecode/int/circuit.hh (Revision: 7285)
- gecode/int/circuit/dom.icc (Revision: 6017)