![]() |
OR-Tools
8.2
|
Argument Holder: useful when visiting a model.
Definition at line 2310 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 value) |
Setters. More... | |
void | SetIntegerArrayArgument (const std::string &arg_name, const std::vector< int64 > &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 | FindIntegerArgumentWithDefault (const std::string &arg_name, int64 def) const |
Getters. More... | |
int64 | FindIntegerArgumentOrDie (const std::string &arg_name) const |
const std::vector< int64 > & | 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 FindIntegerArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 99 of file visitor.cc.
Getters.
Definition at line 94 of file visitor.cc.
const std::vector< int64 > & FindIntegerArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 104 of file visitor.cc.
IntExpr * FindIntegerExpressionArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 109 of file visitor.cc.
const IntTupleSet & FindIntegerMatrixArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 120 of file visitor.cc.
const std::vector< IntVar * > & FindIntegerVariableArrayArgumentOrDie | ( | const std::string & | arg_name | ) | const |
Definition at line 115 of file visitor.cc.
bool HasIntegerExpressionArgument | ( | const std::string & | arg_name | ) | const |
Checks if arguments exist.
Definition at line 84 of file visitor.cc.
bool HasIntegerVariableArrayArgument | ( | const std::string & | arg_name | ) | const |
Definition at line 89 of file visitor.cc.
void SetIntegerArgument | ( | const std::string & | arg_name, |
int64 | value | ||
) |
Setters.
Definition at line 37 of file visitor.cc.
void SetIntegerArrayArgument | ( | const std::string & | arg_name, |
const std::vector< int64 > & | values | ||
) |
Definition at line 42 of file visitor.cc.
void SetIntegerExpressionArgument | ( | const std::string & | arg_name, |
IntExpr *const | expr | ||
) |
Definition at line 54 of file visitor.cc.
void SetIntegerMatrixArgument | ( | const std::string & | arg_name, |
const IntTupleSet & | values | ||
) |
Definition at line 47 of file visitor.cc.
void SetIntegerVariableArrayArgument | ( | const std::string & | arg_name, |
const std::vector< IntVar * > & | vars | ||
) |
Definition at line 59 of file visitor.cc.
void SetIntervalArgument | ( | const std::string & | arg_name, |
IntervalVar *const | var | ||
) |
Definition at line 64 of file visitor.cc.
void SetIntervalArrayArgument | ( | const std::string & | arg_name, |
const std::vector< IntervalVar * > & | vars | ||
) |
Definition at line 69 of file visitor.cc.
void SetSequenceArgument | ( | const std::string & | arg_name, |
SequenceVar *const | var | ||
) |
Definition at line 74 of file visitor.cc.
void SetSequenceArrayArgument | ( | const std::string & | arg_name, |
const std::vector< SequenceVar * > & | vars | ||
) |
Definition at line 79 of file visitor.cc.
void SetTypeName | ( | const std::string & | type_name | ) |
Definition at line 33 of file visitor.cc.
const std::string & TypeName | ( | ) | const |
Type of the argument.
Definition at line 31 of file visitor.cc.