|
| ModelCache (Solver *solver) |
| --— ModelCache --—
|
|
virtual | ~ModelCache () |
|
virtual void | Clear ()=0 |
|
virtual Constraint * | FindVoidConstraint (VoidConstraintType type) const =0 |
| Void constraints.
|
|
virtual void | InsertVoidConstraint (Constraint *ct, VoidConstraintType type)=0 |
|
virtual Constraint * | FindVarConstantConstraint (IntVar *var, int64_t value, VarConstantConstraintType type) const =0 |
| Var Constant Constraints.
|
|
virtual void | InsertVarConstantConstraint (Constraint *ct, IntVar *var, int64_t value, VarConstantConstraintType type)=0 |
|
virtual Constraint * | FindVarConstantConstantConstraint (IntVar *var, int64_t value1, int64_t value2, VarConstantConstantConstraintType type) const =0 |
| Var Constant Constant Constraints.
|
|
virtual void | InsertVarConstantConstantConstraint (Constraint *ct, IntVar *var, int64_t value1, int64_t value2, VarConstantConstantConstraintType type)=0 |
|
virtual Constraint * | FindExprExprConstraint (IntExpr *expr1, IntExpr *expr2, ExprExprConstraintType type) const =0 |
| Expr Expr Constraints.
|
|
virtual void | InsertExprExprConstraint (Constraint *ct, IntExpr *expr1, IntExpr *expr2, ExprExprConstraintType type)=0 |
|
virtual IntExpr * | FindExprExpression (IntExpr *expr, ExprExpressionType type) const =0 |
| Expr Expressions.
|
|
virtual void | InsertExprExpression (IntExpr *expression, IntExpr *expr, ExprExpressionType type)=0 |
|
virtual IntExpr * | FindExprConstantExpression (IntExpr *expr, int64_t value, ExprConstantExpressionType type) const =0 |
| Expr Constant Expressions.
|
|
virtual void | InsertExprConstantExpression (IntExpr *expression, IntExpr *var, int64_t value, ExprConstantExpressionType type)=0 |
|
virtual IntExpr * | FindExprExprExpression (IntExpr *var1, IntExpr *var2, ExprExprExpressionType type) const =0 |
| Expr Expr Expressions.
|
|
virtual void | InsertExprExprExpression (IntExpr *expression, IntExpr *var1, IntExpr *var2, ExprExprExpressionType type)=0 |
|
virtual IntExpr * | FindExprExprConstantExpression (IntExpr *var1, IntExpr *var2, int64_t constant, ExprExprConstantExpressionType type) const =0 |
| Expr Expr Constant Expressions.
|
|
virtual void | InsertExprExprConstantExpression (IntExpr *expression, IntExpr *var1, IntExpr *var2, int64_t constant, ExprExprConstantExpressionType type)=0 |
|
virtual IntExpr * | FindVarConstantConstantExpression (IntVar *var, int64_t value1, int64_t value2, VarConstantConstantExpressionType type) const =0 |
| Var Constant Constant Expressions.
|
|
virtual void | InsertVarConstantConstantExpression (IntExpr *expression, IntVar *var, int64_t value1, int64_t value2, VarConstantConstantExpressionType type)=0 |
|
virtual IntExpr * | FindVarConstantArrayExpression (IntVar *var, const std::vector< int64_t > &values, VarConstantArrayExpressionType type) const =0 |
| Var Constant Array Expressions.
|
|
virtual void | InsertVarConstantArrayExpression (IntExpr *expression, IntVar *var, const std::vector< int64_t > &values, VarConstantArrayExpressionType type)=0 |
|
virtual IntExpr * | FindVarArrayExpression (const std::vector< IntVar * > &vars, VarArrayExpressionType type) const =0 |
| Var Array Expressions.
|
|
virtual void | InsertVarArrayExpression (IntExpr *expression, const std::vector< IntVar * > &vars, VarArrayExpressionType type)=0 |
|
virtual IntExpr * | FindVarArrayConstantArrayExpression (const std::vector< IntVar * > &vars, const std::vector< int64_t > &values, VarArrayConstantArrayExpressionType type) const =0 |
| Var Array Constant Array Expressions.
|
|
virtual void | InsertVarArrayConstantArrayExpression (IntExpr *expression, const std::vector< IntVar * > &var, const std::vector< int64_t > &values, VarArrayConstantArrayExpressionType type)=0 |
|
virtual IntExpr * | FindVarArrayConstantExpression (const std::vector< IntVar * > &vars, int64_t value, VarArrayConstantExpressionType type) const =0 |
| Var Array Constant Expressions.
|
|
virtual void | InsertVarArrayConstantExpression (IntExpr *expression, const std::vector< IntVar * > &var, int64_t value, VarArrayConstantExpressionType type)=0 |
|
Solver * | solver () const |
|
Implements a complete cache for model elements: expressions and constraints. Caching is based on the signatures of the elements, as well as their types. This class is used internally to avoid creating duplicate objects.
Definition at line 2427 of file constraint_solveri.h.