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

#include <parser_util.h>

Static Public Member Functions

static VarRefOrValue Undefined ()
 
static VarRefOrValue VarRef (Variable *var)
 
static VarRefOrValue Value (int64_t value)
 
static VarRefOrValue FloatValue (double value)
 

Public Attributes

Variablevariable = nullptr
 
int64_t value = 0
 
double float_value = 0.0
 
bool defined = false
 
bool is_float = false
 

Detailed Description

An optional reference to a variable, or an integer value, used in assignments during the declaration of a variable, or a variable array.

Definition at line 45 of file parser_util.h.

Member Function Documentation

◆ FloatValue()

static VarRefOrValue operations_research::fz::VarRefOrValue::FloatValue ( double value)
inlinestatic

Definition at line 59 of file parser_util.h.

◆ Undefined()

static VarRefOrValue operations_research::fz::VarRefOrValue::Undefined ( )
inlinestatic

Definition at line 46 of file parser_util.h.

◆ Value()

static VarRefOrValue operations_research::fz::VarRefOrValue::Value ( int64_t value)
inlinestatic

Definition at line 53 of file parser_util.h.

◆ VarRef()

static VarRefOrValue operations_research::fz::VarRefOrValue::VarRef ( Variable * var)
inlinestatic

Definition at line 47 of file parser_util.h.

Member Data Documentation

◆ defined

bool operations_research::fz::VarRefOrValue::defined = false

Definition at line 70 of file parser_util.h.

◆ float_value

double operations_research::fz::VarRefOrValue::float_value = 0.0

Definition at line 69 of file parser_util.h.

◆ is_float

bool operations_research::fz::VarRefOrValue::is_float = false

Definition at line 71 of file parser_util.h.

◆ value

int64_t operations_research::fz::VarRefOrValue::value = 0

Definition at line 68 of file parser_util.h.

◆ variable

Variable* operations_research::fz::VarRefOrValue::variable = nullptr

Definition at line 67 of file parser_util.h.


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