243 lines
46 KiB
HTML
243 lines
46 KiB
HTML
<!-- HTML header for doxygen 1.8.18-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>OR-Tools: parser_util.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="orLogo.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">OR-Tools
|
|
 <span id="projectnumber">9.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function(){initNavTree('parser__util_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">parser_util.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="parser__util_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Copyright 2010-2021 Google LLC</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// you may not use this file except in compliance with the License.</span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment">// You may obtain a copy of the License at</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment">//</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">// See the License for the specific language governing permissions and</span></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">// limitations under the License.</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment">// Struct and utility functions used by the code in parser.yy</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// Included in parser.tab.hh.</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#ifndef OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#define OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include <cmath></span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include <cstdint></span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include "absl/container/flat_hash_map.h"</span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include "<a class="code" href="map__util_8h.html">ortools/base/map_util.h</a>"</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include "<a class="code" href="flatzinc_2model_8h.html">ortools/flatzinc/model.h</a>"</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceoperations__research.html">operations_research</a> {</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span>fz {</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="comment">// This is the context used during parsing.</span></div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html"> 30</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structoperations__research_1_1fz_1_1_parser_context.html">ParserContext</a> {</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a0d605972de39441b2f7a0e66a87c05eb"> 31</a></span> absl::flat_hash_map<std::string, int64_t> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#a0d605972de39441b2f7a0e66a87c05eb">integer_map</a>;</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#adcbcb292d940eb31f80ec350a25894b8"> 32</a></span> absl::flat_hash_map<std::string, std::vector<int64_t>> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#adcbcb292d940eb31f80ec350a25894b8">integer_array_map</a>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a37c64f3e91767559ba5183736fe5c557"> 33</a></span> absl::flat_hash_map<std::string, double> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#a37c64f3e91767559ba5183736fe5c557">float_map</a>;</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#af767843148042b6db0169eda7ae0bfbe"> 34</a></span> absl::flat_hash_map<std::string, std::vector<double>> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#af767843148042b6db0169eda7ae0bfbe">float_array_map</a>;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a5270c2fc30bce227340ac8fee6a602ca"> 35</a></span> absl::flat_hash_map<std::string, Variable*> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#a5270c2fc30bce227340ac8fee6a602ca">variable_map</a>;</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#aa10f18d3b8a38f49dff9f49c06458a45"> 36</a></span> absl::flat_hash_map<std::string, std::vector<Variable*>> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#aa10f18d3b8a38f49dff9f49c06458a45">variable_array_map</a>;</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#afba9266326cf8629fd07db76ba0ef18b"> 37</a></span> absl::flat_hash_map<std::string, Domain> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#afba9266326cf8629fd07db76ba0ef18b">domain_map</a>;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#ab4a90829fba5642acafbd16e3eb5802c"> 38</a></span> absl::flat_hash_map<std::string, std::vector<Domain>> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_parser_context.html#ab4a90829fba5642acafbd16e3eb5802c">domain_array_map</a>;</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>};</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="comment">// An optional reference to a variable, or an integer value, used in</span></div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><span class="comment">// assignments during the declaration of a variable, or a variable</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="comment">// array.</span></div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html"> 44</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> {</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aa4bd76bae8d5435c493644b3633fccab"> 45</a></span> <span class="keyword">static</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> <a class="code hl_function" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aa4bd76bae8d5435c493644b3633fccab">Undefined</a>() { <span class="keywordflow">return</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a>(); }</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a1a0a08ecf8d4fdd6e8b601d699ebc183"> 46</a></span> <span class="keyword">static</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> <a class="code hl_function" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a1a0a08ecf8d4fdd6e8b601d699ebc183">VarRef</a>(<a class="code hl_struct" href="structoperations__research_1_1fz_1_1_variable.html">Variable</a>* <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> result;</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ae571814d0e6ac1f041f0ee0190abe3aa">variable</a> = <a class="code hl_variable" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>;</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a3065d2591d20b830c6a7c5b3aacee38b"> 52</a></span> <span class="keyword">static</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> <a class="code hl_function" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a3065d2591d20b830c6a7c5b3aacee38b">Value</a>(int64_t <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> result;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aee85961335b2aca5d07e68643e7b8c03"> 58</a></span> <span class="keyword">static</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> <a class="code hl_function" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aee85961335b2aca5d07e68643e7b8c03">FloatValue</a>(<span class="keywordtype">double</span> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> result;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a8c3f6e1986251c9d362adf660eb98816">float_value</a> = <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> result.<a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a9c82df0e5e6fb19bc5b3edbe36a5985f">is_float</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ae571814d0e6ac1f041f0ee0190abe3aa"> 66</a></span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_variable.html">Variable</a>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ae571814d0e6ac1f041f0ee0190abe3aa">variable</a> = <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514"> 67</a></span> int64_t <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = 0;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a8c3f6e1986251c9d362adf660eb98816"> 68</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a8c3f6e1986251c9d362adf660eb98816">float_value</a> = 0.0;</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0"> 69</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a9c82df0e5e6fb19bc5b3edbe36a5985f"> 70</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a9c82df0e5e6fb19bc5b3edbe36a5985f">is_float</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>};</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="comment">// Class needed to pass information from the lexer to the parser.</span></div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="comment">// TODO(user): Use std::unique_ptr<vector< >> to ease memory management.</span></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html"> 75</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structoperations__research_1_1fz_1_1_lexer_info.html">LexerInfo</a> {</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6b10619ba9723a0547e95b029ee55067"> 76</a></span> int64_t <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6b10619ba9723a0547e95b029ee55067">integer_value</a>;</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7daf8650d5382eebb368a8ec7b3780e8"> 77</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7daf8650d5382eebb368a8ec7b3780e8">double_value</a>;</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#aabc5f6077f4788f74af9317dc62b840e"> 78</a></span> std::string <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#aabc5f6077f4788f74af9317dc62b840e">string_value</a>;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a1f1a69f8d8b037b72c2160ed12b3ef51"> 79</a></span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_domain.html">Domain</a> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>;</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a520e3f97792a94f443eb4d87caebea82"> 80</a></span> std::vector<Domain>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a520e3f97792a94f443eb4d87caebea82">domains</a>;</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#af649158cedabf9359dcb0118423749dd"> 81</a></span> std::vector<int64_t>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#af649158cedabf9359dcb0118423749dd">integers</a>;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#aa4fd9a53aff6b317a55f982568e1fc7c"> 82</a></span> std::vector<double>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#aa4fd9a53aff6b317a55f982568e1fc7c">doubles</a>;</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a206ac227df1a989e5c7d9795d82663a8"> 83</a></span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_argument.html">Argument</a> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a206ac227df1a989e5c7d9795d82663a8">arg</a>;</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a3ca861244557085b910461d236c68197"> 84</a></span> std::vector<Argument>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a3ca861244557085b910461d236c68197">args</a>;</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#ab151b30fea0e0925e92cdd78d12841fd"> 85</a></span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_annotation.html">Annotation</a> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#ab151b30fea0e0925e92cdd78d12841fd">annotation</a>;</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#abd9d28a0c1e0edada138b21ec5831e75"> 86</a></span> std::vector<Annotation>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#abd9d28a0c1e0edada138b21ec5831e75">annotations</a>;</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#ae451e8db436f6a4024ed12661a0e484e"> 87</a></span> <a class="code hl_struct" href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">VarRefOrValue</a> <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#ae451e8db436f6a4024ed12661a0e484e">var_or_value</a>;</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6bdd64e4a48eb98a5bd88350d3427adf"> 88</a></span> std::vector<VarRefOrValue>* <a class="code hl_variable" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6bdd64e4a48eb98a5bd88350d3427adf">var_or_value_array</a>;</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>};</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment">// If the argument is an integer, return it as int64_t. Otherwise, die.</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>int64_t <a class="code hl_function" href="namespaceoperations__research_1_1fz.html#acd71d3b4de690fd703881cb4cc99180d">ConvertAsIntegerOrDie</a>(<span class="keywordtype">double</span> d);</div>
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span>} <span class="comment">// namespace fz</span></div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>} <span class="comment">// namespace operations_research</span></div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
|
|
<div class="ttc" id="aexpr__array_8cc_html_a472a99923cbe11ae7b5a5d157d9ad465"><div class="ttname"><a href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a></div><div class="ttdeci">IntVar * var</div><div class="ttdef"><b>Definition:</b> <a href="expr__array_8cc_source.html#l01874">expr_array.cc:1874</a></div></div>
|
|
<div class="ttc" id="aflatzinc_2model_8h_html"><div class="ttname"><a href="flatzinc_2model_8h.html">model.h</a></div></div>
|
|
<div class="ttc" id="amap__util_8h_html"><div class="ttname"><a href="map__util_8h.html">map_util.h</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_1_1fz_html_acd71d3b4de690fd703881cb4cc99180d"><div class="ttname"><a href="namespaceoperations__research_1_1fz.html#acd71d3b4de690fd703881cb4cc99180d">operations_research::fz::ConvertAsIntegerOrDie</a></div><div class="ttdeci">int64_t ConvertAsIntegerOrDie(double d)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8cc_source.html#l00065">parser_util.cc:65</a></div></div>
|
|
<div class="ttc" id="anamespaceoperations__research_html"><div class="ttname"><a href="namespaceoperations__research.html">operations_research</a></div><div class="ttdoc">Collection of objects used to extend the Constraint Solver library.</div><div class="ttdef"><b>Definition:</b> <a href="dense__doubly__linked__list_8h_source.html#l00021">dense_doubly_linked_list.h:21</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_annotation_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_annotation.html">operations_research::fz::Annotation</a></div><div class="ttdef"><b>Definition:</b> <a href="flatzinc_2model_8h_source.html#l00256">flatzinc/model.h:256</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_argument_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_argument.html">operations_research::fz::Argument</a></div><div class="ttdef"><b>Definition:</b> <a href="flatzinc_2model_8h_source.html#l00154">flatzinc/model.h:154</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_domain_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_domain.html">operations_research::fz::Domain</a></div><div class="ttdef"><b>Definition:</b> <a href="flatzinc_2model_8h_source.html#l00050">flatzinc/model.h:50</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html">operations_research::fz::LexerInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00075">parser_util.h:75</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a1f1a69f8d8b037b72c2160ed12b3ef51"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a1f1a69f8d8b037b72c2160ed12b3ef51">operations_research::fz::LexerInfo::domain</a></div><div class="ttdeci">Domain domain</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00079">parser_util.h:79</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a206ac227df1a989e5c7d9795d82663a8"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a206ac227df1a989e5c7d9795d82663a8">operations_research::fz::LexerInfo::arg</a></div><div class="ttdeci">Argument arg</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00083">parser_util.h:83</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a3ca861244557085b910461d236c68197"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a3ca861244557085b910461d236c68197">operations_research::fz::LexerInfo::args</a></div><div class="ttdeci">std::vector< Argument > * args</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00084">parser_util.h:84</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a520e3f97792a94f443eb4d87caebea82"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a520e3f97792a94f443eb4d87caebea82">operations_research::fz::LexerInfo::domains</a></div><div class="ttdeci">std::vector< Domain > * domains</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00080">parser_util.h:80</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a6b10619ba9723a0547e95b029ee55067"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a6b10619ba9723a0547e95b029ee55067">operations_research::fz::LexerInfo::integer_value</a></div><div class="ttdeci">int64_t integer_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00076">parser_util.h:76</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a6bdd64e4a48eb98a5bd88350d3427adf"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a6bdd64e4a48eb98a5bd88350d3427adf">operations_research::fz::LexerInfo::var_or_value_array</a></div><div class="ttdeci">std::vector< VarRefOrValue > * var_or_value_array</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00088">parser_util.h:88</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a7daf8650d5382eebb368a8ec7b3780e8"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a7daf8650d5382eebb368a8ec7b3780e8">operations_research::fz::LexerInfo::double_value</a></div><div class="ttdeci">double double_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00077">parser_util.h:77</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_aa4fd9a53aff6b317a55f982568e1fc7c"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#aa4fd9a53aff6b317a55f982568e1fc7c">operations_research::fz::LexerInfo::doubles</a></div><div class="ttdeci">std::vector< double > * doubles</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00082">parser_util.h:82</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_aabc5f6077f4788f74af9317dc62b840e"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#aabc5f6077f4788f74af9317dc62b840e">operations_research::fz::LexerInfo::string_value</a></div><div class="ttdeci">std::string string_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00078">parser_util.h:78</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_ab151b30fea0e0925e92cdd78d12841fd"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#ab151b30fea0e0925e92cdd78d12841fd">operations_research::fz::LexerInfo::annotation</a></div><div class="ttdeci">Annotation annotation</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00085">parser_util.h:85</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_abd9d28a0c1e0edada138b21ec5831e75"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#abd9d28a0c1e0edada138b21ec5831e75">operations_research::fz::LexerInfo::annotations</a></div><div class="ttdeci">std::vector< Annotation > * annotations</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00086">parser_util.h:86</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_ae451e8db436f6a4024ed12661a0e484e"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#ae451e8db436f6a4024ed12661a0e484e">operations_research::fz::LexerInfo::var_or_value</a></div><div class="ttdeci">VarRefOrValue var_or_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00087">parser_util.h:87</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_af649158cedabf9359dcb0118423749dd"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#af649158cedabf9359dcb0118423749dd">operations_research::fz::LexerInfo::integers</a></div><div class="ttdeci">std::vector< int64_t > * integers</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00081">parser_util.h:81</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html">operations_research::fz::ParserContext</a></div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00030">parser_util.h:30</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_a0d605972de39441b2f7a0e66a87c05eb"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#a0d605972de39441b2f7a0e66a87c05eb">operations_research::fz::ParserContext::integer_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, int64_t > integer_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00031">parser_util.h:31</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_a37c64f3e91767559ba5183736fe5c557"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#a37c64f3e91767559ba5183736fe5c557">operations_research::fz::ParserContext::float_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, double > float_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00033">parser_util.h:33</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_a5270c2fc30bce227340ac8fee6a602ca"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#a5270c2fc30bce227340ac8fee6a602ca">operations_research::fz::ParserContext::variable_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, Variable * > variable_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00035">parser_util.h:35</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_aa10f18d3b8a38f49dff9f49c06458a45"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#aa10f18d3b8a38f49dff9f49c06458a45">operations_research::fz::ParserContext::variable_array_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, std::vector< Variable * > > variable_array_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00036">parser_util.h:36</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_ab4a90829fba5642acafbd16e3eb5802c"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#ab4a90829fba5642acafbd16e3eb5802c">operations_research::fz::ParserContext::domain_array_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, std::vector< Domain > > domain_array_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00038">parser_util.h:38</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_adcbcb292d940eb31f80ec350a25894b8"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#adcbcb292d940eb31f80ec350a25894b8">operations_research::fz::ParserContext::integer_array_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, std::vector< int64_t > > integer_array_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00032">parser_util.h:32</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_af767843148042b6db0169eda7ae0bfbe"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#af767843148042b6db0169eda7ae0bfbe">operations_research::fz::ParserContext::float_array_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, std::vector< double > > float_array_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00034">parser_util.h:34</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_parser_context_html_afba9266326cf8629fd07db76ba0ef18b"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#afba9266326cf8629fd07db76ba0ef18b">operations_research::fz::ParserContext::domain_map</a></div><div class="ttdeci">absl::flat_hash_map< std::string, Domain > domain_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00037">parser_util.h:37</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html">operations_research::fz::VarRefOrValue</a></div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00044">parser_util.h:44</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_a1a0a08ecf8d4fdd6e8b601d699ebc183"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a1a0a08ecf8d4fdd6e8b601d699ebc183">operations_research::fz::VarRefOrValue::VarRef</a></div><div class="ttdeci">static VarRefOrValue VarRef(Variable *var)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00046">parser_util.h:46</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_a3065d2591d20b830c6a7c5b3aacee38b"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a3065d2591d20b830c6a7c5b3aacee38b">operations_research::fz::VarRefOrValue::Value</a></div><div class="ttdeci">static VarRefOrValue Value(int64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00052">parser_util.h:52</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_a509014a43807c7ead9395235bce125e0"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a509014a43807c7ead9395235bce125e0">operations_research::fz::VarRefOrValue::defined</a></div><div class="ttdeci">bool defined</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00069">parser_util.h:69</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_a8c3f6e1986251c9d362adf660eb98816"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a8c3f6e1986251c9d362adf660eb98816">operations_research::fz::VarRefOrValue::float_value</a></div><div class="ttdeci">double float_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00068">parser_util.h:68</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_a9c82df0e5e6fb19bc5b3edbe36a5985f"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#a9c82df0e5e6fb19bc5b3edbe36a5985f">operations_research::fz::VarRefOrValue::is_float</a></div><div class="ttdeci">bool is_float</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00070">parser_util.h:70</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_aa4bd76bae8d5435c493644b3633fccab"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aa4bd76bae8d5435c493644b3633fccab">operations_research::fz::VarRefOrValue::Undefined</a></div><div class="ttdeci">static VarRefOrValue Undefined()</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00045">parser_util.h:45</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">operations_research::fz::VarRefOrValue::value</a></div><div class="ttdeci">int64_t value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00067">parser_util.h:67</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_ae571814d0e6ac1f041f0ee0190abe3aa"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#ae571814d0e6ac1f041f0ee0190abe3aa">operations_research::fz::VarRefOrValue::variable</a></div><div class="ttdeci">Variable * variable</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00066">parser_util.h:66</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_var_ref_or_value_html_aee85961335b2aca5d07e68643e7b8c03"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_var_ref_or_value.html#aee85961335b2aca5d07e68643e7b8c03">operations_research::fz::VarRefOrValue::FloatValue</a></div><div class="ttdeci">static VarRefOrValue FloatValue(double value)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00058">parser_util.h:58</a></div></div>
|
|
<div class="ttc" id="astructoperations__research_1_1fz_1_1_variable_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable.html">operations_research::fz::Variable</a></div><div class="ttdef"><b>Definition:</b> <a href="flatzinc_2model_8h_source.html#l00119">flatzinc/model.h:119</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.18-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_92d538196d04323bb571488ea744da84.html">flatzinc</a></li><li class="navelem"><a class="el" href="parser__util_8h.html">parser_util.h</a></li>
|
|
<li class="footer">Generated by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|