OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [docs/] [html/] [ext/] [pb_assoc/] [hash_prime_size_policy.html] - Blame information for rev 20

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 jlechner
 
2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
 
4
 
5
<html>
6
<head>
7
<title>hash_prime_size_policy Interface
8
</title>
9
 
10
</head>
11
 
12
<body>
13
<h1>
14
<tt>hash_prime_size_policy
15
</tt>
16
 
17
 Interface
18
 
19
 
20
</h1>
21
 
22
<p>A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
23
</p>
24
 
25
<ol>
26
<li>
27
<a href = "../../../../include/ext/pb_assoc/hash_policy.hpp"><tt>hash_policy.hpp</tt>
28
</a>
29
 
30
</li>
31
 
32
<li>
33
Public Types and Constants:
34
 
35
 
36
<ol>
37
<li>
38
<a href = "#link1">General definitions.
39
</a>
40
 
41
</li>
42
 
43
</ol>
44
 
45
</li>
46
 
47
<li>
48
Public Methods:
49
 
50
 
51
<ol>
52
<li>
53
<a href = "#link2">Constructors, destructor, and related.
54
</a>
55
 
56
</li>
57
 
58
</ol>
59
 
60
</li>
61
 
62
<li>
63
Protected Methods:
64
 
65
 
66
<ol>
67
<li>
68
<a href = "#link3">Size methods
69
</a>
70
 
71
</li>
72
 
73
</ol>
74
 
75
</li>
76
 
77
</ol>
78
 
79
 
80
<h2>
81
<a name = "link1">General definitions.
82
</a>
83
 
84
</h2>
85
 
86
<table WIDTH = "100%" BORDER = "1">
87
<TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR>
88
 
89
 
90
<tr>
91
<td>
92
<pre><a name = "size_type3735929547">size_type</a></pre>
93
 
94
 
95
</td>
96
 
97
<td>
98
<pre>size_t</pre>
99
 
100
 
101
</td>
102
 
103
<td>
104
<p>Size type.</p>
105
 
106
 
107
</td>
108
 
109
</tr>
110
 
111
</table>
112
 
113
<h2>
114
<a name = "link2">Constructors, destructor, and related.
115
</a>
116
 
117
</h2>
118
 
119
<table WIDTH = "100%" BORDER = "1">
120
<TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
121
 
122
 
123
<tr>
124
<td>
125
<pre><b>inline</b> <b>void</b>
126
  swap
127
  (<font color = "olive">hash_prime_size_policy</font> &amp;r_other)</pre>
128
 
129
 
130
</td>
131
 
132
<td>
133
<p>Swaps content.</p>
134
 
135
 
136
</td>
137
 
138
</tr>
139
 
140
</table>
141
 
142
<h2>
143
<a name = "link3">Size methods
144
</a>
145
 
146
</h2>
147
 
148
<table WIDTH = "100%" BORDER = "1">
149
<TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR>
150
 
151
 
152
<tr>
153
<td>
154
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
155
  get_init_size
156
  (<a href = "#size_type3735929547">size_type</a> suggested_size) <b>const</b></pre>
157
 
158
 
159
</td>
160
 
161
<td>
162
<p>Given <font color = "#666666"><tt>suggested_size</tt></font>, a suggested size, returns an initial size of the container related to the initial size.</p>
163
 
164
 
165
</td>
166
 
167
</tr>
168
 
169
<tr>
170
<td>
171
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
172
  get_nearest_larger_size
173
  (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>
174
 
175
 
176
</td>
177
 
178
<td>
179
<p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is larger.</p>
180
 
181
 
182
</td>
183
 
184
</tr>
185
 
186
<tr>
187
<td>
188
<pre><b>inline</b> <a href = "#size_type3735929547">size_type</a>
189
  get_nearest_smaller_size
190
  (<a href = "#size_type3735929547">size_type</a> cur_size) <b>const</b></pre>
191
 
192
 
193
</td>
194
 
195
<td>
196
<p>Given <font color = "#666666"><tt>cur_size</tt></font>, the current size, returns a size that is smaller.</p>
197
 
198
 
199
</td>
200
 
201
</tr>
202
 
203
</table>
204
 
205
 
206
 
207
</body>
208
 
209
</html>
210
 
211
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.