KConstraintArray

class KConstraintArray : public ArtelysList<KConstraint>

This class implements an array of KConstraint

Example :

KIntVarArray TAB(...)
KIntVar X(...)
KIntVar Y(...)
KIntVar Z(...)
KConstraintArray constraintArray;

constraintArray += KAllDifferent("alldiff(TAB)",TAB);
constraintArray += X == Y + 2:
constraintArray += (Y < 6) || (Z + 4 == X)s

See

KConstraint

Since

2016.1

Public Functions

KConstraintArray()

Default Constructor.

KConstraintArray(int nbElements)

Constructor.

virtual ~KConstraintArray()

destructor