C++ Reference: class ModelVisitor

This documentation is automatically generated.

Model visitor.
Method
BeginVisitConstraint

Return type: virtual void

Arguments: const std::string& type_name, const Constraint* const constraint

BeginVisitExtension

Return type: virtual void

Arguments: const std::string& type

BeginVisitIntegerExpression

Return type: virtual void

Arguments: const std::string& type_name, const IntExpr* const expr

BeginVisitModel

Return type: virtual void

Arguments: const std::string& solver_name

Begin/End visit element.

EndVisitConstraint

Return type: virtual void

Arguments: const std::string& type_name, const Constraint* const constraint

EndVisitExtension

Return type: virtual void

Arguments: const std::string& type

EndVisitIntegerExpression

Return type: virtual void

Arguments: const std::string& type_name, const IntExpr* const expr

EndVisitModel

Return type: virtual void

Arguments: const std::string& solver_name

~ModelVisitor

VisitInt64ToBoolExtension

Return type: void

Arguments: Solver::IndexFilter1 filter, int64 index_min, int64 index_max

Using SWIG on callbacks is troublesome, so we hide these methods during the wrapping.

VisitInt64ToInt64AsArray

Return type: void

Arguments: const Solver::IndexEvaluator1& eval, const std::string& arg_name, int64 index_max

Expands function as array when index min is 0.

VisitInt64ToInt64Extension

Return type: void

Arguments: const Solver::IndexEvaluator1& eval, int64 index_min, int64 index_max

VisitIntegerArgument

Return type: virtual void

Arguments: const std::string& arg_name, int64 value

Visit integer arguments.

VisitIntegerArrayArgument

Return type: virtual void

Arguments: const std::string& arg_name, const std::vector<int64>& values

VisitIntegerExpressionArgument

Return type: virtual void

Arguments: const std::string& arg_name, IntExpr* const argument

Visit integer expression argument.

VisitIntegerMatrixArgument

Return type: virtual void

Arguments: const std::string& arg_name, const IntTupleSet& tuples

VisitIntegerVariable

Return type: virtual void

Arguments: const IntVar* const variable, IntExpr* const delegate

VisitIntegerVariable

Return type: virtual void

Arguments: const IntVar* const variable, const std::string& operation, int64 value, IntVar* const delegate

VisitIntegerVariableArrayArgument

Return type: virtual void

Arguments: const std::string& arg_name, const std::vector<IntVar*>& arguments

VisitIntegerVariableEvaluatorArgument

Return type: virtual void

Arguments: const std::string& arg_name, const Solver::Int64ToIntVar& arguments

Helpers.

VisitIntervalArgument

Return type: virtual void

Arguments: const std::string& arg_name, IntervalVar* const argument

Visit interval argument.

VisitIntervalArrayArgument

Return type: virtual void

Arguments: const std::string& arg_name, const std::vector<IntervalVar*>& arguments

VisitIntervalVariable

Return type: virtual void

Arguments: const IntervalVar* const variable, const std::string& operation, int64 value, IntervalVar* const delegate

VisitSequenceArgument

Return type: virtual void

Arguments: const std::string& arg_name, SequenceVar* const argument

Visit sequence argument.

VisitSequenceArrayArgument

Return type: virtual void

Arguments: const std::string& arg_name, const std::vector<SequenceVar*>& arguments

VisitSequenceVariable

Return type: virtual void

Arguments: const SequenceVar* const variable