Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::ArgumentHolder Class Reference

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 IntTupleSetFindIntegerMatrixArgumentOrDie (const std::string &arg_name) const
 
IntExprFindIntegerExpressionArgumentOrDie (const std::string &arg_name) const
 
const std::vector< IntVar * > & FindIntegerVariableArrayArgumentOrDie (const std::string &arg_name) const
 

Detailed Description

Argument Holder: useful when visiting a model.

Definition at line 2657 of file constraint_solveri.h.

Member Function Documentation

◆ FindIntegerArgumentOrDie()

int64_t operations_research::ArgumentHolder::FindIntegerArgumentOrDie ( const std::string & arg_name) const

Definition at line 98 of file visitor.cc.

◆ FindIntegerArgumentWithDefault()

int64_t operations_research::ArgumentHolder::FindIntegerArgumentWithDefault ( const std::string & arg_name,
int64_t def ) const

Getters.

Definition at line 93 of file visitor.cc.

◆ FindIntegerArrayArgumentOrDie()

const std::vector< int64_t > & operations_research::ArgumentHolder::FindIntegerArrayArgumentOrDie ( const std::string & arg_name) const

Definition at line 103 of file visitor.cc.

◆ FindIntegerExpressionArgumentOrDie()

IntExpr * operations_research::ArgumentHolder::FindIntegerExpressionArgumentOrDie ( const std::string & arg_name) const

Definition at line 108 of file visitor.cc.

◆ FindIntegerMatrixArgumentOrDie()

const IntTupleSet & operations_research::ArgumentHolder::FindIntegerMatrixArgumentOrDie ( const std::string & arg_name) const

Definition at line 119 of file visitor.cc.

◆ FindIntegerVariableArrayArgumentOrDie()

const std::vector< IntVar * > & operations_research::ArgumentHolder::FindIntegerVariableArrayArgumentOrDie ( const std::string & arg_name) const

Definition at line 114 of file visitor.cc.

◆ HasIntegerExpressionArgument()

bool operations_research::ArgumentHolder::HasIntegerExpressionArgument ( const std::string & arg_name) const

Checks if arguments exist.

Definition at line 83 of file visitor.cc.

◆ HasIntegerVariableArrayArgument()

bool operations_research::ArgumentHolder::HasIntegerVariableArrayArgument ( const std::string & arg_name) const

Definition at line 88 of file visitor.cc.

◆ SetIntegerArgument()

void operations_research::ArgumentHolder::SetIntegerArgument ( const std::string & arg_name,
int64_t value )

Setters.

Definition at line 36 of file visitor.cc.

◆ SetIntegerArrayArgument()

void operations_research::ArgumentHolder::SetIntegerArrayArgument ( const std::string & arg_name,
const std::vector< int64_t > & values )

Definition at line 41 of file visitor.cc.

◆ SetIntegerExpressionArgument()

void operations_research::ArgumentHolder::SetIntegerExpressionArgument ( const std::string & arg_name,
IntExpr * expr )

Definition at line 53 of file visitor.cc.

◆ SetIntegerMatrixArgument()

void operations_research::ArgumentHolder::SetIntegerMatrixArgument ( const std::string & arg_name,
const IntTupleSet & values )

Definition at line 46 of file visitor.cc.

◆ SetIntegerVariableArrayArgument()

void operations_research::ArgumentHolder::SetIntegerVariableArrayArgument ( const std::string & arg_name,
const std::vector< IntVar * > & vars )

Definition at line 58 of file visitor.cc.

◆ SetIntervalArgument()

void operations_research::ArgumentHolder::SetIntervalArgument ( const std::string & arg_name,
IntervalVar * var )

Definition at line 63 of file visitor.cc.

◆ SetIntervalArrayArgument()

void operations_research::ArgumentHolder::SetIntervalArrayArgument ( const std::string & arg_name,
const std::vector< IntervalVar * > & vars )

Definition at line 68 of file visitor.cc.

◆ SetSequenceArgument()

void operations_research::ArgumentHolder::SetSequenceArgument ( const std::string & arg_name,
SequenceVar * var )

Definition at line 73 of file visitor.cc.

◆ SetSequenceArrayArgument()

void operations_research::ArgumentHolder::SetSequenceArrayArgument ( const std::string & arg_name,
const std::vector< SequenceVar * > & vars )

Definition at line 78 of file visitor.cc.

◆ SetTypeName()

void operations_research::ArgumentHolder::SetTypeName ( const std::string & type_name)

Definition at line 32 of file visitor.cc.

◆ TypeName()

const std::string & operations_research::ArgumentHolder::TypeName ( ) const

Type of the argument.

-------— ArgumentHolder -------—

Definition at line 30 of file visitor.cc.


The documentation for this class was generated from the following files: