2019-06-26 07:59:17 +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"/> -->
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
< 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-26 07:59:17 +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-26 07:59:17 +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 >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
< / div > <!-- top -->
2019-07-12 11:43:12 -07:00
< 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& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classoperations__research_1_1SparsePermutation.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
2019-06-26 07:59:17 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1SparsePermutation-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > operations_research::SparsePermutation Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-07-12 11:43:12 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" >
< p class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00027" > 27< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-06-26 07:59:17 +02:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Classes< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structoperations__research_1_1SparsePermutation_1_1Iterator.html" > Iterator< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < 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:ab4ee5c7df12fcaeb042a8c52654569bd" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#ab4ee5c7df12fcaeb042a8c52654569bd" > SparsePermutation< / a > (int size)< / td > < / tr >
< tr class = "separator:ab4ee5c7df12fcaeb042a8c52654569bd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aff385d18c768ffa364c5dccb5fb35c0a" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#aff385d18c768ffa364c5dccb5fb35c0a" > Size< / a > () const< / td > < / tr >
< tr class = "separator:aff385d18c768ffa364c5dccb5fb35c0a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4941ad4a0095fa3bc4e8aa0e8fb521bf" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#a4941ad4a0095fa3bc4e8aa0e8fb521bf" > NumCycles< / a > () const< / td > < / tr >
< tr class = "separator:a4941ad4a0095fa3bc4e8aa0e8fb521bf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0b05b1e840388f9aba5bbe79a392d7d6" > < td class = "memItemLeft" align = "right" valign = "top" > const std::vector< int > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#a0b05b1e840388f9aba5bbe79a392d7d6" > Support< / a > () const< / td > < / tr >
< tr class = "separator:a0b05b1e840388f9aba5bbe79a392d7d6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a59a2f011b1fdc9a63d6557749542c354" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structoperations__research_1_1SparsePermutation_1_1Iterator.html" > Iterator< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#a59a2f011b1fdc9a63d6557749542c354" > Cycle< / a > (int i) const< / td > < / tr >
< tr class = "separator:a59a2f011b1fdc9a63d6557749542c354" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9fc0ca5752b5ad6cc2a78ff7c512b22a" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#a9fc0ca5752b5ad6cc2a78ff7c512b22a" > LastElementInCycle< / a > (int i) const< / td > < / tr >
< tr class = "separator:a9fc0ca5752b5ad6cc2a78ff7c512b22a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac1e64e1e738964d338be3cac2b2a58fd" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#ac1e64e1e738964d338be3cac2b2a58fd" > AddToCurrentCycle< / a > (int x)< / td > < / tr >
< tr class = "separator:ac1e64e1e738964d338be3cac2b2a58fd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac1e42a48198d2abc8642d81f6b846fee" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#ac1e42a48198d2abc8642d81f6b846fee" > CloseCurrentCycle< / a > ()< / td > < / tr >
< tr class = "separator:ac1e42a48198d2abc8642d81f6b846fee" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abca48ca404a02f35f06f295814407100" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#abca48ca404a02f35f06f295814407100" > RemoveCycles< / a > (const std::vector< int > & cycle_indices)< / td > < / tr >
< tr class = "separator:abca48ca404a02f35f06f295814407100" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6886dcada3acf697af20e88ce32a7ae1" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1SparsePermutation.html#a6886dcada3acf697af20e88ce32a7ae1" > DebugString< / a > () const< / td > < / tr >
< tr class = "separator:a6886dcada3acf697af20e88ce32a7ae1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-07-12 11:43:12 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-06-26 07:59:17 +02:00
< a id = "ab4ee5c7df12fcaeb042a8c52654569bd" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab4ee5c7df12fcaeb042a8c52654569bd" > ◆ < / a > < / span > SparsePermutation()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > operations_research::SparsePermutation::SparsePermutation < / td >
< td > (< / td >
< td class = "paramtype" > int  < / 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" > inline< / span > < span class = "mlabel" > explicit< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00029" > 29< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "ac1e64e1e738964d338be3cac2b2a58fd" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac1e64e1e738964d338be3cac2b2a58fd" > ◆ < / a > < / span > AddToCurrentCycle()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::SparsePermutation::AddToCurrentCycle < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > x< / em > < / td > < td > )< / td >
< td > < / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00084" > 84< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "ac1e42a48198d2abc8642d81f6b846fee" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac1e42a48198d2abc8642d81f6b846fee" > ◆ < / a > < / span > CloseCurrentCycle()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::SparsePermutation::CloseCurrentCycle < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00090" > 90< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a59a2f011b1fdc9a63d6557749542c354" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a59a2f011b1fdc9a63d6557749542c354" > ◆ < / a > < / span > Cycle()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "structoperations__research_1_1SparsePermutation_1_1Iterator.html" > SparsePermutation::Iterator< / a > operations_research::SparsePermutation::Cycle < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > i< / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00117" > 117< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a6886dcada3acf697af20e88ce32a7ae1" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6886dcada3acf697af20e88ce32a7ae1" > ◆ < / a > < / span > DebugString()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::string operations_research::SparsePermutation::DebugString < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a9fc0ca5752b5ad6cc2a78ff7c512b22a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a9fc0ca5752b5ad6cc2a78ff7c512b22a" > ◆ < / a > < / span > LastElementInCycle()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int operations_research::SparsePermutation::LastElementInCycle < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > i< / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00124" > 124< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a4941ad4a0095fa3bc4e8aa0e8fb521bf" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4941ad4a0095fa3bc4e8aa0e8fb521bf" > ◆ < / a > < / span > NumCycles()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int operations_research::SparsePermutation::NumCycles < / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00033" > 33< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "abca48ca404a02f35f06f295814407100" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#abca48ca404a02f35f06f295814407100" > ◆ < / a > < / span > RemoveCycles()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void operations_research::SparsePermutation::RemoveCycles < / td >
< td > (< / td >
< td class = "paramtype" > const std::vector< int > &   < / td >
< td class = "paramname" > < em > cycle_indices< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "aff385d18c768ffa364c5dccb5fb35c0a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aff385d18c768ffa364c5dccb5fb35c0a" > ◆ < / a > < / span > Size()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int operations_research::SparsePermutation::Size < / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00032" > 32< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a0b05b1e840388f9aba5bbe79a392d7d6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0b05b1e840388f9aba5bbe79a392d7d6" > ◆ < / a > < / span > Support()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const std::vector< int> & operations_research::SparsePermutation::Support < / 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 class = "definition" > Definition at line < a class = "el" href = "sparse__permutation_8h_source.html#l00037" > 37< / a > of file < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "sparse__permutation_8h_source.html" > sparse_permutation.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
2019-07-12 11:43:12 -07:00
< / div > <!-- doc - content -->
2019-06-26 07:59:17 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >