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-01-27 13:48:26 +01:00
<!-- Generated by Doxygen 1.8.18 -->
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_1MergingPartition.html" > MergingPartition< / 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_1MergingPartition-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > MergingPartition< / 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__partition_8h_source.html#l00203" > 203< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.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:a4aae0995dc07af7b81fb97104921328d" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a4aae0995dc07af7b81fb97104921328d" > MergingPartition< / a > ()< / td > < / tr >
< tr class = "separator:a4aae0995dc07af7b81fb97104921328d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac74287c1a8a25271ceeac05c740f6a12" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#ac74287c1a8a25271ceeac05c740f6a12" > MergingPartition< / a > (int num_nodes)< / td > < / tr >
< tr class = "separator:ac74287c1a8a25271ceeac05c740f6a12" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a50eca19efa71a0b70de25f9ad4a2a6f8" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a50eca19efa71a0b70de25f9ad4a2a6f8" > Reset< / a > (int num_nodes)< / td > < / tr >
< tr class = "separator:a50eca19efa71a0b70de25f9ad4a2a6f8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af7b62ca470d8de1c1dde577b04671fa7" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#af7b62ca470d8de1c1dde577b04671fa7" > NumNodes< / a > () const< / td > < / tr >
< tr class = "separator:af7b62ca470d8de1c1dde577b04671fa7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a612bd8d97219124a8d6fbac721bcdbc6" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a612bd8d97219124a8d6fbac721bcdbc6" > MergePartsOf< / a > (int node1, int node2)< / td > < / tr >
< tr class = "separator:a612bd8d97219124a8d6fbac721bcdbc6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac64dbed5d9196b941f3f53862f77309d" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#ac64dbed5d9196b941f3f53862f77309d" > GetRootAndCompressPath< / a > (int node)< / td > < / tr >
< tr class = "separator:ac64dbed5d9196b941f3f53862f77309d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a80761f181b521aa284b7e687776b9fde" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a80761f181b521aa284b7e687776b9fde" > KeepOnlyOneNodePerPart< / a > (std::vector< int > *nodes)< / td > < / tr >
< tr class = "separator:a80761f181b521aa284b7e687776b9fde" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a62cb833403d7861c5badb4de3389e06e" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a62cb833403d7861c5badb4de3389e06e" > FillEquivalenceClasses< / a > (std::vector< int > *node_equivalence_classes)< / td > < / tr >
< tr class = "separator:a62cb833403d7861c5badb4de3389e06e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6097c48821f010becb9a6910f4c39288" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a6097c48821f010becb9a6910f4c39288" > DebugString< / a > ()< / td > < / tr >
< tr class = "separator:a6097c48821f010becb9a6910f4c39288" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4368033ed0d5b2fc75727265e0c8f2d7" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a4368033ed0d5b2fc75727265e0c8f2d7" > ResetNode< / a > (int node)< / td > < / tr >
< tr class = "separator:a4368033ed0d5b2fc75727265e0c8f2d7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3d5f7b1e62f42b574085e671ae6dfb73" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#a3d5f7b1e62f42b574085e671ae6dfb73" > NumNodesInSamePartAs< / a > (int node)< / td > < / tr >
< tr class = "separator:a3d5f7b1e62f42b574085e671ae6dfb73" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae3df79e84e453454062c2c3789b7828e" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1MergingPartition.html#ae3df79e84e453454062c2c3789b7828e" > GetRoot< / a > (int node) const< / td > < / tr >
< tr class = "separator:ae3df79e84e453454062c2c3789b7828e" > < 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 = "a4aae0995dc07af7b81fb97104921328d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4aae0995dc07af7b81fb97104921328d" > ◆ < / a > < / span > MergingPartition() < span class = "overload" > [1/2]< / span > < / 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_1MergingPartition.html" > MergingPartition< / a > < / 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 = "dynamic__partition_8h_source.html#l00206" > 206< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< a id = "ac74287c1a8a25271ceeac05c740f6a12" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac74287c1a8a25271ceeac05c740f6a12" > ◆ < / a > < / span > MergingPartition() < span class = "overload" > [2/2]< / span > < / 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_1MergingPartition.html" > MergingPartition< / a > < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > num_nodes< / 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 = "dynamic__partition_8h_source.html#l00207" > 207< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "a6097c48821f010becb9a6910f4c39288" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6097c48821f010becb9a6910f4c39288" > ◆ < / 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 > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a62cb833403d7861c5badb4de3389e06e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a62cb833403d7861c5badb4de3389e06e" > ◆ < / a > < / span > FillEquivalenceClasses()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int FillEquivalenceClasses < / td >
< td > (< / td >
< td class = "paramtype" > std::vector< int > *  < / td >
< td class = "paramname" > < em > node_equivalence_classes< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "ae3df79e84e453454062c2c3789b7828e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae3df79e84e453454062c2c3789b7828e" > ◆ < / a > < / span > GetRoot()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int GetRoot < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node< / 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__partition_8h_source.html#l00314" > 314< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< a id = "ac64dbed5d9196b941f3f53862f77309d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac64dbed5d9196b941f3f53862f77309d" > ◆ < / a > < / span > GetRootAndCompressPath()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int GetRootAndCompressPath < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a80761f181b521aa284b7e687776b9fde" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a80761f181b521aa284b7e687776b9fde" > ◆ < / a > < / span > KeepOnlyOneNodePerPart()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void KeepOnlyOneNodePerPart < / td >
< td > (< / td >
< td class = "paramtype" > std::vector< int > *  < / td >
< td class = "paramname" > < em > nodes< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a612bd8d97219124a8d6fbac721bcdbc6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a612bd8d97219124a8d6fbac721bcdbc6" > ◆ < / a > < / span > MergePartsOf()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int MergePartsOf < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node1< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node2< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "af7b62ca470d8de1c1dde577b04671fa7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af7b62ca470d8de1c1dde577b04671fa7" > ◆ < / a > < / span > NumNodes()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int NumNodes < / 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__partition_8h_source.html#l00210" > 210< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< a id = "a3d5f7b1e62f42b574085e671ae6dfb73" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3d5f7b1e62f42b574085e671ae6dfb73" > ◆ < / a > < / span > NumNodesInSamePartAs()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int NumNodesInSamePartAs < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node< / 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 = "dynamic__partition_8h_source.html#l00251" > 251< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< a id = "a50eca19efa71a0b70de25f9ad4a2a6f8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a50eca19efa71a0b70de25f9ad4a2a6f8" > ◆ < / a > < / span > Reset()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void Reset < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > num_nodes< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< / div >
< / div >
< a id = "a4368033ed0d5b2fc75727265e0c8f2d7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4368033ed0d5b2fc75727265e0c8f2d7" > ◆ < / a > < / span > ResetNode()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void ResetNode < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > node< / 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 = "dynamic__partition_8h_source.html#l00339" > 339< / a > of file < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "dynamic__partition_8h_source.html" > dynamic_partition.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div >
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >