Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Argument Holder: useful when visiting a model. More...
#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 |
Argument Holder: useful when visiting a model.
Definition at line 2657 of file constraint_solveri.h.
int64_t operations_research::ArgumentHolder::FindIntegerArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 98 of file visitor.cc.
int64_t operations_research::ArgumentHolder::FindIntegerArgumentWithDefault | ( | const std::string & | arg_name, |
int64_t | def ) const |
Getters.
Definition at line 93 of file visitor.cc.
const std::vector< int64_t > & operations_research::ArgumentHolder::FindIntegerArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 103 of file visitor.cc.
IntExpr * operations_research::ArgumentHolder::FindIntegerExpressionArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 108 of file visitor.cc.
const IntTupleSet & operations_research::ArgumentHolder::FindIntegerMatrixArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 119 of file visitor.cc.
const std::vector< IntVar * > & operations_research::ArgumentHolder::FindIntegerVariableArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 114 of file visitor.cc.
bool operations_research::ArgumentHolder::HasIntegerExpressionArgument | ( | const std::string & | arg_name | ) | const |
Checks if arguments exist.
Definition at line 83 of file visitor.cc.
bool operations_research::ArgumentHolder::HasIntegerVariableArrayArgument | ( | const std::string & | arg_name | ) | const |
Definition at line 88 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 53 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 58 of file visitor.cc.
void operations_research::ArgumentHolder::SetIntervalArgument | ( | const std::string & | arg_name, |
IntervalVar * | var ) |
Definition at line 63 of file visitor.cc.
void operations_research::ArgumentHolder::SetIntervalArrayArgument | ( | const std::string & | arg_name, |
const std::vector< IntervalVar * > & | vars ) |
Definition at line 68 of file visitor.cc.
void operations_research::ArgumentHolder::SetSequenceArgument | ( | const std::string & | arg_name, |
SequenceVar * | var ) |
Definition at line 73 of file visitor.cc.
void operations_research::ArgumentHolder::SetSequenceArrayArgument | ( | const std::string & | arg_name, |
const std::vector< SequenceVar * > & | vars ) |
Definition at line 78 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 |