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

132 lines
58 KiB
HTML
Raw Normal View History

2021-04-27 23:00:03 +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"/>
2022-01-16 18:02:36 +01:00
<meta name="generator" content="Doxygen 1.8.15"/>
2021-04-27 23:00:03 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: ids_validator.cc 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>
2022-01-16 18:02:36 +01:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
2021-04-27 23:00:03 +02:00
<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-12-14 13:41:01 +01:00
&#160;<span id="projectnumber">9.2</span>
2021-04-27 23:00:03 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-01-16 18:02:36 +01:00
<!-- Generated by Doxygen 1.8.15 -->
2021-04-27 23:00:03 +02:00
<script type="text/javascript">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
2021-04-27 23:00:03 +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">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2021-04-27 23:00:03 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-16 18:02:36 +01:00
/* @license-end */</script>
2021-04-27 23:00:03 +02:00
<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">
2022-01-16 18:02:36 +01:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ids__validator_8cc_source.html','');});
2021-04-27 23:00:03 +02:00
/* @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">
2022-01-16 18:02:36 +01:00
<div class="headertitle">
<div class="title">ids_validator.cc</div> </div>
2021-04-27 23:00:03 +02:00
</div><!--header-->
<div class="contents">
2022-01-16 18:02:36 +01:00
<a href="ids__validator_8cc.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><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="preprocessor">#include &quot;<a class="code" href="ids__validator_8h.html">ortools/math_opt/validators/ids_validator.h</a>&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;limits&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;absl/container/flat_hash_set.h&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;absl/status/status.h&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &quot;absl/strings/str_cat.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &quot;absl/strings/s
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a24926108b770033792d015cb86aeffb3"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a24926108b770033792d015cb86aeffb3">operations_research::math_opt::IdNameBiMap::Size</a></div><div class="ttdeci">int Size() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00117">model_summary.h:117</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_name_bi_map_html_abcfbdba215d3b15fbb4b682969943a6e"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#abcfbdba215d3b15fbb4b682969943a6e">operations_research::math_opt::IdNameBiMap::Empty</a></div><div class="ttdeci">bool Empty() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00115">model_summary.h:115</a></div></div>
<div class="ttc" id="ids__validator_8h_html"><div class="ttname"><a href="ids__validator_8h.html">ids_validator.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a3d7966ee882774b7bf3daee9f309b3d2"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a3d7966ee882774b7bf3daee9f309b3d2">operations_research::math_opt::IdNameBiMap::HasId</a></div><div class="ttdeci">bool HasId(int64_t id) const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00107">model_summary.h:107</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_name_bi_map_html_a50f2155e05090df8be4452cc121b8e4a"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html#a50f2155e05090df8be4452cc121b8e4a">operations_research::math_opt::IdNameBiMap::LargestId</a></div><div class="ttdeci">int64_t LargestId() const</div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00119">model_summary.h:119</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1math__opt_html_ad9f50c9313b35cc1e8887057dc4d9645"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#ad9f50c9313b35cc1e8887057dc4d9645">operations_research::math_opt::kInf</a></div><div class="ttdeci">constexpr double kInf</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00035">ids_validator.cc:35</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1math__opt_html_afecf2131c4ddbd801120447bc2d4f02d"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#afecf2131c4ddbd801120447bc2d4f02d">operations_research::math_opt::CheckIdsIdentical</a></div><div class="ttdeci">absl::Status CheckIdsIdentical(absl::Span&lt; const int64_t &gt; first_ids, const IdNameBiMap &amp;second_ids, absl::string_view first_description, absl::string_view second_description)</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00253">ids_validator.cc:253</a></div></div>
<div class="ttc" id="gscip__solver_8cc_html_a1e2f9a2352c1d9a6cada9544898fceec"><div class="ttname"><a href="gscip__solver_8cc.html#a1e2f9a2352c1d9a6cada9544898fceec">lower_bound</a></div><div class="ttdeci">double lower_bound</div><div class="ttdef"><b>Definition:</b> <a href="gscip__solver_8cc_source.html#l00125">gscip_solver.cc:125</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_update_validator_html_af7cd701529db2a55f51ef17f99b1798e"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_update_validator.html#af7cd701529db2a55f51ef17f99b1798e">operations_research::math_opt::IdUpdateValidator::CheckSortedIdsSubsetOfNotDeleted</a></div><div class="ttdeci">absl::Status CheckSortedIdsSubsetOfNotDeleted(const absl::Span&lt; const int64_t &gt; ids) const</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00180">ids_validator.cc:180</a></div></div>
<div class="ttc" id="model__summary_8h_html"><div class="ttname"><a href="model__summary_8h.html">model_summary.h</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1math__opt_html_a171bca8410e8a81b91523dbf444eb7ab"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#a171bca8410e8a81b91523dbf444eb7ab">operations_research::math_opt::CheckUnsortedIdsSubset</a></div><div class="ttdeci">absl::Status CheckUnsortedIdsSubset(const absl::Span&lt; const int64_t &gt; ids, const absl::Span&lt; const int64_t &gt; universe)</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00145">ids_validator.cc:145</a></div></div>
<div class="ttc" id="namespaceoperations__research_1_1math__opt_html_aa680631976be354abbcd28e2ec941ca7"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#aa680631976be354abbcd28e2ec941ca7">operations_research::math_opt::CheckIdsSubset</a></div><div class="ttdeci">absl::Status CheckIdsSubset(absl::Span&lt; const int64_t &gt; ids, const IdNameBiMap &amp;universe, absl::string_view ids_description, absl::string_view universe_description)</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00238">ids_validator.cc:238</a></div></div>
<div class="ttc" id="status__macros_8h_html"><div class="ttname"><a href="status__macros_8h.html">status_macros.h</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_update_validator_html_a24d1f83533097bcf0ce26471e325f7af"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_update_validator.html#a24d1f83533097bcf0ce26471e325f7af">operations_research::math_opt::IdUpdateValidator::CheckSortedIdsSubsetOfFinal</a></div><div class="ttdeci">absl::Status CheckSortedIdsSubsetOfFinal(const absl::Span&lt; const int64_t &gt; ids) const</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00192">ids_validator.cc:192</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_update_validator_html_afa3cf6e1db522252509ec15039658ec4"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_update_validator.html#afa3cf6e1db522252509ec15039658ec4">operations_research::math_opt::IdUpdateValidator::IsValid</a></div><div class="ttdeci">absl::Status IsValid() const</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00160">ids_validator.cc:160</a></div></div>
<div class="ttc" id="namespaceoperations__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="namespaceoperations__research_1_1math__opt_html_a6f7cf38d6c86eb1da6a4e3b8d53aefeb"><div class="ttname"><a href="namespaceoperations__research_1_1math__opt.html#a6f7cf38d6c86eb1da6a4e3b8d53aefeb">operations_research::math_opt::CheckIdsNonnegativeAndStrictlyIncreasing</a></div><div class="ttdeci">absl::Status CheckIdsNonnegativeAndStrictlyIncreasing(absl::Span&lt; const int64_t &gt; ids)</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00117">ids_validator.cc:117</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_name_bi_map_html"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_name_bi_map.html">operations_research::math_opt::IdNameBiMap</a></div><div class="ttdef"><b>Definition:</b> <a href="model__summary_8h_source.html#l00038">model_summary.h:38</a></div></div>
<div class="ttc" id="classoperations__research_1_1math__opt_1_1_id_update_validator_html_a38fd085ad7a4460b5c0ba746f2d2b869"><div class="ttname"><a href="classoperations__research_1_1math__opt_1_1_id_update_validator.html#a38fd085ad7a4460b5c0ba746f2d2b869">operations_research::math_opt::IdUpdateValidator::CheckIdsSubsetOfFinal</a></div><div class="ttdeci">absl::Status CheckIdsSubsetOfFinal(const absl::Span&lt; const int64_t &gt; ids) const</div><div class="ttdef"><b>Definition:</b> <a href="ids__validator_8cc_source.html#l00213">ids_validator.cc:213</a></div></div>
<div class="ttc" id="status__macros_8h_html_acdc223d8c59d5c591dc6b4e88257627b"><div class="ttname"><a href="status__macros_8h.html#acdc223d8c59d5c591dc6b4e88257627b">RETURN_IF_ERROR</a></div><div class="ttdeci">#define RETURN_IF_ERROR(expr)</div><div class="ttdef"><b>Definition:</b> <a href="status__macros_8h_source.html#l00029">status_macros.h:29</a></div></div>
<div class="ttc" id="routing__search_8cc_html_a79b8e036dca6911e3295a47d99f21f43"><div class="ttname"><a href="routing__search_8cc.html#a79b8e036dca6911e3295a47d99f21f43">distance</a></div><div class="ttdeci">double distance</div><div class="ttdef"><b>Definition:</b> <a href="routing__search_8cc_source.html#l03610">routing_search.cc:3610</a></div></div>
2021-04-27 23:00:03 +02:00
</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_1defc00030ff81d309105e053121082f.html">math_opt</a></li><li class="navelem"><a class="el" href="dir_2298c6cf5b60fbeba088c3582d3d0ae0.html">validators</a></li><li class="navelem"><a class="el" href="ids__validator_8cc.html">ids_validator.cc</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
2022-01-16 18:02:36 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
2021-04-27 23:00:03 +02:00
</ul>
</div>
</body>
</html>