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" >
2020-01-27 13:48:26 +01:00
< span id = "sfml" > Google OR-Tools 7.5< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< 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 >
2019-06-13 15:36:14 +02:00
< div id = "content" >
2019-08-07 18:01:08 -07:00
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: Routing< / h1 >
< / div >
2020-01-27 13:48:26 +01:00
<!-- Generated by Doxygen 1.8.18 -->
2019-06-13 15:36:14 +02: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 >
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-08-07 18:01:08 -07:00
< 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_1RevImmutableMultiMap.html" > RevImmutableMultiMap< / a > < / li > < / ul >
2019-06-13 15:36:14 +02:00
< / div >
2019-08-07 18:01:08 -07:00
< / div > <!-- top -->
2019-06-13 15:36:14 +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_1RevImmutableMultiMap-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
2019-08-07 18:01:08 -07:00
< div class = "title" > RevImmutableMultiMap< K, V > < / div > < / div >
2019-06-13 15:36:14 +02:00
< / 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" > < h3 > template< class K, class V> < br / >
class operations_research::RevImmutableMultiMap< K, V > < / h3 >
2019-08-07 18:01:08 -07:00
2019-08-12 23:15:11 -07:00
< p > Reversible Immutable MultiMap class. < / p >
< p > Represents an immutable multi-map that backtracks with the solver. < / p >
2019-08-07 18:01:08 -07:00
2019-08-12 23:15:11 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00288" > 288< / a > of file < a class = "el" href = "constraint__solveri_8h_source.html" > constraint_solveri.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:a3c7e62a9a396c5d8fd2b85b762c2a850" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a3c7e62a9a396c5d8fd2b85b762c2a850" > RevImmutableMultiMap< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int initial_size)< / td > < / tr >
< tr class = "separator:a3c7e62a9a396c5d8fd2b85b762c2a850" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6053bb9c0d664074153ddfd9c7cd2598" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a6053bb9c0d664074153ddfd9c7cd2598" > ~RevImmutableMultiMap< / a > ()< / td > < / tr >
< tr class = "separator:a6053bb9c0d664074153ddfd9c7cd2598" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab273f390966237d6f5cdb9c45f5361d6" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#ab273f390966237d6f5cdb9c45f5361d6" > num_items< / a > () const< / td > < / tr >
< tr class = "separator:ab273f390966237d6f5cdb9c45f5361d6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8f6b848968f58150836b9fba3dea4aef" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a8f6b848968f58150836b9fba3dea4aef" > ContainsKey< / a > (const K & key) const< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:a8f6b848968f58150836b9fba3dea4aef" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns true if the multi-map contains at least one instance of 'key'. < a href = "classoperations__research_1_1RevImmutableMultiMap.html#a8f6b848968f58150836b9fba3dea4aef" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a8f6b848968f58150836b9fba3dea4aef" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abdfc0716a485fde5b997f58b1c4c822e" > < td class = "memItemLeft" align = "right" valign = "top" > const V &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#abdfc0716a485fde5b997f58b1c4c822e" > FindWithDefault< / a > (const K & key, const V & default_value) const< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:abdfc0716a485fde5b997f58b1c4c822e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns one value attached to 'key', or 'default_value' if 'key' is not in the multi-map. < a href = "classoperations__research_1_1RevImmutableMultiMap.html#abdfc0716a485fde5b997f58b1c4c822e" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:abdfc0716a485fde5b997f58b1c4c822e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0b5c13dc004b78fa86ae2a2e76f25f99" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a0b5c13dc004b78fa86ae2a2e76f25f99" > Insert< / a > (const K & key, const V & value)< / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr class = "memdesc:a0b5c13dc004b78fa86ae2a2e76f25f99" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Inserts (key, value) in the multi-map. < a href = "classoperations__research_1_1RevImmutableMultiMap.html#a0b5c13dc004b78fa86ae2a2e76f25f99" > More...< / a > < br / > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a0b5c13dc004b78fa86ae2a2e76f25f99" > < 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 = "a3c7e62a9a396c5d8fd2b85b762c2a850" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3c7e62a9a396c5d8fd2b85b762c2a850" > ◆ < / a > < / span > RevImmutableMultiMap()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > RevImmutableMultiMap< / a > < / td >
2019-06-13 15:36:14 +02:00
< 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" > int  < / td >
< td class = "paramname" > < em > initial_size< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / 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" >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00290" > 290< / 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 >
2019-08-07 18:01:08 -07:00
< a id = "a6053bb9c0d664074153ddfd9c7cd2598" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6053bb9c0d664074153ddfd9c7cd2598" > ◆ < / a > < / span > ~RevImmutableMultiMap()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > ~< a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > RevImmutableMultiMap< / a > < / td >
2019-06-13 15:36:14 +02:00
< 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" >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00298" > 298< / 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 >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a8f6b848968f58150836b9fba3dea4aef" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8f6b848968f58150836b9fba3dea4aef" > ◆ < / a > < / span > ContainsKey()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > bool ContainsKey < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramtype" > const K &   < / td >
< td class = "paramname" > < em > key< / 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 > Returns true if the multi-map contains at least one instance of 'key'. < / p >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00303" > 303< / 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 >
2019-08-07 18:01:08 -07:00
< a id = "abdfc0716a485fde5b997f58b1c4c822e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#abdfc0716a485fde5b997f58b1c4c822e" > ◆ < / a > < / span > FindWithDefault()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > const V& FindWithDefault < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramtype" > const K &   < / td >
< td class = "paramname" > < em > key< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const V &   < / td >
< td class = "paramname" > < em > default_value< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / 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 > Returns one value attached to 'key', or 'default_value' if 'key' is not in the multi-map. < / p >
< p > The actual value returned if more than one values is attached to the same key is not specified. < / p >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00318" > 318< / 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 >
2019-08-07 18:01:08 -07:00
< a id = "a0b5c13dc004b78fa86ae2a2e76f25f99" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0b5c13dc004b78fa86ae2a2e76f25f99" > ◆ < / a > < / span > Insert()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void Insert < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramtype" > const K &   < / td >
< td class = "paramname" > < em > key< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const V &   < / td >
< td class = "paramname" > < em > value< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / 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 > Inserts (key, value) in the multi-map. < / p >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00331" > 331< / 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 >
2019-08-07 18:01:08 -07:00
< a id = "ab273f390966237d6f5cdb9c45f5361d6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab273f390966237d6f5cdb9c45f5361d6" > ◆ < / a > < / span > num_items()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > int num_items < / td >
2019-06-13 15:36:14 +02:00
< 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" >
2019-07-05 00:25:55 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "constraint__solveri_8h_source.html#l00300" > 300< / 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-08-07 18:01:08 -07:00
< / div >
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >