Files
ortools-clone/docs/cpp/parser__util_8h_source.html

259 lines
49 KiB
HTML
Raw Normal View History

2020-09-02 09:42:51 +02:00
<!-- 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"/>
2021-01-26 11:28:50 +01:00
<meta name="generator" content="Doxygen 1.9.1"/>
2020-09-02 09:42:51 +02:00
<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
2021-04-27 23:00:03 +02:00
&#160;<span id="projectnumber">9.0</span>
2020-09-02 09:42:51 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2021-01-26 11:28:50 +01:00
<!-- Generated by Doxygen 1.9.1 -->
2020-09-02 09:42:51 +02:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2021-01-26 11:28:50 +01:00
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
2020-09-02 09:42:51 +02:00
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(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">
2021-04-27 23:00:03 +02:00
<a href="parser__util_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2021 Google LLC</span></div>
2020-09-02 09:42:51 +02:00
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// Struct and utility functions used by the code in parser.yy</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// Included in parser.tab.hh.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
2021-04-27 23:00:03 +02:00
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_map.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="map__util_8h.html">ortools/base/map_util.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="flatzinc_2model_8h.html">ortools/flatzinc/model.h</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceoperations__research.html">operations_research</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span>fz {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">// This is the context used during parsing.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html"> 30</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html">ParserContext</a> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a0d605972de39441b2f7a0e66a87c05eb"> 31</a></span>&#160; absl::flat_hash_map&lt;std::string, int64_t&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#a0d605972de39441b2f7a0e66a87c05eb">integer_map</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#adcbcb292d940eb31f80ec350a25894b8"> 32</a></span>&#160; absl::flat_hash_map&lt;std::string, std::vector&lt;int64_t&gt;&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#adcbcb292d940eb31f80ec350a25894b8">integer_array_map</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a37c64f3e91767559ba5183736fe5c557"> 33</a></span>&#160; absl::flat_hash_map&lt;std::string, double&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#a37c64f3e91767559ba5183736fe5c557">float_map</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#af767843148042b6db0169eda7ae0bfbe"> 34</a></span>&#160; absl::flat_hash_map&lt;std::string, std::vector&lt;double&gt;&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#af767843148042b6db0169eda7ae0bfbe">float_array_map</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#aa4c22aec467378e85e548075a5984fda"> 35</a></span>&#160; absl::flat_hash_map&lt;std::string, IntegerVariable*&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#aa4c22aec467378e85e548075a5984fda">variable_map</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; absl::flat_hash_map&lt;std::string, std::vector&lt;IntegerVariable*&gt;&gt;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#a4c0aa6922f23dfc6bb773846b7ad6ebc"> 37</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#a4c0aa6922f23dfc6bb773846b7ad6ebc">variable_array_map</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#afba9266326cf8629fd07db76ba0ef18b"> 38</a></span>&#160; absl::flat_hash_map&lt;std::string, Domain&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#afba9266326cf8629fd07db76ba0ef18b">domain_map</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_parser_context.html#ab4a90829fba5642acafbd16e3eb5802c"> 39</a></span>&#160; absl::flat_hash_map&lt;std::string, std::vector&lt;Domain&gt;&gt; <a class="code" href="structoperations__research_1_1fz_1_1_parser_context.html#ab4a90829fba5642acafbd16e3eb5802c">domain_array_map</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;};</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">// An optional reference to a variable, or an integer value, used in</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">// assignments during the declaration of a variable, or a variable</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="comment">// array.</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html"> 45</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> {</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a877bc05b0d4f3ea606bf374ac2f25de7"> 46</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a877bc05b0d4f3ea606bf374ac2f25de7">Undefined</a>() {</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> result;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">variable</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = 0;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a1353dd8330bb74882887f28913721d84"> 53</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a1353dd8330bb74882887f28913721d84">VariableRef</a>(<a class="code" href="structoperations__research_1_1fz_1_1_integer_variable.html">IntegerVariable</a>* <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>) {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> result;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">variable</a> = <a class="code" href="expr__array_8cc.html#a472a99923cbe11ae7b5a5d157d9ad465">var</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; }</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ae05e698b4f1acce1d7818feec3feaf50"> 60</a></span>&#160; <span class="keyword">static</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ae05e698b4f1acce1d7818feec3feaf50">Value</a>(int64_t <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>) {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> result;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">variable</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a> = <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; result.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab"> 68</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_integer_variable.html">IntegerVariable</a>* <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">variable</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514"> 69</a></span>&#160; int64_t <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0"> 70</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;};</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html"> 73</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html">VariableRefOrValueArray</a> {</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a1c594edc69f086045710775eb325a571"> 74</a></span>&#160; std::vector&lt;IntegerVariable*&gt; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a1c594edc69f086045710775eb325a571">variables</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#accfca8221a7bbdc54ff1aa8b91152da9"> 75</a></span>&#160; std::vector&lt;int64_t&gt; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#accfca8221a7bbdc54ff1aa8b91152da9">values</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a7d795c453044d4b8d2c1d9fab0dfe9d5"> 77</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a7d795c453044d4b8d2c1d9fab0dfe9d5">PushBack</a>(<span class="keyword">const</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a>&amp; v) {</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a>(v.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">defined</a>);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a1c594edc69f086045710775eb325a571">variables</a>.push_back(v.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">variable</a>);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#accfca8221a7bbdc54ff1aa8b91152da9">values</a>.push_back(v.<a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">value</a>);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a24926108b770033792d015cb86aeffb3"> 83</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a24926108b770033792d015cb86aeffb3">Size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#accfca8221a7bbdc54ff1aa8b91152da9">values</a>.size(); }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;};</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment">// Class needed to pass information from the lexer to the parser.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="comment">// TODO(user): Use std::unique_ptr&lt;vector&lt; &gt;&gt; to ease memory management.</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html"> 88</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html">LexerInfo</a> {</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6b10619ba9723a0547e95b029ee55067"> 89</a></span>&#160; int64_t <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a6b10619ba9723a0547e95b029ee55067">integer_value</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7daf8650d5382eebb368a8ec7b3780e8"> 90</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7daf8650d5382eebb368a8ec7b3780e8">double_value</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#aabc5f6077f4788f74af9317dc62b840e"> 91</a></span>&#160; std::string <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#aabc5f6077f4788f74af9317dc62b840e">string_value</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a1f1a69f8d8b037b72c2160ed12b3ef51"> 92</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_domain.html">Domain</a> <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a520e3f97792a94f443eb4d87caebea82"> 93</a></span>&#160; std::vector&lt;Domain&gt;* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a520e3f97792a94f443eb4d87caebea82">domains</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#af649158cedabf9359dcb0118423749dd"> 94</a></span>&#160; std::vector&lt;int64_t&gt;* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#af649158cedabf9359dcb0118423749dd">integers</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#aa4fd9a53aff6b317a55f982568e1fc7c"> 95</a></span>&#160; std::vector&lt;double&gt;* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#aa4fd9a53aff6b317a55f982568e1fc7c">doubles</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a206ac227df1a989e5c7d9795d82663a8"> 96</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_argument.html">Argument</a> <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a206ac227df1a989e5c7d9795d82663a8">arg</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a3ca861244557085b910461d236c68197"> 97</a></span>&#160; std::vector&lt;Argument&gt;* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a3ca861244557085b910461d236c68197">args</a>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#ab151b30fea0e0925e92cdd78d12841fd"> 98</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_annotation.html">Annotation</a> <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#ab151b30fea0e0925e92cdd78d12841fd">annotation</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#abd9d28a0c1e0edada138b21ec5831e75"> 99</a></span>&#160; std::vector&lt;Annotation&gt;* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#abd9d28a0c1e0edada138b21ec5831e75">annotations</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7bcbcafdbde0334ad62c562f1227fe46"> 100</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">VariableRefOrValue</a> <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a7bcbcafdbde0334ad62c562f1227fe46">var_or_value</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structoperations__research_1_1fz_1_1_lexer_info.html#a9613bbbb6fd33c092a8dcb3e1776193f"> 101</a></span>&#160; <a class="code" href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html">VariableRefOrValueArray</a>* <a class="code" href="structoperations__research_1_1fz_1_1_lexer_info.html#a9613bbbb6fd33c092a8dcb3e1776193f">var_or_value_array</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;};</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="comment">// If the argument is an integer, return it as int64_t. Otherwise, die.</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;int64_t <a class="code" href="namespaceoperations__research_1_1fz.html#acd71d3b4de690fd703881cb4cc99180d">ConvertAsIntegerOrDie</a>(<span class="keywordtype">double</span> d);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;} <span class="comment">// namespace fz</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;} <span class="comment">// namespace operations_research</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// OR_TOOLS_FLATZINC_PARSER_UTIL_H_</span></div>
<div class="ttc" id="abase_2logging_8h_html_a3e1cfef60e774a81f30eaddf26a3a274"><div class="ttname"><a href="base_2logging_8h.html#a3e1cfef60e774a81f30eaddf26a3a274">CHECK</a></div><div class="ttdeci">#define CHECK(condition)</div><div class="ttdef"><b>Definition:</b> <a href="base_2logging_8h_source.html#l00498">base/logging.h:498</a></div></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>
2021-01-26 11:28:50 +01:00
<div class="ttc" id="aflatzinc_2model_8h_html"><div class="ttname"><a href="flatzinc_2model_8h.html">model.h</a></div></div>
2020-09-02 09:42:51 +02:00
<div class="ttc" id="amap__util_8h_html"><div class="ttname"><a href="map__util_8h.html">map_util.h</a></div></div>
2021-04-27 23:00:03 +02:00
<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#l00240">flatzinc/model.h:240</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#l00145">flatzinc/model.h:145</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_integer_variable_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_integer_variable.html">operations_research::fz::IntegerVariable</a></div><div class="ttdef"><b>Definition:</b> <a href="flatzinc_2model_8h_source.html#l00109">flatzinc/model.h:109</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#l00088">parser_util.h:88</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#l00092">parser_util.h:92</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#l00096">parser_util.h:96</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&lt; Argument &gt; * args</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00097">parser_util.h:97</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&lt; Domain &gt; * domains</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00093">parser_util.h:93</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#l00089">parser_util.h:89</a></div></div>
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a7bcbcafdbde0334ad62c562f1227fe46"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a7bcbcafdbde0334ad62c562f1227fe46">operations_research::fz::LexerInfo::var_or_value</a></div><div class="ttdeci">VariableRefOrValue var_or_value</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00100">parser_util.h:100</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#l00090">parser_util.h:90</a></div></div>
<div class="ttc" id="astructoperations__research_1_1fz_1_1_lexer_info_html_a9613bbbb6fd33c092a8dcb3e1776193f"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_lexer_info.html#a9613bbbb6fd33c092a8dcb3e1776193f">operations_research::fz::LexerInfo::var_or_value_array</a></div><div class="ttdeci">VariableRefOrValueArray * var_or_value_array</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00101">parser_util.h:101</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&lt; double &gt; * doubles</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00095">parser_util.h:95</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#l00091">parser_util.h:91</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#l00098">parser_util.h:98</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&lt; Annotation &gt; * annotations</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00099">parser_util.h:99</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&lt; int64_t &gt; * integers</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00094">parser_util.h:94</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&lt; std::string, int64_t &gt; 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&lt; std::string, double &gt; 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_a4c0aa6922f23dfc6bb773846b7ad6ebc"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#a4c0aa6922f23dfc6bb773846b7ad6ebc">operations_research::fz::ParserContext::variable_array_map</a></div><div class="ttdeci">absl::flat_hash_map&lt; std::string, std::vector&lt; IntegerVariable * &gt; &gt; variable_array_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_parser_context_html_aa4c22aec467378e85e548075a5984fda"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_parser_context.html#aa4c22aec467378e85e548075a5984fda">operations_research::fz::ParserContext::variable_map</a></div><div class="ttdeci">absl::flat_hash_map&lt; std::string, IntegerVariable * &gt; 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_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&lt; std::string, std::vector&lt; Domain &gt; &gt; domain_array_map</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00039">parser_util.h:39</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&lt; std::string, std::vector&lt; int64_t &gt; &gt; 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&lt; std::string, std::vector&lt; double &gt; &gt; 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&lt; std::string, Domain &gt; domain_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_variable_ref_or_value_array_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html">operations_research::fz::VariableRefOrValueArray</a></div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00073">parser_util.h:73</a></div></div>
<div class="ttc" id="astructoperations__research_1_1fz_1_1_variable_ref_or_value_array_html_a1c594edc69f086045710775eb325a571"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a1c594edc69f086045710775eb325a571">operations_research::fz::VariableRefOrValueArray::variables</a></div><div class="ttdeci">std::vector&lt; IntegerVariable * &gt; variables</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00074">parser_util.h:74</a></div></div>
<div class="ttc" id="astructoperations__research_1_1fz_1_1_variable_ref_or_value_array_html_a24926108b770033792d015cb86aeffb3"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a24926108b770033792d015cb86aeffb3">operations_research::fz::VariableRefOrValueArray::Size</a></div><div class="ttdeci">int Size() const</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_variable_ref_or_value_array_html_a7d795c453044d4b8d2c1d9fab0dfe9d5"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#a7d795c453044d4b8d2c1d9fab0dfe9d5">operations_research::fz::VariableRefOrValueArray::PushBack</a></div><div class="ttdeci">void PushBack(const VariableRefOrValue &amp;v)</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_variable_ref_or_value_array_html_accfca8221a7bbdc54ff1aa8b91152da9"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value_array.html#accfca8221a7bbdc54ff1aa8b91152da9">operations_research::fz::VariableRefOrValueArray::values</a></div><div class="ttdeci">std::vector&lt; int64_t &gt; values</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_variable_ref_or_value_html"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html">operations_research::fz::VariableRefOrValue</a></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_variable_ref_or_value_html_a1353dd8330bb74882887f28913721d84"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a1353dd8330bb74882887f28913721d84">operations_research::fz::VariableRefOrValue::VariableRef</a></div><div class="ttdeci">static VariableRefOrValue VariableRef(IntegerVariable *var)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00053">parser_util.h:53</a></div></div>
<div class="ttc" id="astructoperations__research_1_1fz_1_1_variable_ref_or_value_html_a509014a43807c7ead9395235bce125e0"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a509014a43807c7ead9395235bce125e0">operations_research::fz::VariableRefOrValue::defined</a></div><div class="ttdeci">bool defined</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_variable_ref_or_value_html_a874cabcf247bbbba8f2a66dad9c68fab"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a874cabcf247bbbba8f2a66dad9c68fab">operations_research::fz::VariableRefOrValue::variable</a></div><div class="ttdeci">IntegerVariable * variable</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_variable_ref_or_value_html_a877bc05b0d4f3ea606bf374ac2f25de7"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#a877bc05b0d4f3ea606bf374ac2f25de7">operations_research::fz::VariableRefOrValue::Undefined</a></div><div class="ttdeci">static VariableRefOrValue Undefined()</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_variable_ref_or_value_html_ac072af30c4ffbc834bb4c681f6ecb514"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ac072af30c4ffbc834bb4c681f6ecb514">operations_research::fz::VariableRefOrValue::value</a></div><div class="ttdeci">int64_t value</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_variable_ref_or_value_html_ae05e698b4f1acce1d7818feec3feaf50"><div class="ttname"><a href="structoperations__research_1_1fz_1_1_variable_ref_or_value.html#ae05e698b4f1acce1d7818feec3feaf50">operations_research::fz::VariableRefOrValue::Value</a></div><div class="ttdeci">static VariableRefOrValue Value(int64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="parser__util_8h_source.html#l00060">parser_util.h:60</a></div></div>
2021-01-26 11:28:50 +01:00
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2020-09-02 09:42:51 +02:00
<!-- 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">
2021-01-26 11:28:50 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
2020-09-02 09:42:51 +02:00
</ul>
</div>
</body>
</html>