Generated on Wed Nov 1 15:05:20 2006 for Gecode by doxygen 1.4.5

Gecode::Int::Rel::Lex< View > Class Template Reference
[Integer propagators]

#include <rel.hh>

Inherits Gecode::NaryPropagator< ViewTuple< View, 2 >, PC_INT_BND >.

List of all members.


Detailed Description

template<class View>
class Gecode::Int::Rel::Lex< View >

Lexical ordering propagator.

The propagator uses the algorithm (and also the automaton) from: Mats Carlsson, Nicolas Beldiceanu, Revisiting the Lexicographic Ordering Constraint. SICS Technical Report T2002:17, SICS, Sweden, 2002.

It deviates in the following two main aspects:

Requires

 #include "gecode/int/rel.hh" 

Definition at line 467 of file rel.hh.

Public Member Functions

virtual Actorcopy (Space *home, bool share)
 Copy propagator during cloning.
virtual ExecStatus propagate (Space *home)
 Perform propagation.

Static Public Member Functions

static ExecStatus post (Space *home, ViewArray< ViewTuple< View, 2 > > &xy, bool strict)
 Post propagator for lexical order on xy.

Protected Member Functions

 Lex (Space *home, bool share, Lex &p)
 Constructor for cloning p.
 Lex (Space *home, ViewArray< ViewTuple< View, 2 > > &xy, bool strict)
 Constructor for posting.

Protected Attributes

bool strict
 Determines whether propagator is strict or not.


Constructor & Destructor Documentation

template<class View>
Gecode::Int::Rel::Lex< View >::Lex Space home,
bool  share,
Lex< View > &  p
[protected]
 

Constructor for cloning p.

template<class View>
Gecode::Int::Rel::Lex< View >::Lex Space home,
ViewArray< ViewTuple< View, 2 > > &  xy,
bool  strict
[inline, protected]
 

Constructor for posting.

Definition at line 26 of file lex.icc.


Member Function Documentation

template<class View>
Actor * Gecode::Int::Rel::Lex< View >::copy Space home,
bool  share
[virtual]
 

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 38 of file lex.icc.

template<class View>
ExecStatus Gecode::Int::Rel::Lex< View >::propagate Space home  )  [virtual]
 

Perform propagation.

Implements Gecode::Propagator.

Definition at line 44 of file lex.icc.

template<class View>
ExecStatus Gecode::Int::Rel::Lex< View >::post Space home,
ViewArray< ViewTuple< View, 2 > > &  xy,
bool  strict
[static]
 

Post propagator for lexical order on xy.

Definition at line 196 of file lex.icc.


Member Data Documentation

template<class View>
bool Gecode::Int::Rel::Lex< View >::strict [protected]
 

Determines whether propagator is strict or not.

Definition at line 472 of file rel.hh.


The documentation for this class was generated from the following files: