17#ifndef OR_TOOLS_FLATZINC_PARSER_UTIL_H_
18#define OR_TOOLS_FLATZINC_PARSER_UTIL_H_
25#include "absl/container/flat_hash_map.h"
85 std::vector<Argument>*
args;
int64_t ConvertAsIntegerOrDie(double d)
If the argument is an integer, return it as int64_t. Otherwise, die.
In SWIG mode, we don't want anything besides these top-level includes.
std::vector< double > * doubles
std::vector< Annotation > * annotations
std::vector< int64_t > * integers
std::vector< Domain > * domains
std::vector< Argument > * args
std::vector< VarRefOrValue > * var_or_value_array
VarRefOrValue var_or_value
This is the context used during parsing.
absl::flat_hash_map< std::string, std::vector< Variable * > > variable_array_map
absl::flat_hash_map< std::string, Domain > domain_map
absl::flat_hash_map< std::string, int64_t > integer_map
absl::flat_hash_map< std::string, std::vector< double > > float_array_map
absl::flat_hash_map< std::string, Variable * > variable_map
absl::flat_hash_map< std::string, std::vector< Domain > > domain_array_map
absl::flat_hash_map< std::string, double > float_map
absl::flat_hash_map< std::string, std::vector< int64_t > > integer_array_map
static VarRefOrValue VarRef(Variable *var)
static VarRefOrValue FloatValue(double value)
static VarRefOrValue Undefined()
static VarRefOrValue Value(int64_t value)