2019-06-13 15:36:14 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< title > OR-Tools< / title >
< meta http-equiv = "Content-Type" content = "text/html;" / >
< meta charset = "utf-8" / >
<!-- <link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/> -->
2019-06-20 23:08:48 +02:00
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
2019-06-13 15:36:14 +02:00
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< / head >
< body >
< div id = "banner-container" >
< div id = "banner" >
2019-06-29 18:18:08 +02:00
< span id = "sfml" > OR-Tools 7.2< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-06-29 18:18:08 +02:00
< link rel = "icon" href = "https://developers.google.com/optimization/images/orLogo.png" >
2019-06-13 15:36:14 +02:00
< div id = "content" >
<!-- Generated by Doxygen 1.8.15 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
2019-07-15 17:42:24 -07:00
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
2019-06-13 15:36:14 +02:00
< / ul >
< / div >
2019-07-12 13:25:23 -07:00
< / 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">
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-07-12 13:25:23 -07:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classoperations__research_1_1SmallRevBitSet.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
2019-06-13 15:36:14 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1SmallRevBitSet-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > operations_research::SmallRevBitSet Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-07-12 13:25:23 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > This class represents a small reversible bitset (size < = 64). < / p >
< p > This class is useful to maintain supports. < / p >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00410" > 410< / a > of file < a class = "el" href = "constraint__solveri_8h_source.html" > constraint_solveri.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-06-13 15:36:14 +02:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a0984b7441a23c75de696103cadc044b5" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a0984b7441a23c75de696103cadc044b5" > SmallRevBitSet< / a > (int64 size)< / td > < / tr >
< tr class = "separator:a0984b7441a23c75de696103cadc044b5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:a427373fdc21062991efa27f991862ff6" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a427373fdc21062991efa27f991862ff6" > SetToOne< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int64 pos)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "memdesc:a427373fdc21062991efa27f991862ff6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sets the 'pos' bit. < a href = "#a427373fdc21062991efa27f991862ff6" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a427373fdc21062991efa27f991862ff6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:a22f35c8d356a6bc1dfb95bb36da6d37a" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a22f35c8d356a6bc1dfb95bb36da6d37a" > SetToZero< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int64 pos)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "memdesc:a22f35c8d356a6bc1dfb95bb36da6d37a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Erases the 'pos' bit. < a href = "#a22f35c8d356a6bc1dfb95bb36da6d37a" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a22f35c8d356a6bc1dfb95bb36da6d37a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a689636d2882047089282038c7736a240" > < td class = "memItemLeft" align = "right" valign = "top" > int64  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a689636d2882047089282038c7736a240" > Cardinality< / a > () const< / td > < / tr >
< tr class = "memdesc:a689636d2882047089282038c7736a240" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the number of bits set to one. < a href = "#a689636d2882047089282038c7736a240" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a689636d2882047089282038c7736a240" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a42ea531fee4409ffb3be7b17cdb434ba" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a42ea531fee4409ffb3be7b17cdb434ba" > IsCardinalityZero< / a > () const< / td > < / tr >
< tr class = "memdesc:a42ea531fee4409ffb3be7b17cdb434ba" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Is bitset null? < a href = "#a42ea531fee4409ffb3be7b17cdb434ba" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a42ea531fee4409ffb3be7b17cdb434ba" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad7bc8a8c7fae5202eb61c2e5c9964108" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#ad7bc8a8c7fae5202eb61c2e5c9964108" > IsCardinalityOne< / a > () const< / td > < / tr >
< tr class = "memdesc:ad7bc8a8c7fae5202eb61c2e5c9964108" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Does it contains only one bit set? < a href = "#ad7bc8a8c7fae5202eb61c2e5c9964108" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ad7bc8a8c7fae5202eb61c2e5c9964108" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a62c1065eed9c23d62fe6febf90ea020d" > < td class = "memItemLeft" align = "right" valign = "top" > int64  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SmallRevBitSet.html#a62c1065eed9c23d62fe6febf90ea020d" > GetFirstOne< / a > () const< / td > < / tr >
< tr class = "memdesc:a62c1065eed9c23d62fe6febf90ea020d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Gets the index of the first bit set starting from 0. < a href = "#a62c1065eed9c23d62fe6febf90ea020d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a62c1065eed9c23d62fe6febf90ea020d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-07-12 13:25:23 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-06-13 15:36:14 +02:00
< a id = "a0984b7441a23c75de696103cadc044b5" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0984b7441a23c75de696103cadc044b5" > ◆ < / a > < / span > SmallRevBitSet()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > operations_research::SmallRevBitSet::SmallRevBitSet < / td >
< td > (< / td >
< td class = "paramtype" > int64  < / td >
< td class = "paramname" > < em > size< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > explicit< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a689636d2882047089282038c7736a240" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a689636d2882047089282038c7736a240" > ◆ < / a > < / span > Cardinality()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int64 operations_research::SmallRevBitSet::Cardinality < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Returns the number of bits set to one. < / p >
< / div >
< / div >
< a id = "a62c1065eed9c23d62fe6febf90ea020d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a62c1065eed9c23d62fe6febf90ea020d" > ◆ < / a > < / span > GetFirstOne()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int64 operations_research::SmallRevBitSet::GetFirstOne < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Gets the index of the first bit set starting from 0. < / p >
< p > It returns -1 if the bitset is empty. < / p >
< / div >
< / div >
< a id = "ad7bc8a8c7fae5202eb61c2e5c9964108" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad7bc8a8c7fae5202eb61c2e5c9964108" > ◆ < / a > < / span > IsCardinalityOne()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > bool operations_research::SmallRevBitSet::IsCardinalityOne < / 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 > Does it contains only one bit set? < / p >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00422" > 422< / a > of file < a class = "el" href = "constraint__solveri_8h_source.html" > constraint_solveri.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
< a id = "a42ea531fee4409ffb3be7b17cdb434ba" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a42ea531fee4409ffb3be7b17cdb434ba" > ◆ < / a > < / span > IsCardinalityZero()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > bool operations_research::SmallRevBitSet::IsCardinalityZero < / 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 > Is bitset null? < / p >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00420" > 420< / a > of file < a class = "el" href = "constraint__solveri_8h_source.html" > constraint_solveri.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
< a id = "a427373fdc21062991efa27f991862ff6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a427373fdc21062991efa27f991862ff6" > ◆ < / a > < / span > SetToOne()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::SmallRevBitSet::SetToOne < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const  < / td >
< td class = "paramname" > < em > solver< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int64  < / td >
< td class = "paramname" > < em > pos< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Sets the 'pos' bit. < / p >
< / div >
< / div >
< a id = "a22f35c8d356a6bc1dfb95bb36da6d37a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a22f35c8d356a6bc1dfb95bb36da6d37a" > ◆ < / a > < / span > SetToZero()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::SmallRevBitSet::SetToZero < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const  < / td >
< td class = "paramname" > < em > solver< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int64  < / td >
< td class = "paramname" > < em > pos< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Erases the 'pos' bit. < / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "constraint__solveri_8h_source.html" > constraint_solveri.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
2019-07-12 13:25:23 -07:00
< / div > <!-- doc - content -->
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >