Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
parser_util.cc File Reference
#include "ortools/flatzinc/parser_util.h"
#include <cmath>
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
#include "ortools/base/logging.h"
#include "ortools/base/mathutil.h"
#include "ortools/base/stl_util.h"
#include "ortools/base/types.h"
#include "ortools/flatzinc/model.h"
#include "ortools/flatzinc/parser.tab.hh"
#include "ortools/util/string_array.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::fz
 

Functions

int orfz_lex (YYSTYPE *, void *scanner)
 
int orfz_get_lineno (void *scanner)
 
void orfz_error (operations_research::fz::ParserContext *context, operations_research::fz::Model *model, bool *ok, void *scanner, const char *str)
 
bool operations_research::fz::ContainsId (std::vector< Annotation > *annotations, absl::string_view id)
 
bool operations_research::fz::AllDomainsHaveOneValue (const std::vector< Domain > &domains)
 
int64_t operations_research::fz::ConvertAsIntegerOrDie (double d)
 If the argument is an integer, return it as int64_t. Otherwise, die.
 
template<class T >
const T & operations_research::fz::Lookup (const std::vector< T > &v, int index)
 

Variables

int orfz_debug
 

Function Documentation

◆ orfz_error()

void orfz_error ( operations_research::fz::ParserContext * context,
operations_research::fz::Model * model,
bool * ok,
void * scanner,
const char * str )

Definition at line 35 of file parser_util.cc.

◆ orfz_get_lineno()

int orfz_get_lineno ( void * scanner)
extern

◆ orfz_lex()

int orfz_lex ( YYSTYPE * ,
void * scanner )
extern

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Utility functions used by the code in parser.yy Included in parser.tab.cc.

Variable Documentation

◆ orfz_debug

int orfz_debug
extern