Gecode::Int::Regular::Dom< View > Class Template Reference
[Integer propagators]
#include <regular.hh>
Inherits Gecode::NaryPropagator< View, PC_INT_DOM >.
Detailed Description
template<class View>
class Gecode::Int::Regular::Dom< View >
Domain-consistent regular propagator.
The algorithm for the regular propagator is based on: Gilles Pesant, A Regular Language Membership Constraint for Finite Sequences of Variables, CP 2004. Pages 482-495, LNCS 3258, Springer-Verlag, 2004.
Requires
#include "gecode/int/regular.hh"
Definition at line 46 of file regular.hh.
Public Member Functions | |
virtual Actor * | copy (Space *home, bool share) |
Copy propagator during cloning. | |
virtual PropCost | cost (void) const |
Cost function (defined as dynamic PC_LINEAR_HI). | |
virtual ExecStatus | propagate (Space *home) |
Perform propagation. | |
virtual void | flush (void) |
Flush layered graph. | |
virtual size_t | size (void) const |
Returns size of layered graph. | |
virtual size_t | dispose (Space *home) |
Delete propagator and return its size. | |
Static Public Member Functions | |
static ExecStatus | post (Space *home, ViewArray< View > &x, DFA &d) |
Post propagator on views x and DFA d. | |
Protected Member Functions | |
Dom (Space *home, bool shared, Dom< View > &p) | |
Constructor for cloning p (use shared for dfa). | |
Dom (Space *home, ViewArray< View > &x, DFA &d) | |
Constructor for posting. | |
Protected Attributes | |
DFA | dfa |
The DFA describing the language. | |
LayeredGraph * | lg |
Propagation is performed on a layered graph (used as cache). | |
Classes | |
class | LayeredGraph |
LayeredGraph as data structure used for propagation in regular More... |
Constructor & Destructor Documentation
|
Constructor for cloning p (use shared for dfa).
|
|
Constructor for posting.
|
Member Function Documentation
|
Copy propagator during cloning.
Implements Gecode::Actor. |
|
Cost function (defined as dynamic PC_LINEAR_HI).
Reimplemented from Gecode::NaryPropagator< View, PC_INT_DOM >. |
|
Perform propagation.
Implements Gecode::Propagator. |
|
Flush layered graph.
Reimplemented from Gecode::Actor. |
|
Returns size of layered graph.
|
|
Delete propagator and return its size.
Reimplemented from Gecode::NaryPropagator< View, PC_INT_DOM >. |
|
Post propagator on views x and DFA d.
|
Member Data Documentation
|
The DFA describing the language.
Definition at line 49 of file regular.hh. |
|
Propagation is performed on a layered graph (used as cache).
Definition at line 51 of file regular.hh. |
The documentation for this class was generated from the following files:
- gecode/int/regular.hh (Revision: 3512)
- gecode/int/regular/dom.icc (Revision: 3512)