OR-Tools  8.2
ArgumentHolder

Detailed Description

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 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
 

Member Function Documentation

◆ FindIntegerArgumentOrDie()

int64 FindIntegerArgumentOrDie ( const std::string &  arg_name) const

Definition at line 99 of file visitor.cc.

◆ FindIntegerArgumentWithDefault()

int64 FindIntegerArgumentWithDefault ( const std::string &  arg_name,
int64  def 
) const

Getters.

Definition at line 94 of file visitor.cc.

◆ FindIntegerArrayArgumentOrDie()

const std::vector< int64 > & FindIntegerArrayArgumentOrDie ( const std::string &  arg_name) const

Definition at line 104 of file visitor.cc.

◆ FindIntegerExpressionArgumentOrDie()

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

Definition at line 109 of file visitor.cc.

◆ FindIntegerMatrixArgumentOrDie()

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

Definition at line 120 of file visitor.cc.

◆ FindIntegerVariableArrayArgumentOrDie()

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

Definition at line 115 of file visitor.cc.

◆ HasIntegerExpressionArgument()

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

Checks if arguments exist.

Definition at line 84 of file visitor.cc.

◆ HasIntegerVariableArrayArgument()

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

Definition at line 89 of file visitor.cc.

◆ SetIntegerArgument()

void SetIntegerArgument ( const std::string &  arg_name,
int64  value 
)

Setters.

Definition at line 37 of file visitor.cc.

◆ SetIntegerArrayArgument()

void SetIntegerArrayArgument ( const std::string &  arg_name,
const std::vector< int64 > &  values 
)

Definition at line 42 of file visitor.cc.

◆ SetIntegerExpressionArgument()

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

Definition at line 54 of file visitor.cc.

◆ SetIntegerMatrixArgument()

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

Definition at line 47 of file visitor.cc.

◆ SetIntegerVariableArrayArgument()

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

Definition at line 59 of file visitor.cc.

◆ SetIntervalArgument()

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

Definition at line 64 of file visitor.cc.

◆ SetIntervalArrayArgument()

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

Definition at line 69 of file visitor.cc.

◆ SetSequenceArgument()

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

Definition at line 74 of file visitor.cc.

◆ SetSequenceArrayArgument()

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

Definition at line 79 of file visitor.cc.

◆ SetTypeName()

void SetTypeName ( const std::string &  type_name)

Definition at line 33 of file visitor.cc.

◆ TypeName()

const std::string & TypeName ( ) const

Type of the argument.

Definition at line 31 of file visitor.cc.


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