Google OR-Tools: Argument Struct Reference

Definition at line 155 of file model.h.

#include <model.h>

Public Member Functions

std::string DebugString () const
bool IsVariable () const
bool HasOneValue () const
int64_t Value () const
bool IsArrayOfValues () const
bool Contains (int64_t value) const
int64_t ValueAt (int pos) const
VariableVar () const
VariableVarAt (int pos) const
bool HasOneValueAt (int pos) const
int Size () const

Static Public Member Functions

static Argument IntegerValue (int64_t value)
static Argument Interval (int64_t imin, int64_t imax)
static Argument IntegerList (std::vector< int64_t > values)
static Argument DomainList (std::vector< Domain > domains)
static Argument FloatValue (double value)
static Argument FloatInterval (double lb, double ub)
static Argument FloatList (std::vector< double > floats)
static Argument VarRef (Variable *var)
static Argument VarRefArray (std::vector< Variable * > vars)
static Argument VoidArgument ()
static Argument FromDomain (const Domain &domain)

Public Attributes

Type type
std::vector< int64_t > values
std::vector< Variable * > variables
std::vector< Domaindomains
std::vector< double > floats

◆ Type

Enumerator
INT_VALUE 
INT_INTERVAL 
INT_LIST 
DOMAIN_LIST 
FLOAT_VALUE 
FLOAT_INTERVAL 
FLOAT_LIST 
VAR_REF 
VAR_REF_ARRAY 
VOID_ARGUMENT 

Definition at line 156 of file model.h.

◆ Contains()

◆ DebugString()

◆ DomainList()

◆ FloatInterval()

◆ FloatList()

◆ FloatValue()

◆ FromDomain()

◆ HasOneValue()

◆ HasOneValueAt()

◆ IntegerList()

◆ IntegerValue()

◆ Interval()

◆ IsArrayOfValues()

◆ IsVariable()

◆ Size()

◆ Value()

◆ ValueAt()

◆ Var()

◆ VarAt()

◆ VarRef()

◆ VarRefArray()

◆ VoidArgument()

◆ domains

◆ floats

◆ type

◆ values

◆ variables


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