![]() |
OR-Tools
9.3
|
Argument Holder: useful when visiting a model.
Definition at line 2326 of file constraint_solveri.h.
Public Member Functions | |
| const std::string & | TypeName () const |
| Type of the argument. More... | |
| void | SetTypeName (const std::string &type_name) |
| void | SetIntegerArgument (const std::string &arg_name, int64_t value) |
| Setters. More... | |
| void | SetIntegerArrayArgument (const std::string &arg_name, const std::vector< int64_t > &values) |
| void | SetIntegerMatrixArgument (const std::string &arg_name, const IntTupleSet &values) |
| void | SetIntegerExpressionArgument (const std::string &arg_name, IntExpr *const expr) |
| void | SetIntegerVariableArrayArgument (const std::string &arg_name, const std::vector< IntVar * > &vars) |
| void | SetIntervalArgument (const std::string &arg_name, IntervalVar *const var) |
| void | SetIntervalArrayArgument (const std::string &arg_name, const std::vector< IntervalVar * > &vars) |
| void | SetSequenceArgument (const std::string &arg_name, SequenceVar *const var) |
| void | SetSequenceArrayArgument (const std::string &arg_name, const std::vector< SequenceVar * > &vars) |
| bool | HasIntegerExpressionArgument (const std::string &arg_name) const |
| Checks if arguments exist. More... | |
| bool | HasIntegerVariableArrayArgument (const std::string &arg_name) const |
| int64_t | FindIntegerArgumentWithDefault (const std::string &arg_name, int64_t def) const |
| Getters. More... | |
| int64_t | FindIntegerArgumentOrDie (const std::string &arg_name) const |
| const std::vector< int64_t > & | FindIntegerArrayArgumentOrDie (const std::string &arg_name) const |
| const IntTupleSet & | FindIntegerMatrixArgumentOrDie (const std::string &arg_name) const |
| IntExpr * | FindIntegerExpressionArgumentOrDie (const std::string &arg_name) const |
| const std::vector< IntVar * > & | FindIntegerVariableArrayArgumentOrDie (const std::string &arg_name) const |
| int64_t FindIntegerArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 100 of file visitor.cc.
| int64_t FindIntegerArgumentWithDefault | ( | const std::string & | arg_name, |
| int64_t | def | ||
| ) | const |
Getters.
Definition at line 95 of file visitor.cc.
| const std::vector< int64_t > & FindIntegerArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 105 of file visitor.cc.
| IntExpr * FindIntegerExpressionArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 110 of file visitor.cc.
| const IntTupleSet & FindIntegerMatrixArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 121 of file visitor.cc.
| const std::vector< IntVar * > & FindIntegerVariableArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 116 of file visitor.cc.
| bool HasIntegerExpressionArgument | ( | const std::string & | arg_name | ) | const |
Checks if arguments exist.
Definition at line 85 of file visitor.cc.
| bool HasIntegerVariableArrayArgument | ( | const std::string & | arg_name | ) | const |
Definition at line 90 of file visitor.cc.
| void SetIntegerArgument | ( | const std::string & | arg_name, |
| int64_t | value | ||
| ) |
Setters.
Definition at line 38 of file visitor.cc.
| void SetIntegerArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< int64_t > & | values | ||
| ) |
Definition at line 43 of file visitor.cc.
| void SetIntegerExpressionArgument | ( | const std::string & | arg_name, |
| IntExpr *const | expr | ||
| ) |
Definition at line 55 of file visitor.cc.
| void SetIntegerMatrixArgument | ( | const std::string & | arg_name, |
| const IntTupleSet & | values | ||
| ) |
Definition at line 48 of file visitor.cc.
| void SetIntegerVariableArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< IntVar * > & | vars | ||
| ) |
Definition at line 60 of file visitor.cc.
| void SetIntervalArgument | ( | const std::string & | arg_name, |
| IntervalVar *const | var | ||
| ) |
Definition at line 65 of file visitor.cc.
| void SetIntervalArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< IntervalVar * > & | vars | ||
| ) |
Definition at line 70 of file visitor.cc.
| void SetSequenceArgument | ( | const std::string & | arg_name, |
| SequenceVar *const | var | ||
| ) |
Definition at line 75 of file visitor.cc.
| void SetSequenceArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< SequenceVar * > & | vars | ||
| ) |
Definition at line 80 of file visitor.cc.
| void SetTypeName | ( | const std::string & | type_name | ) |
Definition at line 34 of file visitor.cc.
| const std::string & TypeName | ( | ) | const |
Type of the argument.
Definition at line 32 of file visitor.cc.