-
Notifications
You must be signed in to change notification settings - Fork 0
/
BiMap_8h_source.html
203 lines (203 loc) · 32.1 KB
/
BiMap_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ROSE: BiMap.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link rel="search" href="search_opensearch.php?v=opensearch.xml" type="application/opensearchdescription+xml" title="ROSE"/>
<link href="roseDoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">ROSE<span id="projectnumber"> 0.11.145.141</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,true,'search.html','Search');
$(document).ready(function() {
if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }
});
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_859fdbd7312fa6fbda59c78acaef4f65.html">Sawyer</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">BiMap.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// WARNING: Changes to this file must be contributed back to Sawyer or else they will</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// be clobbered by the next update from Sawyer. The Sawyer repository is at</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// https://gitlab.com/charger7534/sawyer.git.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#ifndef Sawyer_BiMap_H</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#define Sawyer_BiMap_H</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <Sawyer/Map.h></span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include <Sawyer/Sawyer.h></span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include <boost/foreach.hpp></span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceSawyer.html">Sawyer</a> {</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">namespace </span>Container {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">template</span><<span class="keyword">class</span> S, <span class="keyword">class</span> T></div>
<div class="foldopen" id="foldopen00026" data-start="{" data-end="};">
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html"> 26</a></span><span class="keyword">class </span><a class="code hl_class" href="classSawyer_1_1Container_1_1BiMap.html">BiMap</a> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1"> 28</a></span> <span class="keyword">typedef</span> S <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1">Source</a>; </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7"> 29</a></span> <span class="keyword">typedef</span> T <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Target</a>; </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a234d892dcca528ea1a0fa1e2d0e5d992"> 30</a></span> <span class="keyword">typedef</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Sawyer::Container::Map<Source, Target></a> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a234d892dcca528ea1a0fa1e2d0e5d992">Forward</a>; </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a0b8aea06ddcefc0e78bf8ae29564007b"> 31</a></span> <span class="keyword">typedef</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Sawyer::Container::Map<Target, Source></a> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a0b8aea06ddcefc0e78bf8ae29564007b">Reverse</a>; </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Forward</a> forward_;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Reverse</a> reverse_;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a303bf8c6184dfb4bc6b34e8f087aeba0"> 39</a></span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a303bf8c6184dfb4bc6b34e8f087aeba0">BiMap</a>() {}</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#acb1bf96ffb28f0fbe495a6bc2e4b702b"> 42</a></span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#acb1bf96ffb28f0fbe495a6bc2e4b702b">BiMap</a>(<span class="keyword">const</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1BiMap.html">BiMap</a> &other);</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">template</span><<span class="keyword">class</span> U></div>
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a2296a53e842872f42a7f151db0ec1108"> 50</a></span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a2296a53e842872f42a7f151db0ec1108">BiMap</a>(<span class="keyword">const</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1BiMap.html">BiMap<Source, U></a> &a, <span class="keyword">const</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1BiMap.html">BiMap<U, Target></a> &b) {</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> BOOST_FOREACH (<span class="keyword">const</span> <span class="keyword">typename</span> Forward::Node &anode, a.forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#aa1de460308fa9fc917217acf9a723b44">nodes</a>()) {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span> (b.forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a4e0130d82c5890b18ba8f70497c53c72">exists</a>(anode.value())) {</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Target</a> &target = b.forward_[anode.value()];</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acadeb695d9d4e831e3b21f890d0ac39c">insert</a>(anode.key(), target);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acadeb695d9d4e831e3b21f890d0ac39c">insert</a>(target, anode.key());</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> }</div>
</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="foldopen" id="foldopen00063" data-start="{" data-end="}">
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a3b4dd2eb3314cdacf17e11cca08293b7"> 63</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a3b4dd2eb3314cdacf17e11cca08293b7">clear</a>() {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acf2693e499cfc44874e7e2ca79e1db23">clear</a>();</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acf2693e499cfc44874e7e2ca79e1db23">clear</a>();</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="foldopen" id="foldopen00072" data-start="{" data-end="}">
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a39a5f019afc35305b8acc88eea21bdf2"> 72</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a39a5f019afc35305b8acc88eea21bdf2">eraseSource</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1">Source</a> &source) {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">if</span> (!forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a4e0130d82c5890b18ba8f70497c53c72">exists</a>(source))</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(forward_[source]);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(source);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="foldopen" id="foldopen00084" data-start="{" data-end="}">
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#a657c436b0449be1a00c1595767386902"> 84</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a657c436b0449be1a00c1595767386902">eraseTarget</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Target</a> &target) {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">if</span> (!reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a4e0130d82c5890b18ba8f70497c53c72">exists</a>(target))</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(reverse_[target]);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(target);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="foldopen" id="foldopen00097" data-start="{" data-end="}">
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#af049e66ade4a63f35f154639f8463db6"> 97</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#af049e66ade4a63f35f154639f8463db6">erase</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1">Source</a> &source, <span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Target</a> &target) {</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">if</span> (!forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a4e0130d82c5890b18ba8f70497c53c72">exists</a>(source) || forward_[source]!=target)</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(source);</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">erase</a>(target);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> }</div>
</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="foldopen" id="foldopen00110" data-start="{" data-end="}">
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#acc041e95b9fde1ab6baf9f74dff9c438"> 110</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#acc041e95b9fde1ab6baf9f74dff9c438">insert</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1">Source</a> &source, <span class="keyword">const</span> <a class="code hl_typedef" href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Target</a> &target) {</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a39a5f019afc35305b8acc88eea21bdf2">eraseSource</a>(source);</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#a657c436b0449be1a00c1595767386902">eraseTarget</a>(target);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> forward_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acadeb695d9d4e831e3b21f890d0ac39c">insert</a>(source, target);</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> reverse_.<a class="code hl_function" href="classSawyer_1_1Container_1_1Map.html#acadeb695d9d4e831e3b21f890d0ac39c">insert</a>(target, source);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="foldopen" id="foldopen00120" data-start="{" data-end="}">
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#afdae520573a0e42ce4ba106241eb4eea"> 120</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Forward</a>& <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#afdae520573a0e42ce4ba106241eb4eea">forward</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordflow">return</span> forward_;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="foldopen" id="foldopen00127" data-start="{" data-end="}">
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classSawyer_1_1Container_1_1BiMap.html#ab8298050cc39debed9deb9ad9deecde6"> 127</a></span> <span class="keyword">const</span> <a class="code hl_class" href="classSawyer_1_1Container_1_1Map.html">Reverse</a>& <a class="code hl_function" href="classSawyer_1_1Container_1_1BiMap.html#ab8298050cc39debed9deb9ad9deecde6">reverse</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">return</span> reverse_;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span>};</div>
</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span>} <span class="comment">// namespace</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span>} <span class="comment">// namespace</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html">Sawyer::Container::BiMap</a></div><div class="ttdoc">One-to-one mapping between source and target values.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00026">BiMap.h:26</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a0b8aea06ddcefc0e78bf8ae29564007b"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a0b8aea06ddcefc0e78bf8ae29564007b">Sawyer::Container::BiMap::Reverse</a></div><div class="ttdeci">Sawyer::Container::Map< Target, Source > Reverse</div><div class="ttdoc">Type for range-to-domain map.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00031">BiMap.h:31</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a2296a53e842872f42a7f151db0ec1108"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a2296a53e842872f42a7f151db0ec1108">Sawyer::Container::BiMap::BiMap</a></div><div class="ttdeci">BiMap(const BiMap< Source, U > &a, const BiMap< U, Target > &b)</div><div class="ttdoc">Construct a new map by composition of two maps.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00050">BiMap.h:50</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a234d892dcca528ea1a0fa1e2d0e5d992"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a234d892dcca528ea1a0fa1e2d0e5d992">Sawyer::Container::BiMap::Forward</a></div><div class="ttdeci">Sawyer::Container::Map< Source, Target > Forward</div><div class="ttdoc">Type for domain-to-range map.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00030">BiMap.h:30</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a24be00dcbd9df5ebc3d1b4d92b8dd3d7"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a24be00dcbd9df5ebc3d1b4d92b8dd3d7">Sawyer::Container::BiMap::Target</a></div><div class="ttdeci">T Target</div><div class="ttdoc">Type of values in the range.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00029">BiMap.h:29</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a303bf8c6184dfb4bc6b34e8f087aeba0"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a303bf8c6184dfb4bc6b34e8f087aeba0">Sawyer::Container::BiMap::BiMap</a></div><div class="ttdeci">BiMap()</div><div class="ttdoc">Default constructor.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00039">BiMap.h:39</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a39a5f019afc35305b8acc88eea21bdf2"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a39a5f019afc35305b8acc88eea21bdf2">Sawyer::Container::BiMap::eraseSource</a></div><div class="ttdeci">bool eraseSource(const Source &source)</div><div class="ttdoc">Erase domain value and its associated range value.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00072">BiMap.h:72</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a3b4dd2eb3314cdacf17e11cca08293b7"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a3b4dd2eb3314cdacf17e11cca08293b7">Sawyer::Container::BiMap::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Erase all mappings.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00063">BiMap.h:63</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a5cf1d252e65041e0d9263a7f31feb9b1"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a5cf1d252e65041e0d9263a7f31feb9b1">Sawyer::Container::BiMap::Source</a></div><div class="ttdeci">S Source</div><div class="ttdoc">Type of values in the domain.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00028">BiMap.h:28</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_a657c436b0449be1a00c1595767386902"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#a657c436b0449be1a00c1595767386902">Sawyer::Container::BiMap::eraseTarget</a></div><div class="ttdeci">bool eraseTarget(const Target &target)</div><div class="ttdoc">Erase range value and its associated domain value.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00084">BiMap.h:84</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_ab8298050cc39debed9deb9ad9deecde6"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#ab8298050cc39debed9deb9ad9deecde6">Sawyer::Container::BiMap::reverse</a></div><div class="ttdeci">const Reverse & reverse() const</div><div class="ttdoc">Return reverse mapping.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00127">BiMap.h:127</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_acb1bf96ffb28f0fbe495a6bc2e4b702b"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#acb1bf96ffb28f0fbe495a6bc2e4b702b">Sawyer::Container::BiMap::BiMap</a></div><div class="ttdeci">BiMap(const BiMap &other)</div><div class="ttdoc">Copy constructor.</div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_acc041e95b9fde1ab6baf9f74dff9c438"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#acc041e95b9fde1ab6baf9f74dff9c438">Sawyer::Container::BiMap::insert</a></div><div class="ttdeci">void insert(const Source &source, const Target &target)</div><div class="ttdoc">Insert a new mapping.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00110">BiMap.h:110</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_af049e66ade4a63f35f154639f8463db6"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#af049e66ade4a63f35f154639f8463db6">Sawyer::Container::BiMap::erase</a></div><div class="ttdeci">bool erase(const Source &source, const Target &target)</div><div class="ttdoc">Erase a specific map entry.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00097">BiMap.h:97</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1BiMap_html_afdae520573a0e42ce4ba106241eb4eea"><div class="ttname"><a href="classSawyer_1_1Container_1_1BiMap.html#afdae520573a0e42ce4ba106241eb4eea">Sawyer::Container::BiMap::forward</a></div><div class="ttdeci">const Forward & forward() const</div><div class="ttdoc">Return forward mapping.</div><div class="ttdef"><b>Definition</b> <a href="BiMap_8h_source.html#l00120">BiMap.h:120</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html">Sawyer::Container::Map</a></div><div class="ttdoc">Container associating values with keys.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00072">Sawyer/Map.h:72</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html_a4e0130d82c5890b18ba8f70497c53c72"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html#a4e0130d82c5890b18ba8f70497c53c72">Sawyer::Container::Map::exists</a></div><div class="ttdeci">bool exists(const Key &key) const</div><div class="ttdoc">Determine if a key exists.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00493">Sawyer/Map.h:493</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html_a8c1af11399c1d51d35c2f06934a1afd1"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html#a8c1af11399c1d51d35c2f06934a1afd1">Sawyer::Container::Map::erase</a></div><div class="ttdeci">Map & erase(const Key &key)</div><div class="ttdoc">Remove a node with specified key.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00744">Sawyer/Map.h:744</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html_aa1de460308fa9fc917217acf9a723b44"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html#aa1de460308fa9fc917217acf9a723b44">Sawyer::Container::Map::nodes</a></div><div class="ttdeci">boost::iterator_range< NodeIterator > nodes()</div><div class="ttdoc">Iterators for container nodes.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00387">Sawyer/Map.h:387</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html_acadeb695d9d4e831e3b21f890d0ac39c"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html#acadeb695d9d4e831e3b21f890d0ac39c">Sawyer::Container::Map::insert</a></div><div class="ttdeci">Map & insert(const Key &key, const Value &value)</div><div class="ttdoc">Insert or update a key/value pair.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00646">Sawyer/Map.h:646</a></div></div>
<div class="ttc" id="aclassSawyer_1_1Container_1_1Map_html_acf2693e499cfc44874e7e2ca79e1db23"><div class="ttname"><a href="classSawyer_1_1Container_1_1Map.html#acf2693e499cfc44874e7e2ca79e1db23">Sawyer::Container::Map::clear</a></div><div class="ttdeci">Map & clear()</div><div class="ttdoc">Remove all nodes.</div><div class="ttdef"><b>Definition</b> <a href="Sawyer_2Map_8h_source.html#l00732">Sawyer/Map.h:732</a></div></div>
<div class="ttc" id="anamespaceSawyer_html"><div class="ttname"><a href="namespaceSawyer.html">Sawyer</a></div><div class="ttdoc">Sawyer support library.</div><div class="ttdef"><b>Definition</b> <a href="FeasiblePath_8h_source.html#l00767">FeasiblePath.h:767</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 2 2024 00:08:26 for ROSE by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>