Files
ortools-clone/docs/cpp/classoperations__research_1_1sat_1_1IntVar.html
2020-09-01 16:01:06 +02:00

464 lines
26 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.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: IntVar</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
&#160;<span id="projectnumber">8.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @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('classoperations__research_1_1sat_1_1IntVar.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="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoperations__research_1_1sat_1_1IntVar-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">IntVar</div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An integer variable. </p>
<p>This class wraps an <a class="el" href="namespaceoperations__research_1_1sat_1_1IntegerVariableProto.html">IntegerVariableProto</a>. This can only be constructed via <code><a class="el" href="classoperations__research_1_1sat_1_1CpModelBuilder.html#a39205137bf1d725eeb83298fed27a320" title="Creates an integer variable with the given domain.">CpModelBuilder.NewIntVar()</a></code>.</p>
<p>Note that a <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html" title="A Boolean variable.">BoolVar</a> can be used in any place that accept an <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a> via an implicit cast. It will simply take the value 0 (when false) or 1 (when true). </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00146">146</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7400b108444b2375d723b848e23bb169"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a7400b108444b2375d723b848e23bb169">IntVar</a> ()</td></tr>
<tr class="separator:a7400b108444b2375d723b848e23bb169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada2fae0afd55e85812dcc8e78e8ecbd4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#ada2fae0afd55e85812dcc8e78e8ecbd4">IntVar</a> (const <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a> &amp;<a class="el" href="sat__solver_8cc.html#a8392bdc4ed570e6a95c7fca35b09f83f">var</a>)</td></tr>
<tr class="memdesc:ada2fae0afd55e85812dcc8e78e8ecbd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implicit cast <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html" title="A Boolean variable.">BoolVar</a> -&gt; <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. <a href="classoperations__research_1_1sat_1_1IntVar.html#ada2fae0afd55e85812dcc8e78e8ecbd4">More...</a><br /></td></tr>
<tr class="separator:ada2fae0afd55e85812dcc8e78e8ecbd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f5099295c7c625026b2a81d3dcfa401"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a1f5099295c7c625026b2a81d3dcfa401">ToBoolVar</a> () const</td></tr>
<tr class="memdesc:a1f5099295c7c625026b2a81d3dcfa401"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cast <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a> -&gt; <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html" title="A Boolean variable.">BoolVar</a>. <a href="classoperations__research_1_1sat_1_1IntVar.html#a1f5099295c7c625026b2a81d3dcfa401">More...</a><br /></td></tr>
<tr class="separator:a1f5099295c7c625026b2a81d3dcfa401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8098e37a46ec252d36fe0757887f1337"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a8098e37a46ec252d36fe0757887f1337">WithName</a> (const std::string &amp;<a class="el" href="linear__solver_8cc.html#a82e2a7e0f28d620da677073b6b24574b">name</a>)</td></tr>
<tr class="memdesc:a8098e37a46ec252d36fe0757887f1337"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the name of the variable. <a href="classoperations__research_1_1sat_1_1IntVar.html#a8098e37a46ec252d36fe0757887f1337">More...</a><br /></td></tr>
<tr class="separator:a8098e37a46ec252d36fe0757887f1337"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a191cd9b1ba3e3c01a558a1f6c02a4429"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a191cd9b1ba3e3c01a558a1f6c02a4429">Name</a> () const</td></tr>
<tr class="memdesc:a191cd9b1ba3e3c01a558a1f6c02a4429"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the variable (or the empty string if not set). <a href="classoperations__research_1_1sat_1_1IntVar.html#a191cd9b1ba3e3c01a558a1f6c02a4429">More...</a><br /></td></tr>
<tr class="separator:a191cd9b1ba3e3c01a558a1f6c02a4429"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4927017e2b77774933a43bfc83b6ab39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classoperations__research_1_1sat_1_1LinearExpr.html">LinearExpr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a4927017e2b77774933a43bfc83b6ab39">AddConstant</a> (<a class="el" href="integral__types_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a> <a class="el" href="matrix__utils_8cc.html#aee90379adb0307effb138f4871edbc5c">value</a>) const</td></tr>
<tr class="memdesc:a4927017e2b77774933a43bfc83b6ab39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a constant value to an integer variable and returns a linear expression. <a href="classoperations__research_1_1sat_1_1IntVar.html#a4927017e2b77774933a43bfc83b6ab39">More...</a><br /></td></tr>
<tr class="separator:a4927017e2b77774933a43bfc83b6ab39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eacbc3ce694a75ad57598990c511635"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a5eacbc3ce694a75ad57598990c511635">operator==</a> (const <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> &amp;other) const</td></tr>
<tr class="memdesc:a5eacbc3ce694a75ad57598990c511635"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality test with another <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. <a href="classoperations__research_1_1sat_1_1IntVar.html#a5eacbc3ce694a75ad57598990c511635">More...</a><br /></td></tr>
<tr class="separator:a5eacbc3ce694a75ad57598990c511635"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79da7cf24c71242159d1e57cb3680530"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a79da7cf24c71242159d1e57cb3680530">operator!=</a> (const <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> &amp;other) const</td></tr>
<tr class="memdesc:a79da7cf24c71242159d1e57cb3680530"><td class="mdescLeft">&#160;</td><td class="mdescRight">Difference test with anpther <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. <a href="classoperations__research_1_1sat_1_1IntVar.html#a79da7cf24c71242159d1e57cb3680530">More...</a><br /></td></tr>
<tr class="separator:a79da7cf24c71242159d1e57cb3680530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a764be64f3029f8b8e23511061d8de355"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a764be64f3029f8b8e23511061d8de355">DebugString</a> () const</td></tr>
<tr class="memdesc:a764be64f3029f8b8e23511061d8de355"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a debug string. <a href="classoperations__research_1_1sat_1_1IntVar.html#a764be64f3029f8b8e23511061d8de355">More...</a><br /></td></tr>
<tr class="separator:a764be64f3029f8b8e23511061d8de355"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7be47301fa8fdc0f4944877cd2fe7ba"><td class="memItemLeft" align="right" valign="top">const IntegerVariableProto &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#ae7be47301fa8fdc0f4944877cd2fe7ba">Proto</a> () const</td></tr>
<tr class="memdesc:ae7be47301fa8fdc0f4944877cd2fe7ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the underlying protobuf object (useful for testing). <a href="classoperations__research_1_1sat_1_1IntVar.html#ae7be47301fa8fdc0f4944877cd2fe7ba">More...</a><br /></td></tr>
<tr class="separator:ae7be47301fa8fdc0f4944877cd2fe7ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02b89136ac6040e03a762f9588bbb38f"><td class="memItemLeft" align="right" valign="top">IntegerVariableProto *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#a02b89136ac6040e03a762f9588bbb38f">MutableProto</a> () const</td></tr>
<tr class="memdesc:a02b89136ac6040e03a762f9588bbb38f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the mutable underlying protobuf object (useful for model edition). <a href="classoperations__research_1_1sat_1_1IntVar.html#a02b89136ac6040e03a762f9588bbb38f">More...</a><br /></td></tr>
<tr class="separator:a02b89136ac6040e03a762f9588bbb38f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acca41811e8aaab0112b987749c0ecb93"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html#acca41811e8aaab0112b987749c0ecb93">index</a> () const</td></tr>
<tr class="memdesc:acca41811e8aaab0112b987749c0ecb93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the variable in the model. <a href="classoperations__research_1_1sat_1_1IntVar.html#acca41811e8aaab0112b987749c0ecb93">More...</a><br /></td></tr>
<tr class="separator:acca41811e8aaab0112b987749c0ecb93"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7400b108444b2375d723b848e23bb169"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7400b108444b2375d723b848e23bb169">&#9670;&nbsp;</a></span>IntVar() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00070">70</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<a id="ada2fae0afd55e85812dcc8e78e8ecbd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada2fae0afd55e85812dcc8e78e8ecbd4">&#9670;&nbsp;</a></span>IntVar() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a> &amp;&#160;</td>
<td class="paramname"><em>var</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Implicit cast <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html" title="A Boolean variable.">BoolVar</a> -&gt; <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00082">82</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4927017e2b77774933a43bfc83b6ab39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4927017e2b77774933a43bfc83b6ab39">&#9670;&nbsp;</a></span>AddConstant()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1LinearExpr.html">LinearExpr</a> AddConstant </td>
<td>(</td>
<td class="paramtype"><a class="el" href="integral__types_8h.html#a7cde0074dfd288f2d70c0e035dacb28a">int64</a>&#160;</td>
<td class="paramname"><em>value</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a constant value to an integer variable and returns a linear expression. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00097">97</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<a id="a764be64f3029f8b8e23511061d8de355"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a764be64f3029f8b8e23511061d8de355">&#9670;&nbsp;</a></span>DebugString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string DebugString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a debug string. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00101">101</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<a id="acca41811e8aaab0112b987749c0ecb93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acca41811e8aaab0112b987749c0ecb93">&#9670;&nbsp;</a></span>index()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int index </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the index of the variable in the model. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00191">191</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="a02b89136ac6040e03a762f9588bbb38f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02b89136ac6040e03a762f9588bbb38f">&#9670;&nbsp;</a></span>MutableProto()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">IntegerVariableProto* MutableProto </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the mutable underlying protobuf object (useful for model edition). </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00186">186</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="a191cd9b1ba3e3c01a558a1f6c02a4429"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a191cd9b1ba3e3c01a558a1f6c02a4429">&#9670;&nbsp;</a></span>Name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::string&amp; Name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the name of the variable (or the empty string if not set). </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00161">161</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="a79da7cf24c71242159d1e57cb3680530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79da7cf24c71242159d1e57cb3680530">&#9670;&nbsp;</a></span>operator!=()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Difference test with anpther <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00173">173</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="a5eacbc3ce694a75ad57598990c511635"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eacbc3ce694a75ad57598990c511635">&#9670;&nbsp;</a></span>operator==()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Equality test with another <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a>. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00168">168</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="ae7be47301fa8fdc0f4944877cd2fe7ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7be47301fa8fdc0f4944877cd2fe7ba">&#9670;&nbsp;</a></span>Proto()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const IntegerVariableProto&amp; Proto </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the underlying protobuf object (useful for testing). </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8h_source.html#l00181">181</a> of file <a class="el" href="cp__model_8h_source.html">cp_model.h</a>.</p>
</div>
</div>
<a id="a1f5099295c7c625026b2a81d3dcfa401"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f5099295c7c625026b2a81d3dcfa401">&#9670;&nbsp;</a></span>ToBoolVar()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html">BoolVar</a> ToBoolVar </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Cast <a class="el" href="classoperations__research_1_1sat_1_1IntVar.html" title="An integer variable.">IntVar</a> -&gt; <a class="el" href="classoperations__research_1_1sat_1_1BoolVar.html" title="A Boolean variable.">BoolVar</a>. </p>
<p>Checks that the domain of the var is within {0,1}. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00087">87</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<a id="a8098e37a46ec252d36fe0757887f1337"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8098e37a46ec252d36fe0757887f1337">&#9670;&nbsp;</a></span>WithName()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</a> WithName </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the name of the variable. </p>
<p class="definition">Definition at line <a class="el" href="cp__model_8cc_source.html#l00077">77</a> of file <a class="el" href="cp__model_8cc_source.html">cp_model.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="cp__model_8h_source.html">cp_model.h</a></li>
<li><a class="el" href="cp__model_8cc_source.html">cp_model.cc</a></li>
</ul>
</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="namespaceoperations__research.html">operations_research</a></li><li class="navelem"><a class="el" href="namespaceoperations__research_1_1sat.html">sat</a></li><li class="navelem"><a class="el" href="classoperations__research_1_1sat_1_1IntVar.html">IntVar</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.8.18 </li>
</ul>
</div>
</body>
</html>