]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> | |
4 | <title>Examples</title> | |
5 | <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> | |
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.74.0"> | |
7 | <link rel="home" href="../index.html" title="Chapter 1. Boost.Icl"> | |
8 | <link rel="up" href="../index.html" title="Chapter 1. Boost.Icl"> | |
9 | <link rel="prev" href="../index.html" title="Chapter 1. Boost.Icl"> | |
10 | <link rel="next" href="examples/party.html" title="Party"> | |
11 | </head> | |
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | |
13 | <table cellpadding="2" width="100%"><tr> | |
14 | <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> | |
15 | <td align="center"><a href="../../../../../index.html">Home</a></td> | |
16 | <td align="center"><a href="../../../../libraries.htm">Libraries</a></td> | |
17 | <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> | |
18 | <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> | |
19 | <td align="center"><a href="../../../../../more/index.htm">More</a></td> | |
20 | </tr></table> | |
21 | <hr> | |
22 | <div class="spirit-nav"> | |
23 | <a accesskey="p" href="../index.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples/party.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
24 | </div> | |
25 | <div class="section boost_icl_examples" lang="en"> | |
26 | <div class="titlepage"><div><div><h2 class="title" style="clear: both"> | |
27 | <a name="boost_icl.examples"></a><a class="link" href="examples.html" title="Examples">Examples</a> | |
28 | </h2></div></div></div> | |
29 | <div class="toc"><dl> | |
30 | <dt><span class="section"><a href="examples.html#boost_icl.examples.overview">Overview</a></span></dt> | |
31 | <dt><span class="section"><a href="examples/party.html">Party</a></span></dt> | |
32 | <dt><span class="section"><a href="examples/interval.html">Interval</a></span></dt> | |
33 | <dt><span class="section"><a href="examples/dynamic_interval.html">Dynamic interval</a></span></dt> | |
34 | <dt><span class="section"><a href="examples/static_interval.html">Static interval</a></span></dt> | |
35 | <dt><span class="section"><a href="examples/interval_container.html">Interval container</a></span></dt> | |
36 | <dt><span class="section"><a href="examples/overlap_counter.html">Overlap counter</a></span></dt> | |
37 | <dt><span class="section"><a href="examples/partys_height_average.html"> Party's height | |
38 | average</a></span></dt> | |
39 | <dt><span class="section"><a href="examples/partys_tallest_guests.html"> Party's tallest | |
40 | guests</a></span></dt> | |
41 | <dt><span class="section"><a href="examples/time_grids.html"> Time grids for months | |
42 | and weeks</a></span></dt> | |
43 | <dt><span class="section"><a href="examples/man_power.html">Man power</a></span></dt> | |
44 | <dt><span class="section"><a href="examples/user_groups.html">User groups</a></span></dt> | |
45 | <dt><span class="section"><a href="examples/std_copy.html">Std copy</a></span></dt> | |
46 | <dt><span class="section"><a href="examples/std_transform.html">Std transform</a></span></dt> | |
47 | <dt><span class="section"><a href="examples/custom_interval.html">Custom interval</a></span></dt> | |
48 | </dl></div> | |
49 | <div class="section boost_icl_examples_overview" lang="en"> | |
50 | <div class="titlepage"><div><div><h3 class="title"> | |
51 | <a name="boost_icl.examples.overview"></a><a class="link" href="examples.html#boost_icl.examples.overview" title="Overview">Overview</a> | |
52 | </h3></div></div></div> | |
53 | <div class="table"> | |
54 | <a name="id1021865"></a><p class="title"><b>Table 1.5. Overview over Icl Examples</b></p> | |
55 | <div class="table-contents"><table class="table" summary="Overview over Icl Examples"> | |
56 | <colgroup> | |
57 | <col> | |
58 | <col> | |
59 | <col> | |
60 | <col> | |
61 | </colgroup> | |
62 | <thead><tr> | |
63 | <th> | |
64 | <p> | |
65 | level | |
66 | </p> | |
67 | </th> | |
68 | <th> | |
69 | <p> | |
70 | example | |
71 | </p> | |
72 | </th> | |
73 | <th> | |
74 | <p> | |
75 | classes | |
76 | </p> | |
77 | </th> | |
78 | <th> | |
79 | <p> | |
80 | features | |
81 | </p> | |
82 | </th> | |
83 | </tr></thead> | |
84 | <tbody> | |
85 | <tr> | |
86 | <td> | |
87 | <p> | |
88 | intro | |
89 | </p> | |
90 | </td> | |
91 | <td> | |
92 | <p> | |
93 | <a class="link" href="examples/party.html" title="Party">Party</a> | |
94 | </p> | |
95 | </td> | |
96 | <td> | |
97 | <p> | |
98 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
99 | </p> | |
100 | </td> | |
101 | <td> | |
102 | <p> | |
103 | Generates an attendance history of a party by inserting into an <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>. Demonstrating | |
104 | <span class="emphasis"><em><span class="bold"><strong>aggregate on overlap</strong></span></em></span>. | |
105 | </p> | |
106 | </td> | |
107 | </tr> | |
108 | <tr> | |
109 | <td> | |
110 | <p> | |
111 | basic | |
112 | </p> | |
113 | </td> | |
114 | <td> | |
115 | <p> | |
116 | <a class="link" href="examples/interval.html" title="Interval">Interval</a> | |
117 | </p> | |
118 | </td> | |
119 | <td> | |
120 | <p> | |
121 | <code class="computeroutput"><a class="link" href="../boost/icl/discrete_interval.html" title="Class template discrete_interval">discrete_interval</a></code>, | |
122 | <code class="computeroutput"><a class="link" href="../boost/icl/continuous_interval.html" title="Class template continuous_interval">continuous_interval</a></code> | |
123 | </p> | |
124 | </td> | |
125 | <td> | |
126 | <p> | |
127 | Intervals for discrete and continuous instance types. Closed and open | |
128 | interval borders. | |
129 | </p> | |
130 | </td> | |
131 | </tr> | |
132 | <tr> | |
133 | <td> | |
134 | <p> | |
135 | basic | |
136 | </p> | |
137 | </td> | |
138 | <td> | |
139 | <p> | |
140 | <a class="link" href="examples/dynamic_interval.html" title="Dynamic interval">Dynamic intervals</a> | |
141 | </p> | |
142 | </td> | |
143 | <td> | |
144 | <p> | |
145 | <code class="computeroutput"><a class="link" href="../boost/icl/discrete_interval.html" title="Class template discrete_interval">discrete_interval</a></code>, | |
146 | <code class="computeroutput"><a class="link" href="../boost/icl/continuous_interval.html" title="Class template continuous_interval">continuous_interval</a></code>, | |
147 | <code class="computeroutput"><a class="link" href="../boost/icl/interval.html" title="Struct template interval">interval</a></code> | |
148 | </p> | |
149 | </td> | |
150 | <td> | |
151 | <p> | |
152 | Intervals with dynamic interval bounds as library default. | |
153 | </p> | |
154 | </td> | |
155 | </tr> | |
156 | <tr> | |
157 | <td> | |
158 | <p> | |
159 | basic | |
160 | </p> | |
161 | </td> | |
162 | <td> | |
163 | <p> | |
164 | <a class="link" href="examples/static_interval.html" title="Static interval">Static intervals</a> | |
165 | </p> | |
166 | </td> | |
167 | <td> | |
168 | <p> | |
169 | <code class="computeroutput"><a class="link" href="../boost/icl/right_open_interval.html" title="Class template right_open_interval">right_open_interval</a></code>, | |
170 | <code class="computeroutput"><a class="link" href="../boost/icl/interval.html" title="Struct template interval">interval</a></code> | |
171 | </p> | |
172 | </td> | |
173 | <td> | |
174 | <p> | |
175 | Intervals with static interval bounds and changing the library default. | |
176 | </p> | |
177 | </td> | |
178 | </tr> | |
179 | <tr> | |
180 | <td> | |
181 | <p> | |
182 | basic | |
183 | </p> | |
184 | </td> | |
185 | <td> | |
186 | <p> | |
187 | <a class="link" href="examples/interval_container.html" title="Interval container">Interval container</a> | |
188 | </p> | |
189 | </td> | |
190 | <td> | |
191 | <p> | |
192 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>,<br> | |
193 | <code class="computeroutput"><a class="link" href="../boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>,<br> | |
194 | <code class="computeroutput"><a class="link" href="../boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code>,<br> | |
195 | <code class="computeroutput"><a class="link" href="../boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code>,<br> | |
196 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
197 | </p> | |
198 | </td> | |
199 | <td> | |
200 | <p> | |
201 | Basic characteristics of interval containers. | |
202 | </p> | |
203 | </td> | |
204 | </tr> | |
205 | <tr> | |
206 | <td> | |
207 | <p> | |
208 | basic | |
209 | </p> | |
210 | </td> | |
211 | <td> | |
212 | <p> | |
213 | <a class="link" href="examples/overlap_counter.html" title="Overlap counter">Overlap counter</a> | |
214 | </p> | |
215 | </td> | |
216 | <td> | |
217 | <p> | |
218 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
219 | </p> | |
220 | </td> | |
221 | <td> | |
222 | <p> | |
223 | The most simple application of an interval map: Counting the overlaps | |
224 | of added intervals. | |
225 | </p> | |
226 | </td> | |
227 | </tr> | |
228 | <tr> | |
229 | <td> | |
230 | <p> | |
231 | advanced | |
232 | </p> | |
233 | </td> | |
234 | <td> | |
235 | <p> | |
236 | <a class="link" href="examples/partys_height_average.html" title="Party's height average">Party's height | |
237 | average</a> | |
238 | </p> | |
239 | </td> | |
240 | <td> | |
241 | <p> | |
242 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
243 | </p> | |
244 | </td> | |
245 | <td> | |
246 | <p> | |
247 | Using <span class="emphasis"><em>aggregate on overlap</em></span> a history of height | |
248 | averages of party guests is computed. Associated values are user defined | |
249 | class objects, that implement an appropriate <code class="computeroutput"><span class="keyword">operator</span> | |
250 | <span class="special">+=</span></code> for the aggregation. | |
251 | </p> | |
252 | </td> | |
253 | </tr> | |
254 | <tr> | |
255 | <td> | |
256 | <p> | |
257 | advanced | |
258 | </p> | |
259 | </td> | |
260 | <td> | |
261 | <p> | |
262 | <a class="link" href="examples/partys_tallest_guests.html" title="Party's tallest guests">Party's tallest | |
263 | guests</a> | |
264 | </p> | |
265 | </td> | |
266 | <td> | |
267 | <p> | |
268 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>,<br> | |
269 | <code class="computeroutput"><a class="link" href="../boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code> | |
270 | </p> | |
271 | </td> | |
272 | <td> | |
273 | <p> | |
274 | Using <span class="emphasis"><em>aggregate on overlap</em></span> the heights of the | |
275 | party's tallest guests are computed. Associated values are aggregated | |
276 | via a maximum functor, that can be chosen as template parameter of | |
277 | an interval_map class template. | |
278 | </p> | |
279 | </td> | |
280 | </tr> | |
281 | <tr> | |
282 | <td> | |
283 | <p> | |
284 | advanced | |
285 | </p> | |
286 | </td> | |
287 | <td> | |
288 | <p> | |
289 | <a class="link" href="examples/time_grids.html" title="Time grids for months and weeks">Time grids for months | |
290 | and weeks</a> | |
291 | </p> | |
292 | </td> | |
293 | <td> | |
294 | <p> | |
295 | <code class="computeroutput"><a class="link" href="../boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code> | |
296 | </p> | |
297 | </td> | |
298 | <td> | |
299 | <p> | |
300 | Shows how the <span class="emphasis"><em><span class="bold"><strong>border preserving</strong></span></em></span> | |
301 | <code class="computeroutput"><a class="link" href="../boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code> | |
302 | can be used to create time partitions where different periodic time | |
303 | intervals overlay each other. | |
304 | </p> | |
305 | </td> | |
306 | </tr> | |
307 | <tr> | |
308 | <td> | |
309 | <p> | |
310 | advanced | |
311 | </p> | |
312 | </td> | |
313 | <td> | |
314 | <p> | |
315 | <a class="link" href="examples/man_power.html" title="Man power">Man power</a> | |
316 | </p> | |
317 | </td> | |
318 | <td> | |
319 | <p> | |
320 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>,<br> | |
321 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
322 | </p> | |
323 | </td> | |
324 | <td> | |
325 | <p> | |
326 | Set style operations on <code class="computeroutput"><a class="link" href="../boost/icl/interval_set.html" title="Class template interval_set">interval_sets</a></code> | |
327 | and <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_maps</a></code> | |
328 | like union, difference and intersection can be used to obtain calculations | |
329 | in a flexible way. Example <span class="bold"><strong>man_power</strong></span> | |
330 | demonstrates such operations in the process of calculating the available | |
331 | man-power of a company in a given time interval. | |
332 | </p> | |
333 | </td> | |
334 | </tr> | |
335 | <tr> | |
336 | <td> | |
337 | <p> | |
338 | advanced | |
339 | </p> | |
340 | </td> | |
341 | <td> | |
342 | <p> | |
343 | <a class="link" href="examples/user_groups.html" title="User groups">User groups</a> | |
344 | </p> | |
345 | </td> | |
346 | <td> | |
347 | <p> | |
348 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
349 | </p> | |
350 | </td> | |
351 | <td> | |
352 | <p> | |
353 | Example <span class="bold"><strong>user_groups</strong></span> shows how interval_maps | |
354 | can be unified or intersected to calculate desired information. | |
355 | </p> | |
356 | </td> | |
357 | </tr> | |
358 | <tr> | |
359 | <td> | |
360 | <p> | |
361 | and std | |
362 | </p> | |
363 | </td> | |
364 | <td> | |
365 | <p> | |
366 | <a class="link" href="examples/std_copy.html" title="Std copy">Std copy</a> | |
367 | </p> | |
368 | </td> | |
369 | <td> | |
370 | <p> | |
371 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> | |
372 | </p> | |
373 | </td> | |
374 | <td> | |
375 | <p> | |
376 | Fill interval containers using <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span></code>. | |
377 | </p> | |
378 | </td> | |
379 | </tr> | |
380 | <tr> | |
381 | <td> | |
382 | <p> | |
383 | and std | |
384 | </p> | |
385 | </td> | |
386 | <td> | |
387 | <p> | |
388 | <a class="link" href="examples/std_transform.html" title="Std transform">Std transform</a> | |
389 | </p> | |
390 | </td> | |
391 | <td> | |
392 | <p> | |
393 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>,<br> | |
394 | <code class="computeroutput"><a class="link" href="../boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code> | |
395 | </p> | |
396 | </td> | |
397 | <td> | |
398 | <p> | |
399 | Fill interval containers from user defined objects using <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">transform</span></code>. | |
400 | </p> | |
401 | </td> | |
402 | </tr> | |
403 | <tr> | |
404 | <td> | |
405 | <p> | |
406 | customize | |
407 | </p> | |
408 | </td> | |
409 | <td> | |
410 | <p> | |
411 | <a class="link" href="examples/custom_interval.html" title="Custom interval">Custom interval</a> | |
412 | </p> | |
413 | </td> | |
414 | <td> | |
415 | <p> | |
416 | <code class="computeroutput"><a class="link" href="../boost/icl/interval_traits.html" title="Struct template interval_traits">interval_traits</a></code> | |
417 | </p> | |
418 | </td> | |
419 | <td> | |
420 | <p> | |
421 | Use interval containers with your own interval class types. | |
422 | </p> | |
423 | </td> | |
424 | </tr> | |
425 | </tbody> | |
426 | </table></div> | |
427 | </div> | |
428 | <br class="table-break"> | |
429 | </div> | |
430 | </div> | |
431 | <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> | |
432 | <td align="left"></td> | |
433 | <td align="right"><div class="copyright-footer">Copyright © 2007 -2010 Joachim Faulhaber<br>Copyright © 1999 -2006 Cortex Software GmbH<p> | |
434 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
435 | file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) | |
436 | </p> | |
437 | </div></td> | |
438 | </tr></table> | |
439 | <hr> | |
440 | <div class="spirit-nav"> | |
441 | <a accesskey="p" href="../index.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples/party.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> | |
442 | </div> | |
443 | </body> | |
444 | </html> |