![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Argument Holder: useful when visiting a model. More...
Argument Holder: useful when visiting a model.
Definition at line 3683 of file constraint_solveri.h.
#include <constraint_solveri.h>
Public Member Functions | |
| const std::string & | TypeName () const |
| Type of the argument. | |
| void | SetTypeName (const std::string &type_name) |
| void | SetIntegerArgument (const std::string &arg_name, int64_t value) |
| Setters. | |
| 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 *expr) |
| void | SetIntegerVariableArrayArgument (const std::string &arg_name, const std::vector< IntVar * > &vars) |
| void | SetIntervalArgument (const std::string &arg_name, IntervalVar *var) |
| void | SetIntervalArrayArgument (const std::string &arg_name, const std::vector< IntervalVar * > &vars) |
| void | SetSequenceArgument (const std::string &arg_name, SequenceVar *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. | |
| bool | HasIntegerVariableArrayArgument (const std::string &arg_name) const |
| int64_t | FindIntegerArgumentWithDefault (const std::string &arg_name, int64_t def) const |
| Getters. | |
| 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 operations_research::ArgumentHolder::FindIntegerArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 96 of file visitor.cc.
| int64_t operations_research::ArgumentHolder::FindIntegerArgumentWithDefault | ( | const std::string & | arg_name, |
| int64_t | def ) const |
Getters.
Definition at line 91 of file visitor.cc.
| const std::vector< int64_t > & operations_research::ArgumentHolder::FindIntegerArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 101 of file visitor.cc.
| IntExpr * operations_research::ArgumentHolder::FindIntegerExpressionArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 106 of file visitor.cc.
| const IntTupleSet & operations_research::ArgumentHolder::FindIntegerMatrixArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 117 of file visitor.cc.
| const std::vector< IntVar * > & operations_research::ArgumentHolder::FindIntegerVariableArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 112 of file visitor.cc.
| bool operations_research::ArgumentHolder::HasIntegerExpressionArgument | ( | const std::string & | arg_name | ) | const |
Checks if arguments exist.
Definition at line 81 of file visitor.cc.
| bool operations_research::ArgumentHolder::HasIntegerVariableArrayArgument | ( | const std::string & | arg_name | ) | const |
Definition at line 86 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntegerArgument | ( | const std::string & | arg_name, |
| int64_t | value ) |
Setters.
Definition at line 36 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntegerArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< int64_t > & | values ) |
Definition at line 41 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntegerExpressionArgument | ( | const std::string & | arg_name, |
| IntExpr * | expr ) |
Definition at line 51 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntegerMatrixArgument | ( | const std::string & | arg_name, |
| const IntTupleSet & | values ) |
Definition at line 46 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntegerVariableArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< IntVar * > & | vars ) |
Definition at line 56 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntervalArgument | ( | const std::string & | arg_name, |
| IntervalVar * | var ) |
Definition at line 61 of file visitor.cc.
| void operations_research::ArgumentHolder::SetIntervalArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< IntervalVar * > & | vars ) |
Definition at line 66 of file visitor.cc.
| void operations_research::ArgumentHolder::SetSequenceArgument | ( | const std::string & | arg_name, |
| SequenceVar * | var ) |
Definition at line 71 of file visitor.cc.
| void operations_research::ArgumentHolder::SetSequenceArrayArgument | ( | const std::string & | arg_name, |
| const std::vector< SequenceVar * > & | vars ) |
Definition at line 76 of file visitor.cc.
| void operations_research::ArgumentHolder::SetTypeName | ( | const std::string & | type_name | ) |
Definition at line 32 of file visitor.cc.
| const std::string & operations_research::ArgumentHolder::TypeName | ( | ) | const |