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_1RevBitSet.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 = "#friends" > Friends< / a > |
< a href = "classoperations__research_1_1RevBitSet-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > operations_research::RevBitSet 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 reversible bitset. < / 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#l00435" > 435< / 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:a7369d4e2ea1843501af11edd89199b8c" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a7369d4e2ea1843501af11edd89199b8c" > RevBitSet< / a > (int64 size)< / td > < / tr >
< tr class = "separator:a7369d4e2ea1843501af11edd89199b8c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a72aaa0163218aec6e1ca39a8118fa584" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a72aaa0163218aec6e1ca39a8118fa584" > ~RevBitSet< / a > ()< / td > < / tr >
< tr class = "separator:a72aaa0163218aec6e1ca39a8118fa584" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:adfc5252facf16d1c14409cb9a148ba74" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#adfc5252facf16d1c14409cb9a148ba74" > SetToOne< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int64 index)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "memdesc:adfc5252facf16d1c14409cb9a148ba74" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sets the 'index' bit. < a href = "#adfc5252facf16d1c14409cb9a148ba74" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:adfc5252facf16d1c14409cb9a148ba74" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:a2b98b0fa690a28664a4a00212833a9c0" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a2b98b0fa690a28664a4a00212833a9c0" > SetToZero< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int64 index)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "memdesc:a2b98b0fa690a28664a4a00212833a9c0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Erases the 'index' bit. < a href = "#a2b98b0fa690a28664a4a00212833a9c0" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a2b98b0fa690a28664a4a00212833a9c0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6ebf10b8965ac7f2e21a3c24ab71da51" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a6ebf10b8965ac7f2e21a3c24ab71da51" > IsSet< / a > (int64 index) const< / td > < / tr >
< tr class = "memdesc:a6ebf10b8965ac7f2e21a3c24ab71da51" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns whether the 'index' bit is set. < a href = "#a6ebf10b8965ac7f2e21a3c24ab71da51" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a6ebf10b8965ac7f2e21a3c24ab71da51" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3ddbaa8d39c2a6861fad88aacb240bbe" > < td class = "memItemLeft" align = "right" valign = "top" > int64  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a3ddbaa8d39c2a6861fad88aacb240bbe" > Cardinality< / a > () const< / td > < / tr >
< tr class = "memdesc:a3ddbaa8d39c2a6861fad88aacb240bbe" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the number of bits set to one. < a href = "#a3ddbaa8d39c2a6861fad88aacb240bbe" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a3ddbaa8d39c2a6861fad88aacb240bbe" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adebeb9934a1a83cc6819db9b36ff7d3b" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#adebeb9934a1a83cc6819db9b36ff7d3b" > IsCardinalityZero< / a > () const< / td > < / tr >
< tr class = "memdesc:adebeb9934a1a83cc6819db9b36ff7d3b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Is bitset null? < a href = "#adebeb9934a1a83cc6819db9b36ff7d3b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:adebeb9934a1a83cc6819db9b36ff7d3b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a78fb408f50908d312ecbd9d50aefb500" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a78fb408f50908d312ecbd9d50aefb500" > IsCardinalityOne< / a > () const< / td > < / tr >
< tr class = "memdesc:a78fb408f50908d312ecbd9d50aefb500" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Does it contains only one bit set? < a href = "#a78fb408f50908d312ecbd9d50aefb500" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a78fb408f50908d312ecbd9d50aefb500" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae4b4610d76f45afc09f6ad9590062132" > < td class = "memItemLeft" align = "right" valign = "top" > int64  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#ae4b4610d76f45afc09f6ad9590062132" > GetFirstBit< / a > (int start) const< / td > < / tr >
< tr class = "memdesc:ae4b4610d76f45afc09f6ad9590062132" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Gets the index of the first bit set starting from start. < a href = "#ae4b4610d76f45afc09f6ad9590062132" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ae4b4610d76f45afc09f6ad9590062132" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:a20fc5ddbc3ee9a1da7d04386f1182738" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#a20fc5ddbc3ee9a1da7d04386f1182738" > ClearAll< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "memdesc:a20fc5ddbc3ee9a1da7d04386f1182738" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Cleans all bits. < a href = "#a20fc5ddbc3ee9a1da7d04386f1182738" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a20fc5ddbc3ee9a1da7d04386f1182738" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "friends" > < / a >
Friends< / h2 > < / td > < / tr >
< tr class = "memitem:ac9da3e5301f8c4c0ed8a261d0a0b2cbd" > < td class = "memItemLeft" align = "right" valign = "top" > class  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevBitSet.html#ac9da3e5301f8c4c0ed8a261d0a0b2cbd" > RevBitMatrix< / a > < / td > < / tr >
< tr class = "separator:ac9da3e5301f8c4c0ed8a261d0a0b2cbd" > < 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 = "a7369d4e2ea1843501af11edd89199b8c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7369d4e2ea1843501af11edd89199b8c" > ◆ < / a > < / span > RevBitSet()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > operations_research::RevBitSet::RevBitSet < / 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 >
< a id = "a72aaa0163218aec6e1ca39a8118fa584" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a72aaa0163218aec6e1ca39a8118fa584" > ◆ < / a > < / span > ~RevBitSet()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > operations_research::RevBitSet::~RevBitSet < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a3ddbaa8d39c2a6861fad88aacb240bbe" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3ddbaa8d39c2a6861fad88aacb240bbe" > ◆ < / a > < / span > Cardinality()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int64 operations_research::RevBitSet::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 = "a20fc5ddbc3ee9a1da7d04386f1182738" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a20fc5ddbc3ee9a1da7d04386f1182738" > ◆ < / a > < / span > ClearAll()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::RevBitSet::ClearAll < / 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 > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Cleans all bits. < / p >
< / div >
< / div >
< a id = "ae4b4610d76f45afc09f6ad9590062132" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae4b4610d76f45afc09f6ad9590062132" > ◆ < / a > < / span > GetFirstBit()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int64 operations_research::RevBitSet::GetFirstBit < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > start< / em > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Gets the index of the first bit set starting from start. < / p >
< p > It returns -1 if the bitset is empty after start. < / p >
< / div >
< / div >
< a id = "a78fb408f50908d312ecbd9d50aefb500" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a78fb408f50908d312ecbd9d50aefb500" > ◆ < / a > < / span > IsCardinalityOne()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool operations_research::RevBitSet::IsCardinalityOne < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Does it contains only one bit set? < / p >
< / div >
< / div >
< a id = "adebeb9934a1a83cc6819db9b36ff7d3b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#adebeb9934a1a83cc6819db9b36ff7d3b" > ◆ < / a > < / span > IsCardinalityZero()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool operations_research::RevBitSet::IsCardinalityZero < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Is bitset null? < / p >
< / div >
< / div >
< a id = "a6ebf10b8965ac7f2e21a3c24ab71da51" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6ebf10b8965ac7f2e21a3c24ab71da51" > ◆ < / a > < / span > IsSet()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool operations_research::RevBitSet::IsSet < / td >
< td > (< / td >
< td class = "paramtype" > int64  < / td >
< td class = "paramname" > < em > index< / em > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Returns whether the 'index' bit is set. < / p >
< / div >
< / div >
< a id = "adfc5252facf16d1c14409cb9a148ba74" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#adfc5252facf16d1c14409cb9a148ba74" > ◆ < / a > < / span > SetToOne()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::RevBitSet::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 > index< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Sets the 'index' bit. < / p >
< / div >
< / div >
< a id = "a2b98b0fa690a28664a4a00212833a9c0" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2b98b0fa690a28664a4a00212833a9c0" > ◆ < / a > < / span > SetToZero()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::RevBitSet::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 > index< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Erases the 'index' bit. < / p >
< / div >
< / div >
< h2 class = "groupheader" > Friends And Related Function Documentation< / h2 >
< a id = "ac9da3e5301f8c4c0ed8a261d0a0b2cbd" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac9da3e5301f8c4c0ed8a261d0a0b2cbd" > ◆ < / a > < / span > RevBitMatrix< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > friend class < a class = "el" href = "classoperations__research_1_1RevBitMatrix.html" > RevBitMatrix< / a > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > friend< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00458" > 458< / 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 >
< 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 >