2019-08-07 18:01:08 -07: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" >
2020-01-27 13:48:26 +01:00
< span id = "sfml" > Google OR-Tools 7.5< / span >
2019-08-07 18:01:08 -07:00
< / div >
< / div >
< div id = "content" style = "width: 100%; overflow: hidden;" >
< div style = "margin-left: 15px; margin-top: 5px; float: left; color: #145A32;" >
2019-08-12 09:16:03 -07:00
< h2 > C++ Reference< / h2 >
2019-08-07 18:01:08 -07:00
< ul >
< li > < a href = "../cpp_algorithms/annotated.html" > Algorithms< / a > < / li >
2019-08-12 09:16:03 -07:00
< li > < a href = "../cpp_sat/annotated.html" > CP-SAT< / a > < / li >
2019-08-07 18:01:08 -07:00
< li > < a href = "../cpp_graph/annotated.html" > Graph< / a > < / li >
< li > < a href = "../cpp_routing/annotated.html" > Routing< / a > < / li >
< li > < a href = "../cpp_linear/annotated.html" > Linear solver< / a > < / li >
< / ul >
< / div >
< div id = "content" >
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: Algorithms< / h1 >
< / div >
2020-04-23 15:34:43 +02:00
<!-- Generated by Doxygen 1.8.16 -->
2019-08-07 18:01:08 -07:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< 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 = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / li > < li class = "navelem" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html" > DynamicPermutation< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1DynamicPermutation-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > DynamicPermutation< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-08-12 23:15:11 -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 = "dynamic__permutation_8h_source.html#l00033" > 33< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-08-07 18:01:08 -07:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a460f2957b84beed593ad470bf7c7cd0d" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a460f2957b84beed593ad470bf7c7cd0d" > DynamicPermutation< / a > (int n)< / td > < / tr >
< tr class = "separator:a460f2957b84beed593ad470bf7c7cd0d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a24926108b770033792d015cb86aeffb3" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a24926108b770033792d015cb86aeffb3" > Size< / a > () const< / td > < / tr >
< tr class = "separator:a24926108b770033792d015cb86aeffb3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aeb46445d022e7bc495f212704791824a" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#aeb46445d022e7bc495f212704791824a" > AddMappings< / a > (const std::vector< int > & src, const std::vector< int > & dst)< / td > < / tr >
< tr class = "separator:aeb46445d022e7bc495f212704791824a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae8f61c84a06024a7d6343902f44e7e59" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#ae8f61c84a06024a7d6343902f44e7e59" > UndoLastMappings< / a > (std::vector< int > *undone_mapping_src)< / td > < / tr >
< tr class = "separator:ae8f61c84a06024a7d6343902f44e7e59" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a372de693ad40b3f42839c8ec6ac845f4" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a372de693ad40b3f42839c8ec6ac845f4" > Reset< / a > ()< / td > < / tr >
< tr class = "separator:a372de693ad40b3f42839c8ec6ac845f4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1976819faa164a8d10a66200dc2c3a96" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a1976819faa164a8d10a66200dc2c3a96" > ImageOf< / a > (int i) const< / td > < / tr >
< tr class = "separator:a1976819faa164a8d10a66200dc2c3a96" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac2e0aa1143397953759c0726ec2a865f" > < td class = "memItemLeft" align = "right" valign = "top" > const std::vector< int > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#ac2e0aa1143397953759c0726ec2a865f" > AllMappingsSrc< / a > () const< / td > < / tr >
< tr class = "separator:ac2e0aa1143397953759c0726ec2a865f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a5696c0cdd05c22a3fceab054e260660b" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a5696c0cdd05c22a3fceab054e260660b" > RootOf< / a > (int i) const< / td > < / tr >
< tr class = "separator:a5696c0cdd05c22a3fceab054e260660b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa0db30f1e3a5ede55abf64a29259d346" > < td class = "memItemLeft" align = "right" valign = "top" > const std::set< int > &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#aa0db30f1e3a5ede55abf64a29259d346" > LooseEnds< / a > () const< / td > < / tr >
< tr class = "separator:aa0db30f1e3a5ede55abf64a29259d346" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab2a3a88eea3373db70c745b7b700f79e" > < td class = "memItemLeft" align = "right" valign = "top" > std::unique_ptr< SparsePermutation >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#ab2a3a88eea3373db70c745b7b700f79e" > CreateSparsePermutation< / a > () const< / td > < / tr >
< tr class = "separator:ab2a3a88eea3373db70c745b7b700f79e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a764be64f3029f8b8e23511061d8de355" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1DynamicPermutation.html#a764be64f3029f8b8e23511061d8de355" > DebugString< / a > () const< / td > < / tr >
< tr class = "separator:a764be64f3029f8b8e23511061d8de355" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-08-12 23:15:11 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a460f2957b84beed593ad470bf7c7cd0d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a460f2957b84beed593ad470bf7c7cd0d" > ◆ < / a > < / span > DynamicPermutation()< / 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 = "classoperations__research_1_1DynamicPermutation.html" > DynamicPermutation< / a > < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > n< / 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 = "aeb46445d022e7bc495f212704791824a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aeb46445d022e7bc495f212704791824a" > ◆ < / a > < / span > AddMappings()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void AddMappings < / td >
< td > (< / td >
< td class = "paramtype" > const std::vector< int > &   < / td >
< td class = "paramname" > < em > src< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::vector< int > &   < / td >
< td class = "paramname" > < em > dst< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "ac2e0aa1143397953759c0726ec2a865f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac2e0aa1143397953759c0726ec2a865f" > ◆ < / a > < / span > AllMappingsSrc()< / 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> & AllMappingsSrc < / 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 = "dynamic__permutation_8h_source.html#l00067" > 67< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "ab2a3a88eea3373db70c745b7b700f79e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab2a3a88eea3373db70c745b7b700f79e" > ◆ < / a > < / span > CreateSparsePermutation()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::unique_ptr< SparsePermutation> CreateSparsePermutation < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a764be64f3029f8b8e23511061d8de355" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a764be64f3029f8b8e23511061d8de355" > ◆ < / 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" >
< / div >
< / div >
< a id = "a1976819faa164a8d10a66200dc2c3a96" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1976819faa164a8d10a66200dc2c3a96" > ◆ < / a > < / span > ImageOf()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int ImageOf < / 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 = "dynamic__permutation_8h_source.html#l00114" > 114< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "aa0db30f1e3a5ede55abf64a29259d346" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa0db30f1e3a5ede55abf64a29259d346" > ◆ < / a > < / span > LooseEnds()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const std::set< int> & LooseEnds < / 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 = "dynamic__permutation_8h_source.html#l00083" > 83< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a372de693ad40b3f42839c8ec6ac845f4" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a372de693ad40b3f42839c8ec6ac845f4" > ◆ < / a > < / span > Reset()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void Reset < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a5696c0cdd05c22a3fceab054e260660b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a5696c0cdd05c22a3fceab054e260660b" > ◆ < / a > < / span > RootOf()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int RootOf < / 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 = "dynamic__permutation_8h_source.html#l00121" > 121< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "a24926108b770033792d015cb86aeffb3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a24926108b770033792d015cb86aeffb3" > ◆ < / 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 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 = "dynamic__permutation_8h_source.html#l00038" > 38< / a > of file < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > .< / p >
< / div >
< / div >
< a id = "ae8f61c84a06024a7d6343902f44e7e59" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae8f61c84a06024a7d6343902f44e7e59" > ◆ < / a > < / span > UndoLastMappings()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void UndoLastMappings < / td >
< td > (< / td >
< td class = "paramtype" > std::vector< int > *  < / td >
< td class = "paramname" > < em > undone_mapping_src< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "dynamic__permutation_8h_source.html" > dynamic_permutation.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div >
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >