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_1RevImmutableMultiMap.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
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" >
< div class = "title" > operations_research::RevImmutableMultiMap< K, V > Class Template 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" > < h3 > template< class K, class V> < br / >
class operations_research::RevImmutableMultiMap< K, V > < / h3 >
2019-06-13 15:36:14 +02:00
2019-07-12 13:25:23 -07:00
< p > Reversible Immutable MultiMap class. < / p >
< p > Represents an immutable multi-map that backtracks with the solver. < / 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#l00288" > 288< / 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 >
2019-07-05 00:25:55 +02:00
< tr class = "memitem:afbd7546d603df82059ed3b8a13a3241a" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#afbd7546d603df82059ed3b8a13a3241a" > RevImmutableMultiMap< / a > (< a class = "el" href = "classoperations__research_1_1Solver.html" > Solver< / a > *const solver, int initial_size)< / td > < / tr >
2019-06-13 15:36:14 +02:00
< tr class = "separator:afbd7546d603df82059ed3b8a13a3241a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af8f8619f77a20868de764b036066dc3b" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#af8f8619f77a20868de764b036066dc3b" > ~RevImmutableMultiMap< / a > ()< / td > < / tr >
< tr class = "separator:af8f8619f77a20868de764b036066dc3b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae509969cf05f560f829ce4e0ed3aab1c" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#ae509969cf05f560f829ce4e0ed3aab1c" > num_items< / a > () const< / td > < / tr >
< tr class = "separator:ae509969cf05f560f829ce4e0ed3aab1c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a55a49c7e6673d8ec5a30b3255899a23a" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a55a49c7e6673d8ec5a30b3255899a23a" > ContainsKey< / a > (const K & key) const< / td > < / tr >
< tr class = "memdesc:a55a49c7e6673d8ec5a30b3255899a23a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns true if the multi-map contains at least one instance of 'key'. < a href = "#a55a49c7e6673d8ec5a30b3255899a23a" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a55a49c7e6673d8ec5a30b3255899a23a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a84ccc9de1e12d064f1ccf77e344dd86b" > < td class = "memItemLeft" align = "right" valign = "top" > const V &   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a84ccc9de1e12d064f1ccf77e344dd86b" > FindWithDefault< / a > (const K & key, const V & default_value) const< / td > < / tr >
< tr class = "memdesc:a84ccc9de1e12d064f1ccf77e344dd86b" > < 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 = "#a84ccc9de1e12d064f1ccf77e344dd86b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a84ccc9de1e12d064f1ccf77e344dd86b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a00d0083447f546e8a43744ed5063e98d" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html#a00d0083447f546e8a43744ed5063e98d" > Insert< / a > (const K & key, const V & value)< / td > < / tr >
< tr class = "memdesc:a00d0083447f546e8a43744ed5063e98d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Inserts (key, value) in the multi-map. < a href = "#a00d0083447f546e8a43744ed5063e98d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a00d0083447f546e8a43744ed5063e98d" > < 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 = "afbd7546d603df82059ed3b8a13a3241a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#afbd7546d603df82059ed3b8a13a3241a" > ◆ < / a > < / span > RevImmutableMultiMap()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::< a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > RevImmutableMultiMap< / a > < / 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" > 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 >
< a id = "af8f8619f77a20868de764b036066dc3b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af8f8619f77a20868de764b036066dc3b" > ◆ < / a > < / span > ~RevImmutableMultiMap()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::~< a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > RevImmutableMultiMap< / 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" >
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 >
< a id = "a55a49c7e6673d8ec5a30b3255899a23a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a55a49c7e6673d8ec5a30b3255899a23a" > ◆ < / a > < / span > ContainsKey()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > bool < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::ContainsKey < / td >
< 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 >
< a id = "a84ccc9de1e12d064f1ccf77e344dd86b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a84ccc9de1e12d064f1ccf77e344dd86b" > ◆ < / a > < / span > FindWithDefault()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > const V& < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::FindWithDefault < / td >
< 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 >
< a id = "a00d0083447f546e8a43744ed5063e98d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a00d0083447f546e8a43744ed5063e98d" > ◆ < / a > < / span > Insert()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::Insert < / td >
< 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 >
< a id = "ae509969cf05f560f829ce4e0ed3aab1c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae509969cf05f560f829ce4e0ed3aab1c" > ◆ < / a > < / span > num_items()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< div class = "memtemplate" >
template< class K , class V > < / div >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > int < a class = "el" href = "classoperations__research_1_1RevImmutableMultiMap.html" > operations_research::RevImmutableMultiMap< / a > < K, V > ::num_items < / 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" >
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-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 >