Main Page | Class Hierarchy | Class List | File List | Class Members

AllDiff Class Reference

#include <AllDiff.h>

Inheritance diagram for AllDiff:

Constraint List of all members.

Public Member Functions

virtual bool propagate (Variable &modified)

Detailed Description

N-ary constraint enforcing different values for all variables involved.


Member Function Documentation

bool AllDiff::propagate Variable modified  )  [virtual]
 

Propagate this constraint. If you decide to overwrite this function, you can prune domains of other variables, provided that you make correct use of [save|restore|postpone|add]Diffs. This should work regardles of the arity of the constraint.

Parameters:
modifiedVariable the variable that has been modified; obviously this should be involved in the current constraint.
Returns:
`true' if the propagation was successful, `false' otherwise.

Reimplemented from Constraint.


The documentation for this class was generated from the following files:
Generated on Wed May 25 12:21:16 2005 for csp.kdevelop by  doxygen 1.3.9.1