/usr/share/doc/libucommon-dev/a00195_source.html is in libucommon-doc 3.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 | <!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucommon/linked.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>ucommon/linked.h</h1><a href="a00195.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2006-2010 David Sugar, Tycho Softworks.</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">// This file is part of GNU uCommon C++.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// GNU uCommon C++ is free software: you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">// it under the terms of the GNU Lesser General Public License as published </span>
<a name="l00007"></a>00007 <span class="comment">// by the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">// (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">//</span>
<a name="l00010"></a>00010 <span class="comment">// GNU uCommon C++ is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00013"></a>00013 <span class="comment">// GNU Lesser General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment">//</span>
<a name="l00015"></a>00015 <span class="comment">// You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00016"></a>00016 <span class="comment">// along with GNU uCommon C++. If not, see <http://www.gnu.org/licenses/>.</span>
<a name="l00017"></a>00017
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _UCOMMON_LINKED_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _UCOMMON_LINKED_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef _UCOMMON_CONFIG_H_</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="a00201.html" title="Various miscelanous platform specific headers and defines.">ucommon/platform.h</a>></span>
<a name="l00037"></a>00037 <span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _UCOMMON_OBJECT_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="a00199.html" title="A common object base class with auto-pointer support.">ucommon/object.h</a>></span>
<a name="l00041"></a>00041 <span class="preprocessor">#endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 NAMESPACE_UCOMMON
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="keyword">class </span>OrderedObject;
<a name="l00046"></a>00046
<a name="l00054"></a><a class="code" href="a00069.html">00054</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> : <span class="keyword">public</span> <a class="code" href="a00093.html" title="A common base class for all managed objects.">Object</a>
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 <span class="keyword">protected</span>:
<a name="l00057"></a>00057 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>;
<a name="l00058"></a>00058 <span class="keyword">friend</span> <span class="keyword">class </span>LinkedRing;
<a name="l00059"></a>00059 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>;
<a name="l00060"></a>00060 <span class="keyword">friend</span> <span class="keyword">class </span>ObjectStack;
<a name="l00061"></a>00061
<a name="l00062"></a>00062 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *next;
<a name="l00063"></a>00063
<a name="l00068"></a>00068 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root);
<a name="l00069"></a>00069
<a name="l00075"></a>00075 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>();
<a name="l00076"></a>00076
<a name="l00077"></a>00077 <span class="keyword">public</span>:
<a name="l00078"></a><a class="code" href="a00069.html#a54237cb4de3198ac1fd527c46682e98a">00078</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *nil;
<a name="l00079"></a><a class="code" href="a00069.html#a736ae1cb599e22be8a2393b61cf2ffb7">00079</a> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *inv;
<a name="l00081"></a>00081 <span class="keyword">virtual</span> ~<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>();
<a name="l00082"></a>00082
<a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00093.html#abe05f81356bdc73e67df7fb8a0ec59d5" title="Method to release (or decrease retention) of an object.">release</a>(<span class="keywordtype">void</span>);
<a name="l00087"></a>00087
<a name="l00091"></a>00091 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00093.html#aa7f0e5e4c160c0f155266afdb6ecddc6" title="Method to retain (or increase retention) of an object.">retain</a>(<span class="keywordtype">void</span>);
<a name="l00092"></a>00092
<a name="l00099"></a>00099 <span class="keywordtype">void</span> enlist(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root);
<a name="l00100"></a>00100
<a name="l00107"></a>00107 <span class="keywordtype">void</span> delist(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root);
<a name="l00108"></a>00108
<a name="l00113"></a>00113 <span class="keywordtype">bool</span> isMember(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *list) <span class="keyword">const</span>;
<a name="l00114"></a>00114
<a name="l00119"></a>00119 <span class="keyword">static</span> <span class="keywordtype">void</span> purge(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *root);
<a name="l00120"></a>00120
<a name="l00125"></a>00125 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> count(<span class="keyword">const</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *root);
<a name="l00126"></a>00126
<a name="l00133"></a>00133 <span class="keyword">static</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *getIndexed(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *root, <span class="keywordtype">unsigned</span> index);
<a name="l00134"></a>00134
<a name="l00139"></a><a class="code" href="a00069.html#acc25bd6615a2163028724910135b2cd2">00139</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *getNext(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00140"></a>00140 <span class="keyword"> </span>{<span class="keywordflow">return</span> next;};
<a name="l00141"></a>00141 };
<a name="l00142"></a>00142
<a name="l00152"></a><a class="code" href="a00113.html">00152</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00113.html" title="Reusable objects for forming private heaps.">ReusableObject</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00153"></a>00153 {
<a name="l00154"></a>00154 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00112.html" title="Class for resource bound memory pools between threads.">ReusableAllocator</a>;
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="keyword">protected</span>:
<a name="l00157"></a>00157 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00069.html#aef3c383204f52cba1ae9c88d56f69612" title="Release list, mark as no longer linked.">release</a>(<span class="keywordtype">void</span>);
<a name="l00158"></a>00158
<a name="l00159"></a>00159 <span class="keyword">public</span>:
<a name="l00164"></a><a class="code" href="a00113.html#ab25f9ac1beccb460a053c74d842dd1c5">00164</a> <span class="keyword">inline</span> <a class="code" href="a00113.html" title="Reusable objects for forming private heaps.">ReusableObject</a> *<a class="code" href="a00069.html#acc25bd6615a2163028724910135b2cd2" title="Get next effective object when iterating.">getNext</a>(<span class="keywordtype">void</span>)
<a name="l00165"></a>00165 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00113.html" title="Reusable objects for forming private heaps.">ReusableObject</a>*<span class="keyword">></span>(LinkedObject::getNext());};
<a name="l00166"></a>00166 };
<a name="l00167"></a>00167
<a name="l00175"></a><a class="code" href="a00099.html">00175</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>
<a name="l00176"></a>00176 {
<a name="l00177"></a>00177 <span class="keyword">protected</span>:
<a name="l00178"></a>00178 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>;
<a name="l00179"></a>00179 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a>;
<a name="l00180"></a>00180 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>;
<a name="l00181"></a>00181 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>;
<a name="l00182"></a>00182
<a name="l00183"></a>00183 <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *head, *tail;
<a name="l00184"></a>00184
<a name="l00185"></a>00185 <span class="keyword">public</span>:
<a name="l00189"></a>00189 <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>();
<a name="l00190"></a>00190
<a name="l00194"></a>00194 <span class="keyword">virtual</span> ~<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>();
<a name="l00195"></a>00195
<a name="l00200"></a>00200 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *find(<span class="keywordtype">unsigned</span> offset) <span class="keyword">const</span>;
<a name="l00201"></a>00201
<a name="l00206"></a>00206 <span class="keywordtype">unsigned</span> count(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00207"></a>00207
<a name="l00211"></a>00211 <span class="keywordtype">void</span> purge(<span class="keywordtype">void</span>);
<a name="l00212"></a>00212
<a name="l00217"></a>00217 <span class="keyword">virtual</span> <span class="keywordtype">void</span> lock_index(<span class="keywordtype">void</span>);
<a name="l00218"></a>00218
<a name="l00223"></a>00223 <span class="keyword">virtual</span> <span class="keywordtype">void</span> unlock_index(<span class="keywordtype">void</span>);
<a name="l00224"></a>00224
<a name="l00231"></a>00231 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **index(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00232"></a>00232
<a name="l00238"></a>00238 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keyword">get</span>(void);
<a name="l00239"></a>00239
<a name="l00244"></a>00244 <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *ordered);
<a name="l00245"></a>00245
<a name="l00251"></a><a class="code" href="a00099.html#a94cee0aa6530635604b5af542ddbe551">00251</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *getIndexed(<span class="keywordtype">unsigned</span> index)<span class="keyword"> const</span>
<a name="l00252"></a>00252 <span class="keyword"> </span>{<span class="keywordflow">return</span> LinkedObject::getIndexed((<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>*)head, index);};
<a name="l00253"></a>00253
<a name="l00258"></a><a class="code" href="a00099.html#a1f80e970f1803ac2502f645a2b973e3d">00258</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *begin(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00259"></a>00259 <span class="keyword"> </span>{<span class="keywordflow">return</span> (<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>*)(head);};
<a name="l00260"></a>00260
<a name="l00265"></a><a class="code" href="a00099.html#a93229b195c0fe1acd4d131c9e0f085f1">00265</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *end(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00266"></a>00266 <span class="keyword"> </span>{<span class="keywordflow">return</span> (<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>*)(tail);};
<a name="l00267"></a>00267
<a name="l00272"></a><a class="code" href="a00099.html#a535b4bc575cf470d38187383f59963a0">00272</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *operator*()<span class="keyword"> const</span>
<a name="l00273"></a>00273 <span class="keyword"> </span>{<span class="keywordflow">return</span> (<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>*)(head);};
<a name="l00274"></a>00274
<a name="l00279"></a>00279 <span class="keywordtype">void</span> operator*=(<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *<span class="keywordtype">object</span>);
<a name="l00280"></a>00280 };
<a name="l00281"></a>00281
<a name="l00288"></a><a class="code" href="a00100.html">00288</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> : <span class="keyword">public</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>
<a name="l00289"></a>00289 {
<a name="l00290"></a>00290 <span class="keyword">protected</span>:
<a name="l00291"></a>00291 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>;
<a name="l00292"></a>00292 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>;
<a name="l00293"></a>00293 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a>;
<a name="l00294"></a>00294 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>;
<a name="l00295"></a>00295
<a name="l00300"></a>00300 <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00301"></a>00301
<a name="l00305"></a>00305 <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>();
<a name="l00306"></a>00306
<a name="l00307"></a>00307 <span class="keyword">public</span>:
<a name="l00312"></a>00312 <span class="keywordtype">void</span> enlistTail(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00313"></a>00313
<a name="l00318"></a>00318 <span class="keywordtype">void</span> enlistHead(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00319"></a>00319
<a name="l00325"></a>00325 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00069.html#a5a850fcfc39ac2f3b6397d58234dfbbe" title="Add our object to an existing linked list through a pointer.">enlist</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00326"></a>00326
<a name="l00331"></a>00331 <span class="keywordtype">void</span> <a class="code" href="a00069.html#aa1e5d28d2645d0042a6f1f9f7ca7bf21" title="Locate and remove ourselves from a list of objects.">delist</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00332"></a>00332
<a name="l00337"></a><a class="code" href="a00100.html#a474f11168e0fb3c9674df8ca949958c5">00337</a> <span class="keyword">inline</span> <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *<a class="code" href="a00069.html#acc25bd6615a2163028724910135b2cd2" title="Get next effective object when iterating.">getNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00338"></a>00338 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *<span class="keyword">></span>(LinkedObject::getNext());};
<a name="l00339"></a>00339 };
<a name="l00340"></a>00340
<a name="l00345"></a><a class="code" href="a00051.html">00345</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> : <span class="keyword">public</span> <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>
<a name="l00346"></a>00346 {
<a name="l00347"></a>00347 <span class="keyword">public</span>:
<a name="l00348"></a>00348 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>;
<a name="l00349"></a>00349
<a name="l00353"></a>00353 <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a>();
<a name="l00354"></a>00354
<a name="l00355"></a>00355 <span class="keyword">protected</span>:
<a name="l00359"></a>00359 <span class="keywordtype">void</span> <a class="code" href="a00100.html#a8e83ede0a43af5c5f650a58949383ded" title="Remove our ordered object from an existing index.">delist</a>(<span class="keywordtype">void</span>);
<a name="l00360"></a>00360
<a name="l00361"></a>00361 <span class="keyword">private</span>:
<a name="l00362"></a>00362 <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *prev;
<a name="l00363"></a>00363 };
<a name="l00364"></a>00364
<a name="l00379"></a><a class="code" href="a00090.html">00379</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> : <span class="keyword">public</span> <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>
<a name="l00380"></a>00380 {
<a name="l00381"></a>00381 <span class="keyword">protected</span>:
<a name="l00382"></a>00382 <span class="keywordtype">char</span> *id;
<a name="l00383"></a>00383
<a name="l00387"></a>00387 <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>();
<a name="l00388"></a>00388
<a name="l00395"></a>00395 <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keywordtype">char</span> *name, <span class="keywordtype">unsigned</span> size = 1);
<a name="l00396"></a>00396
<a name="l00403"></a>00403 <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index, <span class="keywordtype">char</span> *name);
<a name="l00404"></a>00404
<a name="l00412"></a>00412 ~<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>();
<a name="l00413"></a>00413
<a name="l00418"></a>00418 <span class="keyword">virtual</span> <span class="keywordtype">void</span> clearId(<span class="keywordtype">void</span>);
<a name="l00419"></a>00419
<a name="l00420"></a>00420 <span class="keyword">public</span>:
<a name="l00427"></a>00427 <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keywordtype">char</span> *name, <span class="keywordtype">unsigned</span> size = 1);
<a name="l00428"></a>00428
<a name="l00434"></a>00434 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="a00069.html#a3647fadcc70bb5ae4442819fd49ac0eb" title="Release all objects from a list.">purge</a>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keywordtype">unsigned</span> size);
<a name="l00435"></a>00435
<a name="l00444"></a>00444 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **index(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keywordtype">unsigned</span> size);
<a name="l00445"></a>00445
<a name="l00451"></a>00451 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <a class="code" href="a00069.html#a76f478125e3a86e3f9ad7effecc8e586" title="Count the number of linked objects in a list.">count</a>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keywordtype">unsigned</span> size);
<a name="l00452"></a>00452
<a name="l00460"></a>00460 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *find(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *root, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00461"></a>00461
<a name="l00468"></a>00468 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *<span class="keyword">remove</span>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **root, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00469"></a>00469
<a name="l00477"></a>00477 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *map(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">unsigned</span> size);
<a name="l00478"></a>00478
<a name="l00486"></a>00486 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *<span class="keyword">remove</span>(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">unsigned</span> size);
<a name="l00487"></a>00487
<a name="l00495"></a>00495 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *skip(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **hash, <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *current, <span class="keywordtype">unsigned</span> size);
<a name="l00496"></a>00496
<a name="l00502"></a>00502 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> keyindex(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">unsigned</span> size);
<a name="l00503"></a>00503
<a name="l00511"></a>00511 <span class="keyword">static</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **sort(<a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **list, <span class="keywordtype">size_t</span> count = 0);
<a name="l00512"></a>00512
<a name="l00517"></a><a class="code" href="a00090.html#ac94a45bc0e7e47974b633631618ba7c8">00517</a> <span class="keyword">inline</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *<a class="code" href="a00100.html#a474f11168e0fb3c9674df8ca949958c5" title="Get next ordered member when iterating.">getNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00518"></a>00518 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>*<span class="keyword">></span>(LinkedObject::getNext());};
<a name="l00519"></a>00519
<a name="l00524"></a><a class="code" href="a00090.html#aac9a46fa502a90af1dfa15f1e3db0f51">00524</a> <span class="keyword">inline</span> <span class="keywordtype">char</span> *getId(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00525"></a>00525 <span class="keyword"> </span>{<span class="keywordflow">return</span> id;};
<a name="l00526"></a>00526
<a name="l00534"></a>00534 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> compare(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;
<a name="l00535"></a>00535
<a name="l00541"></a><a class="code" href="a00090.html#a17f09254985bf541c53fdb6b73f63915">00541</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l00542"></a>00542 <span class="keyword"> </span>{<span class="keywordflow">return</span> compare(name);};
<a name="l00543"></a>00543
<a name="l00549"></a><a class="code" href="a00090.html#a648563d4ccfac1d330a0ee16a7587f9d">00549</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l00550"></a>00550 <span class="keyword"> </span>{<span class="keywordflow">return</span> !compare(name);};
<a name="l00551"></a>00551 };
<a name="l00552"></a>00552
<a name="l00560"></a><a class="code" href="a00091.html">00560</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> : <span class="keyword">public</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>
<a name="l00561"></a>00561 {
<a name="l00562"></a>00562 <span class="keyword">protected</span>:
<a name="l00563"></a>00563 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *parent;
<a name="l00564"></a>00564 <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> child;
<a name="l00565"></a>00565
<a name="l00570"></a>00570 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(<span class="keywordtype">char</span> *name = NULL);
<a name="l00571"></a>00571
<a name="l00577"></a>00577 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(<a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *parent, <span class="keywordtype">char</span> *name);
<a name="l00578"></a>00578
<a name="l00583"></a>00583 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(<span class="keyword">const</span> <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>& source);
<a name="l00584"></a>00584
<a name="l00590"></a>00590 <span class="keyword">virtual</span> ~<a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>();
<a name="l00591"></a>00591
<a name="l00597"></a>00597 <span class="keywordtype">void</span> <a class="code" href="a00090.html#ab83b2a31974926f3b85fc426c09ff4fa" title="Purge a hash indexed table of named objects.">purge</a>(<span class="keywordtype">void</span>);
<a name="l00598"></a>00598
<a name="l00599"></a>00599 <span class="keyword">public</span>:
<a name="l00608"></a>00608 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *<a class="code" href="a00090.html#ad697807015660c82e4931443e14fb9de" title="Find a named object from a simple list.">find</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;
<a name="l00609"></a>00609
<a name="l00620"></a>00620 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *path(<span class="keyword">const</span> <span class="keywordtype">char</span> *path) <span class="keyword">const</span>;
<a name="l00621"></a>00621
<a name="l00629"></a>00629 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *leaf(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;
<a name="l00630"></a>00630
<a name="l00636"></a>00636 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *getChild(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;
<a name="l00637"></a>00637
<a name="l00644"></a>00644 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *getLeaf(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>;
<a name="l00645"></a>00645
<a name="l00652"></a><a class="code" href="a00091.html#ad553ecec86497e7ae7aba4cd646baaee">00652</a> <span class="keyword">inline</span> <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *getFirst(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00653"></a>00653 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *<span class="keyword">></span>(child.begin());};
<a name="l00654"></a>00654
<a name="l00659"></a><a class="code" href="a00091.html#a9897638754f6d57453002582e281dc07">00659</a> <span class="keyword">inline</span> <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *getParent(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00660"></a>00660 <span class="keyword"> </span>{<span class="keywordflow">return</span> parent;};
<a name="l00661"></a>00661
<a name="l00667"></a><a class="code" href="a00091.html#a004db01da217bd59aff1de44cc91a947">00667</a> <span class="keyword">inline</span> <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *<a class="code" href="a00069.html#aa05bd011f5b59c745448d3da22aea7b5" title="Get member by index.">getIndexed</a>(<span class="keywordtype">unsigned</span> index)<span class="keyword"> const</span>
<a name="l00668"></a>00668 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *<span class="keyword">></span>(child.getIndexed(index));};
<a name="l00669"></a>00669
<a name="l00674"></a><a class="code" href="a00091.html#a10ffac7ad77a894dc7263fcd58663e48">00674</a> <span class="keyword">inline</span> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *getIndex(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00675"></a>00675 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">const_cast<</span><a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>*<span class="keyword">></span>(&child);};
<a name="l00676"></a>00676
<a name="l00681"></a><a class="code" href="a00091.html#a8595e2fc2dd69c2e24037950015ac9d8">00681</a> <span class="keyword">inline</span> operator bool()<span class="keyword"> const</span>
<a name="l00682"></a>00682 <span class="keyword"> </span>{<span class="keywordflow">return</span> (<span class="keywordtype">id</span> != NULL);};
<a name="l00683"></a>00683
<a name="l00688"></a><a class="code" href="a00091.html#a4a65caa183a600dd141ac2ba3bcfdabf">00688</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!()<span class="keyword"> const</span>
<a name="l00689"></a>00689 <span class="keyword"> </span>{<span class="keywordflow">return</span> (<span class="keywordtype">id</span> == NULL);};
<a name="l00690"></a>00690
<a name="l00696"></a>00696 <span class="keywordtype">void</span> setId(<span class="keywordtype">char</span> *name);
<a name="l00697"></a>00697
<a name="l00702"></a>00702 <span class="keywordtype">void</span> <span class="keyword">remove</span>(void);
<a name="l00703"></a>00703
<a name="l00708"></a><a class="code" href="a00091.html#ae9ad15913b1c5f42feed8715c67e1f93">00708</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isLeaf(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00709"></a>00709 <span class="keyword"> </span>{<span class="keywordflow">return</span> (child.begin() == NULL);};
<a name="l00710"></a>00710
<a name="l00715"></a><a class="code" href="a00091.html#a9ecda05f7d9e721a80e91da1d9c13044">00715</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isRoot(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00716"></a>00716 <span class="keyword"> </span>{<span class="keywordflow">return</span> (parent == NULL);};
<a name="l00717"></a>00717
<a name="l00722"></a>00722 <span class="keywordtype">void</span> relistTail(<a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *trunk);
<a name="l00723"></a>00723
<a name="l00728"></a>00728 <span class="keywordtype">void</span> relistHead(<a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *trunk);
<a name="l00729"></a>00729
<a name="l00734"></a><a class="code" href="a00091.html#ab8dba2e7749b0f4aaf55422e4b39beb1">00734</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> relist(<a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a> *trunk = NULL)
<a name="l00735"></a>00735 {relistTail(trunk);};
<a name="l00736"></a>00736 };
<a name="l00737"></a>00737
<a name="l00744"></a><a class="code" href="a00068.html">00744</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> : <span class="keyword">public</span> <a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a>
<a name="l00745"></a>00745 {
<a name="l00746"></a>00746 <span class="keyword">protected</span>:
<a name="l00747"></a>00747 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>;
<a name="l00748"></a>00748
<a name="l00749"></a>00749 <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *prev;
<a name="l00750"></a>00750 <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *root;
<a name="l00751"></a>00751
<a name="l00756"></a>00756 <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00757"></a>00757
<a name="l00761"></a>00761 <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>();
<a name="l00762"></a>00762
<a name="l00767"></a>00767 <span class="keyword">virtual</span> ~<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>();
<a name="l00768"></a>00768
<a name="l00769"></a>00769 <span class="keyword">public</span>:
<a name="l00773"></a>00773 <span class="keywordtype">void</span> <a class="code" href="a00100.html#a8e83ede0a43af5c5f650a58949383ded" title="Remove our ordered object from an existing index.">delist</a>(<span class="keywordtype">void</span>);
<a name="l00774"></a>00774
<a name="l00780"></a>00780 <span class="keywordtype">void</span> <a class="code" href="a00100.html#a448ac5c0801cc0218308b805ff685834" title="List our ordered object at start of a linked list on an index.">enlistHead</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00781"></a>00781
<a name="l00787"></a>00787 <span class="keywordtype">void</span> <a class="code" href="a00100.html#a1b2bb11963c706aa04582833aa05b2d2" title="List our ordered object at end of a linked list on an index.">enlistTail</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00788"></a>00788
<a name="l00794"></a>00794 <span class="keywordtype">void</span> <a class="code" href="a00100.html#a90929a08fd0825096a4ca3ed3512d958" title="List our ordered object in default strategy mode.">enlist</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index);
<a name="l00795"></a>00795
<a name="l00800"></a><a class="code" href="a00068.html#aec44668ca0c569d780fc0e91b93de9af">00800</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isHead(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00801"></a>00801 <span class="keyword"> </span>{<span class="keywordflow">return</span> root->head == (<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keyword">this</span>;};
<a name="l00802"></a>00802
<a name="l00807"></a><a class="code" href="a00068.html#a75d0839b2b50ef71d8926ecc9f56aa5c">00807</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isTail(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00808"></a>00808 <span class="keyword"> </span>{<span class="keywordflow">return</span> root->tail == (<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keyword">this</span>;};
<a name="l00809"></a>00809
<a name="l00814"></a><a class="code" href="a00068.html#adf30e3c7aedcaba4be3f5b8accc3a56a">00814</a> <span class="keyword">inline</span> <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *getPrev(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00815"></a>00815 <span class="keyword"> </span>{<span class="keywordflow">return</span> prev;};
<a name="l00816"></a>00816
<a name="l00821"></a><a class="code" href="a00068.html#a357f9ca691c64644d42d9630fd9ca288">00821</a> <span class="keyword">inline</span> <a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<a class="code" href="a00100.html#a474f11168e0fb3c9674df8ca949958c5" title="Get next ordered member when iterating.">getNext</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00822"></a>00822 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a>*<span class="keyword">></span>(LinkedObject::getNext());};
<a name="l00823"></a>00823
<a name="l00828"></a>00828 <span class="keywordtype">void</span> insertTail(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>);
<a name="l00829"></a>00829
<a name="l00834"></a>00834 <span class="keywordtype">void</span> insertHead(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>);
<a name="l00835"></a>00835
<a name="l00840"></a>00840 <span class="keyword">virtual</span> <span class="keywordtype">void</span> insert(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>);
<a name="l00841"></a>00841
<a name="l00846"></a><a class="code" href="a00068.html#aa1343f215617af84361213306ff7d8f2">00846</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator+=(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>)
<a name="l00847"></a>00847 {insertTail(<span class="keywordtype">object</span>);};
<a name="l00848"></a>00848
<a name="l00853"></a><a class="code" href="a00068.html#a77b5fca123358eabd50e1ad68d85327e">00853</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator-=(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>)
<a name="l00854"></a>00854 {insertHead(<span class="keywordtype">object</span>);};
<a name="l00855"></a>00855
<a name="l00860"></a><a class="code" href="a00068.html#a53885d06f4276e82d5791c267ef6ff1e">00860</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator*=(<a class="code" href="a00068.html" title="A double linked list object.">LinkedList</a> *<span class="keywordtype">object</span>)
<a name="l00861"></a>00861 {insert(<span class="keywordtype">object</span>);};
<a name="l00862"></a>00862 };
<a name="l00863"></a>00863
<a name="l00869"></a><a class="code" href="a00095.html">00869</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a> : <span class="keyword">public</span> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>
<a name="l00870"></a>00870 {
<a name="l00871"></a>00871 <span class="keyword">public</span>:
<a name="l00875"></a>00875 <a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>();
<a name="l00876"></a>00876
<a name="l00881"></a>00881 <span class="keywordtype">void</span> <a class="code" href="a00099.html#abc4bdc5bb3bbde08453dcb764a3e0fb9" title="Add an object into the ordered index.">add</a>(<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<span class="keywordtype">object</span>);
<a name="l00882"></a>00882
<a name="l00887"></a>00887 <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<span class="keywordtype">object</span>);
<a name="l00888"></a>00888
<a name="l00893"></a>00893 <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>);
<a name="l00894"></a>00894
<a name="l00899"></a>00899 <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>);
<a name="l00900"></a>00900 };
<a name="l00901"></a>00901
<a name="l00902"></a>00902 <span class="keyword">class </span>__EXPORT ObjectStack
<a name="l00903"></a>00903 {
<a name="l00904"></a>00904 <span class="keyword">protected</span>:
<a name="l00905"></a>00905 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *root;
<a name="l00906"></a>00906
<a name="l00907"></a>00907 <span class="keyword">public</span>:
<a name="l00911"></a>00911 ObjectStack();
<a name="l00912"></a>00912
<a name="l00917"></a>00917 ObjectStack(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *list);
<a name="l00918"></a>00918
<a name="l00923"></a>00923 <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keywordtype">object</span>);
<a name="l00924"></a>00924
<a name="l00929"></a>00929 <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>);
<a name="l00930"></a>00930
<a name="l00935"></a>00935 <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>)
<a name="l00936"></a>00936 {<span class="keywordflow">return</span> <a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">ObjectStack::pull</a>();};
<a name="l00937"></a>00937 };
<a name="l00938"></a>00938
<a name="l00939"></a>00939
<a name="l00945"></a><a class="code" href="a00084.html">00945</a> <span class="keyword">class </span>__EXPORT <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> : <span class="keyword">public</span> <a class="code" href="a00113.html" title="Reusable objects for forming private heaps.">ReusableObject</a>
<a name="l00946"></a>00946 {
<a name="l00947"></a>00947 <span class="keyword">private</span>:
<a name="l00948"></a>00948 <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00949"></a>00949 <span class="keyword">const</span> <span class="keywordtype">char</span> *key;
<a name="l00950"></a>00950 <span class="keywordtype">size_t</span> keysize;
<a name="l00951"></a>00951 <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> *next;
<a name="l00952"></a>00952 <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> **root;
<a name="l00953"></a>00953 } link_t;
<a name="l00954"></a>00954
<a name="l00955"></a>00955 <span class="keywordtype">unsigned</span> paths;
<a name="l00956"></a>00956 link_t *links;
<a name="l00957"></a>00957
<a name="l00958"></a>00958 <span class="keyword">protected</span>:
<a name="l00963"></a>00963 <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a>(<span class="keywordtype">unsigned</span> count);
<a name="l00964"></a>00964
<a name="l00968"></a>00968 <span class="keyword">virtual</span> ~<a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a>();
<a name="l00969"></a>00969
<a name="l00977"></a>00977 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> compare(<span class="keywordtype">unsigned</span> path, caddr_t key, <span class="keywordtype">size_t</span> size) <span class="keyword">const</span>;
<a name="l00978"></a>00978
<a name="l00979"></a>00979 <span class="keyword">public</span>:
<a name="l00985"></a>00985 <span class="keywordtype">void</span> <a class="code" href="a00069.html#a5a850fcfc39ac2f3b6397d58234dfbbe" title="Add our object to an existing linked list through a pointer.">enlist</a>(<span class="keywordtype">unsigned</span> path, <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> **root);
<a name="l00986"></a>00986
<a name="l00995"></a>00995 <span class="keywordtype">void</span> <a class="code" href="a00069.html#a5a850fcfc39ac2f3b6397d58234dfbbe" title="Add our object to an existing linked list through a pointer.">enlist</a>(<span class="keywordtype">unsigned</span> path, <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> **index, caddr_t key, <span class="keywordtype">unsigned</span> size, <span class="keywordtype">size_t</span> keysize = 0);
<a name="l00996"></a>00996
<a name="l01001"></a>01001 <span class="keywordtype">void</span> <a class="code" href="a00069.html#aa1e5d28d2645d0042a6f1f9f7ca7bf21" title="Locate and remove ourselves from a list of objects.">delist</a>(<span class="keywordtype">unsigned</span> path);
<a name="l01002"></a>01002
<a name="l01007"></a>01007 <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> *next(<span class="keywordtype">unsigned</span> path) <span class="keyword">const</span>;
<a name="l01008"></a>01008
<a name="l01016"></a>01016 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> keyindex(caddr_t key, <span class="keywordtype">unsigned</span> <a class="code" href="a00214.html#a8049d3aa4d2ad2df40e33d0104fe0c05" title="Template for max value of a type.">max</a>, <span class="keywordtype">size_t</span> size = 0);
<a name="l01017"></a>01017
<a name="l01027"></a>01027 <span class="keyword">static</span> <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> *find(<span class="keywordtype">unsigned</span> path, <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> **index, caddr_t key, <span class="keywordtype">unsigned</span> max, <span class="keywordtype">size_t</span> size = 0);
<a name="l01028"></a>01028 };
<a name="l01029"></a>01029
<a name="l01037"></a>01037 <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> O=NamedObject>
<a name="l01038"></a><a class="code" href="a00089.html">01038</a> <span class="keyword">class </span><a class="code" href="a00089.html" title="Templated value class to embed data structure into a named list.">named_value</a> : <span class="keyword">public</span> <a class="code" href="a00094.html" title="Template for embedding a data structure into a reference counted object.">object_value</a><T, O>
<a name="l01039"></a>01039 {
<a name="l01040"></a>01040 <span class="keyword">public</span>:
<a name="l01046"></a><a class="code" href="a00089.html#a967b2da7b85c54a896029abbc1d53d9f">01046</a> <span class="keyword">inline</span> <a class="code" href="a00089.html" title="Templated value class to embed data structure into a named list.">named_value</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root, <span class="keywordtype">char</span> *name)
<a name="l01047"></a>01047 {LinkedObject::enlist(root); O::id = name;};
<a name="l01048"></a>01048
<a name="l01053"></a><a class="code" href="a00089.html#a9c9486916cd1cce31087f2e40bc5f9fb">01053</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> T& typed_value)
<a name="l01054"></a>01054 {<span class="keyword">set</span>(typed_value);};
<a name="l01055"></a>01055
<a name="l01062"></a><a class="code" href="a00089.html#a1b5bc0414bdb32f5f69e4c01104d4406">01062</a> <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="a00089.html" title="Templated value class to embed data structure into a named list.">named_value</a> find(<a class="code" href="a00089.html" title="Templated value class to embed data structure into a named list.">named_value</a> *first, <span class="keyword">const</span> <span class="keywordtype">char</span> *name)
<a name="l01063"></a>01063 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00089.html" title="Templated value class to embed data structure into a named list.">named_value</a> *<span class="keyword">></span>(NamedObject::find(first, name));};
<a name="l01064"></a>01064 };
<a name="l01065"></a>01065
<a name="l01074"></a>01074 <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> O=OrderedObject>
<a name="l01075"></a><a class="code" href="a00067.html">01075</a> <span class="keyword">class </span><a class="code" href="a00067.html" title="Templated value class to embed data structure into a linked list.">linked_value</a> : <span class="keyword">public</span> <a class="code" href="a00094.html" title="Template for embedding a data structure into a reference counted object.">object_value</a><T, O>
<a name="l01076"></a>01076 {
<a name="l01077"></a>01077 <span class="keyword">public</span>:
<a name="l01081"></a><a class="code" href="a00067.html#a26e672e7ea51367aced1f71d97e5248d">01081</a> <span class="keyword">inline</span> <a class="code" href="a00067.html#a26e672e7ea51367aced1f71d97e5248d" title="Create embedded value object unlinked.">linked_value</a>() {};
<a name="l01082"></a>01082
<a name="l01087"></a><a class="code" href="a00067.html#adde34454086328809cc71d4094d80ac6">01087</a> <span class="keyword">inline</span> <a class="code" href="a00067.html" title="Templated value class to embed data structure into a linked list.">linked_value</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root)
<a name="l01088"></a>01088 {LinkedObject::enlist(root);};
<a name="l01089"></a>01089
<a name="l01094"></a><a class="code" href="a00067.html#af71dde9126a6ebd8db1cce01c514e8ad">01094</a> <span class="keyword">inline</span> <a class="code" href="a00067.html" title="Templated value class to embed data structure into a linked list.">linked_value</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index)
<a name="l01095"></a>01095 {O::enlist(index);};
<a name="l01096"></a>01096
<a name="l01102"></a><a class="code" href="a00067.html#a6e7dd8ebc26e7ff4afb8ed0dfbb77d2c">01102</a> <span class="keyword">inline</span> <a class="code" href="a00067.html" title="Templated value class to embed data structure into a linked list.">linked_value</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root, <span class="keyword">const</span> T& typed_value)
<a name="l01103"></a>01103 {LinkedObject::enlist(root); <span class="keyword">set</span>(typed_value);};
<a name="l01104"></a>01104
<a name="l01110"></a><a class="code" href="a00067.html#ae82e82221f1e3e53f4327b75323b78c4">01110</a> <span class="keyword">inline</span> <a class="code" href="a00067.html" title="Templated value class to embed data structure into a linked list.">linked_value</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index, <span class="keyword">const</span> T& typed_value)
<a name="l01111"></a>01111 {O::enlist(index); <span class="keyword">set</span>(typed_value);};
<a name="l01112"></a>01112
<a name="l01117"></a><a class="code" href="a00067.html#ace985b29081bfb9fc3823326e6f663b6">01117</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> T& typed_value)
<a name="l01118"></a>01118 {<span class="keyword">set</span>(typed_value);};
<a name="l01119"></a>01119 };
<a name="l01120"></a>01120
<a name="l01126"></a>01126 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01127"></a><a class="code" href="a00098.html">01127</a> <span class="keyword">class </span><a class="code" href="a00098.html" title="Template for typesafe basic object stack container.">objstack</a> : <span class="keyword">public</span> ObjectStack
<a name="l01128"></a>01128 {
<a name="l01129"></a>01129 <span class="keyword">public</span>:
<a name="l01133"></a><a class="code" href="a00098.html#a4e4d31644ba8e17ac5531275e27cf539">01133</a> <span class="keyword">inline</span> <a class="code" href="a00098.html#a4e4d31644ba8e17ac5531275e27cf539" title="Create a new object stack.">objstack</a>() : ObjectStack() {}
<a name="l01134"></a>01134
<a name="l01138"></a><a class="code" href="a00098.html#adb05405d651ee6d119ffc95e2102dace">01138</a> <span class="keyword">inline</span> <a class="code" href="a00098.html#adb05405d651ee6d119ffc95e2102dace" title="Create an object stack from a list of objects.">objstack</a>(T *list) : ObjectStack(list) {}
<a name="l01139"></a>01139
<a name="l01144"></a><a class="code" href="a00098.html#a7f9192000ebee0a3316507cc83dd46f2">01144</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(T *<span class="keywordtype">object</span>)
<a name="l01145"></a>01145 {<a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">ObjectStack::push</a>(<span class="keywordtype">object</span>);}
<a name="l01146"></a>01146
<a name="l01151"></a><a class="code" href="a00098.html#a90a5943a9cd5c631c82b9c8184626ccb">01151</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(T *<span class="keywordtype">object</span>)
<a name="l01152"></a>01152 {<a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">ObjectStack::push</a>(<span class="keywordtype">object</span>);}
<a name="l01153"></a>01153
<a name="l01158"></a><a class="code" href="a00098.html#ad233b31fb84da74ae476cb6db49b70c4">01158</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>)
<a name="l01159"></a>01159 {<span class="keywordflow">return</span> (T *)<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">ObjectStack::pull</a>();}
<a name="l01160"></a>01160
<a name="l01165"></a><a class="code" href="a00098.html#a5845f6e40653a615f50762df3156dc72">01165</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>)
<a name="l01166"></a>01166 {<span class="keywordflow">return</span> (T *)<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">ObjectStack::pull</a>();}
<a name="l01167"></a>01167 };
<a name="l01168"></a>01168
<a name="l01175"></a>01175 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01176"></a><a class="code" href="a00096.html">01176</a> <span class="keyword">class </span><a class="code" href="a00096.html" title="Template for typesafe basic object fifo container.">objfifo</a> : <span class="keyword">public</span> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>
<a name="l01177"></a>01177 {
<a name="l01178"></a>01178 <span class="keyword">public</span>:
<a name="l01182"></a><a class="code" href="a00096.html#adfb839f14ebb84854d1f2c81edd88a6b">01182</a> <span class="keyword">inline</span> <a class="code" href="a00096.html#adfb839f14ebb84854d1f2c81edd88a6b" title="Create a new object stack.">objfifo</a>() : <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>() {}
<a name="l01183"></a>01183
<a name="l01188"></a><a class="code" href="a00096.html#a06005916241d1db0c039da701ca589c0">01188</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(T *<span class="keywordtype">object</span>)
<a name="l01189"></a>01189 {<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">OrderedIndex::add</a>((<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01190"></a>01190
<a name="l01195"></a><a class="code" href="a00096.html#a62a6dc013f24c769f1fd723248401804">01195</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(T *<span class="keywordtype">object</span>)
<a name="l01196"></a>01196 {<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">OrderedIndex::add</a>((<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01197"></a>01197
<a name="l01202"></a><a class="code" href="a00096.html#aa6605fa95b3ebff8ae6d37a01507bc4e">01202</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>)
<a name="l01203"></a>01203 {<span class="keywordflow">return</span> (T *)OrderedIndex::get();}
<a name="l01204"></a>01204
<a name="l01209"></a><a class="code" href="a00096.html#a02c5edbc85487f6261b70127dccea43b">01209</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>)
<a name="l01210"></a>01210 {<span class="keywordflow">return</span> (T *)OrderedIndex::get();}
<a name="l01211"></a>01211 };
<a name="l01212"></a>01212
<a name="l01218"></a>01218 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01219"></a><a class="code" href="a00097.html">01219</a> <span class="keyword">class </span><a class="code" href="a00097.html" title="Template for typesafe basic object queue container.">objqueue</a> : <span class="keyword">public</span> <a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>
<a name="l01220"></a>01220 {
<a name="l01221"></a>01221 <span class="keyword">public</span>:
<a name="l01225"></a><a class="code" href="a00097.html#a2b307f8d715a6a889c44815a98ad3d02">01225</a> <span class="keyword">inline</span> <a class="code" href="a00097.html#a2b307f8d715a6a889c44815a98ad3d02" title="Create a new object stack.">objqueue</a>() : <a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>() {}
<a name="l01226"></a>01226
<a name="l01231"></a><a class="code" href="a00097.html#aea7eb8b821bf3f231261b2a5fd4feef5">01231</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(T *<span class="keywordtype">object</span>)
<a name="l01232"></a>01232 {<a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">ObjectQueue::push</a>((<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01233"></a>01233
<a name="l01238"></a><a class="code" href="a00097.html#adc3270642f0001319851699ae6fbe3fc">01238</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(T *<span class="keywordtype">object</span>)
<a name="l01239"></a>01239 {<a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">ObjectQueue::add</a>((<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01240"></a>01240
<a name="l01245"></a><a class="code" href="a00097.html#a4c3a3f8cce0ef1b492bd7fdab2d1354c">01245</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<span class="keywordtype">void</span>)
<a name="l01246"></a>01246 {<span class="keywordflow">return</span> (T *)<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">ObjectQueue::pull</a>();}
<a name="l01247"></a>01247
<a name="l01252"></a><a class="code" href="a00097.html#a919d4310e72b4376c70b0c84edea337f">01252</a> <span class="keyword">inline</span> T *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<span class="keywordtype">void</span>)
<a name="l01253"></a>01253 {<span class="keywordflow">return</span> (T *)<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">ObjectQueue::pop</a>();}
<a name="l01254"></a>01254 };
<a name="l01255"></a>01255
<a name="l01256"></a>01256
<a name="l01263"></a>01263 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01264"></a><a class="code" href="a00066.html">01264</a> <span class="keyword">class </span><a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>
<a name="l01265"></a>01265 {
<a name="l01266"></a>01266 <span class="keyword">private</span>:
<a name="l01267"></a>01267 T *ptr;
<a name="l01268"></a>01268
<a name="l01269"></a>01269 <span class="keyword">public</span>:
<a name="l01274"></a><a class="code" href="a00066.html#ab5475ec1f257256905ebb564b2a13000">01274</a> <span class="keyword">inline</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>(T *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01275"></a>01275 {ptr = pointer;};
<a name="l01276"></a>01276
<a name="l01281"></a><a class="code" href="a00066.html#a69545ddc05b6a1e63facfe9723bbed57">01281</a> <span class="keyword">inline</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>(<span class="keyword">const</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a> &<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01282"></a>01282 {ptr = pointer.ptr;};
<a name="l01283"></a>01283
<a name="l01288"></a><a class="code" href="a00066.html#a08d14dac20b0d3fc10ff231ad7676aed">01288</a> <span class="keyword">inline</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01289"></a>01289 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(pointer);};
<a name="l01290"></a>01290
<a name="l01295"></a><a class="code" href="a00066.html#a2462de18b48f21b6116eedb13eb7a7df">01295</a> <span class="keyword">inline</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index)
<a name="l01296"></a>01296 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(index-><a class="code" href="a00099.html#a1f80e970f1803ac2502f645a2b973e3d" title="Return first object in list for iterators.">begin</a>());};
<a name="l01297"></a>01297
<a name="l01301"></a><a class="code" href="a00066.html#a38f50725cca4a7b057b9777c6f14e49c">01301</a> <span class="keyword">inline</span> <a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a>()
<a name="l01302"></a>01302 {ptr = NULL;};
<a name="l01303"></a>01303
<a name="l01308"></a><a class="code" href="a00066.html#a7db8d117bb3bf9efa5bf3ded4d23ee04">01308</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(T *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01309"></a>01309 {ptr = pointer;};
<a name="l01310"></a>01310
<a name="l01315"></a><a class="code" href="a00066.html#adc03594eeaeddeb035043572d929d971">01315</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<a class="code" href="a00066.html" title="A templated smart pointer for iterating linked lists.">linked_pointer</a> &<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01316"></a>01316 {ptr = pointer.ptr;};
<a name="l01317"></a>01317
<a name="l01322"></a><a class="code" href="a00066.html#aaafb0bd71222360295f676e45cd9b055">01322</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> *index)
<a name="l01323"></a>01323 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(index-><a class="code" href="a00099.html#a1f80e970f1803ac2502f645a2b973e3d" title="Return first object in list for iterators.">begin</a>());};
<a name="l01324"></a>01324
<a name="l01329"></a><a class="code" href="a00066.html#a5a3151b4c267ba69b7afd8dcd5ce82a8">01329</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01330"></a>01330 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(pointer);};
<a name="l01331"></a>01331
<a name="l01336"></a><a class="code" href="a00066.html#affdcf314c0ff7cced0380a817e92fa7a">01336</a> <span class="keyword">inline</span> T* operator->()<span class="keyword"> const</span>
<a name="l01337"></a>01337 <span class="keyword"> </span>{<span class="keywordflow">return</span> ptr;};
<a name="l01338"></a>01338
<a name="l01343"></a><a class="code" href="a00066.html#a36d7c2b8ded42f2a72f508da5532af21">01343</a> <span class="keyword">inline</span> T* operator*()<span class="keyword"> const</span>
<a name="l01344"></a>01344 <span class="keyword"> </span>{<span class="keywordflow">return</span> ptr;};
<a name="l01345"></a>01345
<a name="l01350"></a><a class="code" href="a00066.html#a2fd59b359586614b5e008578c4aac91d">01350</a> <span class="keyword">inline</span> operator T*()<span class="keyword"> const</span>
<a name="l01351"></a>01351 <span class="keyword"> </span>{<span class="keywordflow">return</span> ptr;};
<a name="l01352"></a>01352
<a name="l01356"></a><a class="code" href="a00066.html#a74f7d804f5e5ee5097401c3d6e84862c">01356</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> prev(<span class="keywordtype">void</span>)
<a name="l01357"></a>01357 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getPrev());};
<a name="l01358"></a>01358
<a name="l01362"></a><a class="code" href="a00066.html#a965983178fdcd0f713116c63e9963908">01362</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> next(<span class="keywordtype">void</span>)
<a name="l01363"></a>01363 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getNext());};
<a name="l01364"></a>01364
<a name="l01369"></a><a class="code" href="a00066.html#a54eb61b677ef090fa9333af5828323fa">01369</a> <span class="keyword">inline</span> T *getNext(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01370"></a>01370 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getNext());};
<a name="l01371"></a>01371
<a name="l01377"></a><a class="code" href="a00066.html#afca101e607ed31db3a62cfa539b4de29">01377</a> <span class="keyword">inline</span> T *getPrev(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01378"></a>01378 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getPrev());};
<a name="l01379"></a>01379
<a name="l01383"></a><a class="code" href="a00066.html#a886dd5ad15d459598798728cefc787b9">01383</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator++()
<a name="l01384"></a>01384 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getNext());};
<a name="l01385"></a>01385
<a name="l01389"></a><a class="code" href="a00066.html#a6cc54d40488fd6f71fdcdc6ca0c84c7a">01389</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator--()
<a name="l01390"></a>01390 {ptr = <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(ptr->getPrev());};
<a name="l01391"></a>01391
<a name="l01396"></a><a class="code" href="a00066.html#a6eda88368bb2505b6c0c32a36509403c">01396</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isNext(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01397"></a>01397 <span class="keyword"> </span>{<span class="keywordflow">return</span> (ptr->getNext() != NULL);};
<a name="l01398"></a>01398
<a name="l01403"></a><a class="code" href="a00066.html#acbe0c9e2744b348536873623fedc591a">01403</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isPrev(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01404"></a>01404 <span class="keyword"> </span>{<span class="keywordflow">return</span> (ptr->getPrev() != NULL);};
<a name="l01405"></a>01405
<a name="l01410"></a><a class="code" href="a00066.html#aaafadeb857781fa966934550138e57f4">01410</a> <span class="keyword">inline</span> operator bool()<span class="keyword"> const</span>
<a name="l01411"></a>01411 <span class="keyword"> </span>{<span class="keywordflow">return</span> (ptr != NULL);};
<a name="l01412"></a>01412
<a name="l01417"></a><a class="code" href="a00066.html#ac31f27f035553dc960d625a8e753966b">01417</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!()<span class="keyword"> const</span>
<a name="l01418"></a>01418 <span class="keyword"> </span>{<span class="keywordflow">return</span> (ptr == NULL);};
<a name="l01419"></a>01419
<a name="l01424"></a><a class="code" href="a00066.html#af82e9913b67dc0a2669ab5c288169ded">01424</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> **root(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01425"></a>01425 <span class="keyword"> </span>{T **r = &ptr; <span class="keywordflow">return</span> (<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a>**)r;};
<a name="l01426"></a>01426 };
<a name="l01427"></a>01427
<a name="l01435"></a>01435 <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keywordtype">unsigned</span> P>
<a name="l01436"></a><a class="code" href="a00085.html">01436</a> <span class="keyword">class </span><a class="code" href="a00085.html" title="Embed data objects into a multipap structured memory database.">multimap</a> : <span class="keyword">public</span> <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a>
<a name="l01437"></a>01437 {
<a name="l01438"></a>01438 <span class="keyword">protected</span>:
<a name="l01439"></a>01439 T value;
<a name="l01440"></a>01440
<a name="l01441"></a>01441 <span class="keyword">public</span>:
<a name="l01445"></a><a class="code" href="a00085.html#aade6cb7078ca7c7e018a04976fcb3cd3">01445</a> <span class="keyword">inline</span> <a class="code" href="a00085.html#aade6cb7078ca7c7e018a04976fcb3cd3" title="Construct a multimap node.">multimap</a>() : <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a>(P) {};
<a name="l01446"></a>01446
<a name="l01450"></a><a class="code" href="a00085.html#ab773d3e30abf996f734e168a94e06353">01450</a> <span class="keyword">inline</span> <a class="code" href="a00085.html#ab773d3e30abf996f734e168a94e06353" title="Destroy a multimap object.">~multimap</a>() {};
<a name="l01451"></a>01451
<a name="l01456"></a><a class="code" href="a00085.html#a878580206aa17f6a0ace62949a5506e7">01456</a> <span class="keyword">inline</span> T &<span class="keyword">get</span>(void) <span class="keyword">const</span>
<a name="l01457"></a>01457 {<span class="keywordflow">return</span> value;};
<a name="l01458"></a>01458
<a name="l01464"></a><a class="code" href="a00085.html#a47a5be47146d177fe63e28a49e25d66e">01464</a> <span class="keyword">inline</span> <a class="code" href="a00085.html" title="Embed data objects into a multipap structured memory database.">multimap</a> *next(<span class="keywordtype">unsigned</span> path)
<a name="l01465"></a>01465 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00085.html" title="Embed data objects into a multipap structured memory database.">multimap</a>*<span class="keyword">></span>(MultiMap::next(path));};
<a name="l01466"></a>01466
<a name="l01471"></a><a class="code" href="a00085.html#a9df18ed88ba18cfe42c40c00aa11d83e">01471</a> <span class="keyword">inline</span> T operator*()<span class="keyword"> const</span>
<a name="l01472"></a>01472 <span class="keyword"> </span>{<span class="keywordflow">return</span> value;};
<a name="l01473"></a>01473
<a name="l01478"></a><a class="code" href="a00085.html#af11890e44bb14aa899d17b5f529436ed">01478</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> setPointer(<span class="keyword">const</span> T <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01479"></a>01479 {value = pointer;};
<a name="l01480"></a>01480
<a name="l01485"></a><a class="code" href="a00085.html#aba1ea6dc0fda5a8822fb0d1cc609d884">01485</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> T &reference)
<a name="l01486"></a>01486 {value = reference;};
<a name="l01487"></a>01487
<a name="l01492"></a><a class="code" href="a00085.html#a83695539fd52ab9a8754a3f1737bcd1c">01492</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> T& data)
<a name="l01493"></a>01493 {value = data;};
<a name="l01494"></a>01494
<a name="l01504"></a><a class="code" href="a00085.html#a321e9d3ad6426207cf412e03765abc55">01504</a> <span class="keyword">inline</span> <span class="keyword">static</span> <a class="code" href="a00085.html" title="Embed data objects into a multipap structured memory database.">multimap</a> *find(<span class="keywordtype">unsigned</span> path, <a class="code" href="a00084.html" title="A multipath linked list where membership is managed in multiple lists.">MultiMap</a> **index, caddr_t key, <span class="keywordtype">unsigned</span> size, <span class="keywordtype">unsigned</span> keysize = 0)
<a name="l01505"></a>01505 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00085.html" title="Embed data objects into a multipap structured memory database.">multimap</a>*<span class="keyword">></span>(MultiMap::find(path, index, key, size, keysize));};
<a name="l01506"></a>01506 };
<a name="l01507"></a>01507
<a name="l01525"></a>01525 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01526"></a><a class="code" href="a00174.html">01526</a> <span class="keyword">class </span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> : <span class="keyword">public</span> <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>
<a name="l01527"></a>01527 {
<a name="l01528"></a>01528 <span class="keyword">protected</span>:
<a name="l01529"></a>01529 T value;
<a name="l01530"></a>01530
<a name="l01531"></a>01531 <span class="keyword">public</span>:
<a name="l01537"></a><a class="code" href="a00174.html#a7398f5b9f14dfe24c30de88039af6fb8">01537</a> <span class="keyword">inline</span> <a class="code" href="a00174.html#a7398f5b9f14dfe24c30de88039af6fb8" title="Construct a typed root node for the tree.">treemap</a>(<span class="keywordtype">char</span> *name = NULL) : <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(name) {};
<a name="l01538"></a>01538
<a name="l01543"></a><a class="code" href="a00174.html#ab2db5a38089bcfc9a23ee82ed1c511ee">01543</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>(<span class="keyword">const</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>& source) : <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(source)
<a name="l01544"></a>01544 {value = source.value;};
<a name="l01545"></a>01545
<a name="l01551"></a><a class="code" href="a00174.html#a3f646f02d7ee34623b5584702378e963">01551</a> <span class="keyword">inline</span> <a class="code" href="a00174.html#a3f646f02d7ee34623b5584702378e963" title="Construct a child node on an existing tree.">treemap</a>(<a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *parent, <span class="keywordtype">char</span> *name) : <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(parent, name) {};
<a name="l01552"></a>01552
<a name="l01559"></a><a class="code" href="a00174.html#a2b1f72a8bf07395698e748d246302fe2">01559</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>(<a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *parent, <span class="keywordtype">char</span> *name, T& reference) :
<a name="l01560"></a>01560 <a class="code" href="a00091.html" title="The named tree class is used to form a tree oriented list of associated objects.">NamedTree</a>(parent, name) {value = reference;};
<a name="l01561"></a>01561
<a name="l01566"></a><a class="code" href="a00174.html#affd1ccdd5044242e6949d3a711dfe155">01566</a> <span class="keyword">inline</span> T& <span class="keyword">get</span>(void) <span class="keyword">const</span>
<a name="l01567"></a>01567 {<span class="keywordflow">return</span> value;};
<a name="l01568"></a>01568
<a name="l01573"></a><a class="code" href="a00174.html#a5f9d11ad47dc93d6de6941c05b6e3916">01573</a> <span class="keyword">inline</span> T& operator*()<span class="keyword"> const</span>
<a name="l01574"></a>01574 <span class="keyword"> </span>{<span class="keywordflow">return</span> value;};
<a name="l01575"></a>01575
<a name="l01581"></a><a class="code" href="a00174.html#a8bd1da21c3975e0ca5f6a976c0a0246b">01581</a> <span class="keyword">static</span> <span class="keyword">inline</span> T getPointer(<a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *node)
<a name="l01582"></a>01582 {(node == NULL) ? NULL : node->value;};
<a name="l01583"></a>01583
<a name="l01588"></a><a class="code" href="a00174.html#ab084cca9a2f7a46d25a8997f1c0633e6">01588</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isAttribute(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01589"></a>01589 <span class="keyword"> </span>{<span class="keywordflow">return</span> (!child.begin() && value != NULL);};
<a name="l01590"></a>01590
<a name="l01595"></a><a class="code" href="a00174.html#a8d39688a55b8c1fd9e52068bd68c770f">01595</a> <span class="keyword">inline</span> T getPointer(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01596"></a>01596 <span class="keyword"> </span>{<span class="keywordflow">return</span> value;};
<a name="l01597"></a>01597
<a name="l01602"></a><a class="code" href="a00174.html#af22bccbadffd2cbd9fad372c3cd91886">01602</a> <span class="keyword">inline</span> T& getData(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01603"></a>01603 <span class="keyword"> </span>{<span class="keywordflow">return</span> value;};
<a name="l01604"></a>01604
<a name="l01609"></a><a class="code" href="a00174.html#a0fb9147516d9c5f1712bb53a442b9dbc">01609</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> setPointer(<span class="keyword">const</span> T <a class="code" href="a00015.html" title="Typed smart pointer class.">pointer</a>)
<a name="l01610"></a>01610 {value = pointer;};
<a name="l01611"></a>01611
<a name="l01616"></a><a class="code" href="a00174.html#a5e35c06e42c512895935b9a917e35ad2">01616</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> T& reference)
<a name="l01617"></a>01617 {value = reference;};
<a name="l01618"></a>01618
<a name="l01623"></a><a class="code" href="a00174.html#ab3061f8d412b50283b5ecaec56d71719">01623</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> T& data)
<a name="l01624"></a>01624 {value = data;};
<a name="l01625"></a>01625
<a name="l01631"></a><a class="code" href="a00174.html#a4e4071e8056e601684504483511fb2f7">01631</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *getIndexed(<span class="keywordtype">unsigned</span> index)<span class="keyword"> const</span>
<a name="l01632"></a>01632 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(child.getIndexed(index));};
<a name="l01633"></a>01633
<a name="l01638"></a><a class="code" href="a00174.html#acd4b3beb01b0b09b1cda682496f91a35">01638</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *getParent(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01639"></a>01639 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(parent);};
<a name="l01640"></a>01640
<a name="l01647"></a><a class="code" href="a00174.html#a3b58b2c542b9405011d5638217d3b99d">01647</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *getChild(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01648"></a>01648 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::getChild(name));};
<a name="l01649"></a>01649
<a name="l01656"></a><a class="code" href="a00174.html#af64983695bcc19b1f9749addfdeab82f">01656</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *getLeaf(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01657"></a>01657 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::getLeaf(name));};
<a name="l01658"></a>01658
<a name="l01666"></a><a class="code" href="a00174.html#a863562a41d5da6ec1a3350fcab863629">01666</a> <span class="keyword">inline</span> T getValue(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01667"></a>01667 <span class="keyword"> </span>{<span class="keywordflow">return</span> getPointer(getLeaf(name));};
<a name="l01668"></a>01668
<a name="l01675"></a><a class="code" href="a00174.html#ab750326ecdac8709d1edae78c5d80342">01675</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *find(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01676"></a>01676 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::find(name));};
<a name="l01677"></a>01677
<a name="l01684"></a><a class="code" href="a00174.html#aefc2e13654080ca0963f4ffd3a3637f8">01684</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *path(<span class="keyword">const</span> <span class="keywordtype">char</span> *path)<span class="keyword"> const</span>
<a name="l01685"></a>01685 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::path(path));};
<a name="l01686"></a>01686
<a name="l01693"></a><a class="code" href="a00174.html#a18c64639889fb23e2a3a3e835713afa9">01693</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *leaf(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01694"></a>01694 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::leaf(name));};
<a name="l01695"></a>01695
<a name="l01700"></a><a class="code" href="a00174.html#a0db1c39391cc461581f6f7a9461434b4">01700</a> <span class="keyword">inline</span> <a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a> *getFirst(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01701"></a>01701 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00174.html" title="Embed data objects into a tree structured memory database.">treemap</a>*<span class="keyword">></span>(NamedTree::getFirst());};
<a name="l01702"></a>01702 };
<a name="l01703"></a>01703
<a name="l01711"></a>01711 <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keywordtype">unsigned</span> M = 177>
<a name="l01712"></a><a class="code" href="a00064.html">01712</a> <span class="keyword">class </span><a class="code" href="a00064.html" title="A templated class for a hash map.">keymap</a>
<a name="l01713"></a>01713 {
<a name="l01714"></a>01714 <span class="keyword">private</span>:
<a name="l01715"></a>01715 <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> *idx[M];
<a name="l01716"></a>01716
<a name="l01717"></a>01717 <span class="keyword">public</span>:
<a name="l01721"></a><a class="code" href="a00064.html#a845eef8fd91fe59c7f3aa7d573e2453d">01721</a> <span class="keyword">inline</span> ~<a class="code" href="a00064.html" title="A templated class for a hash map.">keymap</a>()
<a name="l01722"></a>01722 {NamedObject::purge(idx, M);};
<a name="l01723"></a>01723
<a name="l01728"></a><a class="code" href="a00064.html#a403a49d6845a7337d07f83f3debc97a3">01728</a> <span class="keyword">inline</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **root(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01729"></a>01729 <span class="keyword"> </span>{<span class="keywordflow">return</span> idx;};
<a name="l01730"></a>01730
<a name="l01735"></a><a class="code" href="a00064.html#a4953e3bee696a45365b1a38ae562b870">01735</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> limit(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01736"></a>01736 <span class="keyword"> </span>{<span class="keywordflow">return</span> M;};
<a name="l01737"></a>01737
<a name="l01743"></a><a class="code" href="a00064.html#abaf27b7db77c041b321f10a447bebc17">01743</a> <span class="keyword">inline</span> T *<span class="keyword">get</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) <span class="keyword">const</span>
<a name="l01744"></a>01744 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(NamedObject::map(idx, name, M));};
<a name="l01745"></a>01745
<a name="l01751"></a><a class="code" href="a00064.html#a94b4d8089bd114dc55686d632c43ddb4">01751</a> <span class="keyword">inline</span> T *operator[](<span class="keyword">const</span> <span class="keywordtype">char</span> *name)<span class="keyword"> const</span>
<a name="l01752"></a>01752 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(NamedObject::map(idx, name, M));};
<a name="l01753"></a>01753
<a name="l01759"></a><a class="code" href="a00064.html#a06d53a1f98386bd770d74d241e66a3e5">01759</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, T& <span class="keywordtype">object</span>)
<a name="l01760"></a>01760 {<span class="keywordtype">object</span>.NamedObject::add(idx, name, M);};
<a name="l01761"></a>01761
<a name="l01767"></a><a class="code" href="a00064.html#abf5b0106a9167efd7962a788bcd1ecc7">01767</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, T *<span class="keywordtype">object</span>)
<a name="l01768"></a>01768 {<span class="keywordtype">object</span>->NamedObject::add(idx, name, M);};
<a name="l01769"></a>01769
<a name="l01775"></a><a class="code" href="a00064.html#a89186f9051aa6217b25a4b2af2c546af">01775</a> <span class="keyword">inline</span> T *<span class="keyword">remove</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)
<a name="l01776"></a>01776 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(<a class="code" href="a00214.html#a284595fb28be69136211845567e6eeec" title="Convenience function to remove an object from a stack.">NamedObject::remove</a>(idx, name, M));};
<a name="l01777"></a>01777
<a name="l01782"></a><a class="code" href="a00064.html#a54c0d714125950c841b7b6307b2eac48">01782</a> <span class="keyword">inline</span> T *begin(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01783"></a>01783 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(NamedObject::skip(idx, NULL, M));};
<a name="l01784"></a>01784
<a name="l01790"></a><a class="code" href="a00064.html#a2b1d84eee56650e91c213156a100b6d0">01790</a> <span class="keyword">inline</span> T *next(T *current)<span class="keyword"> const</span>
<a name="l01791"></a>01791 <span class="keyword"> </span>{<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(NamedObject::skip(idx, current, M));};
<a name="l01792"></a>01792
<a name="l01797"></a><a class="code" href="a00064.html#a5c7617fcc47ff09858bb334d4285d1bf">01797</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> count(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01798"></a>01798 <span class="keyword"> </span>{<span class="keywordflow">return</span> NamedObject::count(idx, M);};
<a name="l01799"></a>01799
<a name="l01806"></a><a class="code" href="a00064.html#ad0dd087f0f77aec75adf994f8c157052">01806</a> <span class="keyword">inline</span> T **index(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01807"></a>01807 <span class="keyword"> </span>{<span class="keywordflow">return</span> NamedObject::index(idx, M);};
<a name="l01808"></a>01808
<a name="l01815"></a><a class="code" href="a00064.html#a1dbfc779c744cbe0d7aa51db66273926">01815</a> <span class="keyword">inline</span> T **sort(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l01816"></a>01816 <span class="keyword"> </span>{<span class="keywordflow">return</span> NamedObject::sort(NamedObject::index(idx, M));};
<a name="l01817"></a>01817 };
<a name="l01818"></a>01818
<a name="l01825"></a>01825 <span class="keyword">template</span> <<span class="keyword">class</span> T>
<a name="l01826"></a><a class="code" href="a00063.html">01826</a> <span class="keyword">class </span><a class="code" href="a00063.html" title="A template for ordered index of typed name key mapped objects.">keylist</a> : <span class="keyword">public</span> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>
<a name="l01827"></a>01827 {
<a name="l01828"></a>01828 <span class="keyword">public</span>:
<a name="l01833"></a><a class="code" href="a00063.html#aee8a5a1de04c840b1f8095dd9611d209">01833</a> <span class="keyword">inline</span> <a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a> **root(<span class="keywordtype">void</span>)
<a name="l01834"></a>01834 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00090.html" title="A linked object base class with members found by name.">NamedObject</a>*<span class="keyword">></span>(&head);};
<a name="l01835"></a>01835
<a name="l01841"></a><a class="code" href="a00063.html#a719cce3456c448ec8a81198f21d1f19c">01841</a> <span class="keyword">inline</span> T *begin(<span class="keywordtype">void</span>)
<a name="l01842"></a>01842 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(head);};
<a name="l01843"></a>01843
<a name="l01849"></a><a class="code" href="a00063.html#a7e12873a37972dd655ea25ea2f4d373a">01849</a> <span class="keyword">inline</span> T *end(<span class="keywordtype">void</span>)
<a name="l01850"></a>01850 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(tail);};
<a name="l01851"></a>01851
<a name="l01858"></a><a class="code" href="a00063.html#a5a8bd3b2172114642d37f0becfea1a1d">01858</a> <span class="keyword">inline</span> T *create(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)
<a name="l01859"></a>01859 {<span class="keywordflow">return</span> <span class="keyword">new</span> T(<span class="keyword">this</span>, name);};
<a name="l01860"></a>01860
<a name="l01866"></a><a class="code" href="a00063.html#a899373679b202e86bd13b688175ce775">01866</a> <span class="keyword">inline</span> T *next(<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *current)
<a name="l01867"></a>01867 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(current-><a class="code" href="a00069.html#acc25bd6615a2163028724910135b2cd2" title="Get next effective object when iterating.">getNext</a>());};
<a name="l01868"></a>01868
<a name="l01874"></a><a class="code" href="a00063.html#ae4df0ba0f5be80d59e02a5dbebd8bbc5">01874</a> <span class="keyword">inline</span> T *find(<span class="keyword">const</span> <span class="keywordtype">char</span> *name)
<a name="l01875"></a>01875 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(NamedObject::find(begin(), name));};
<a name="l01876"></a>01876
<a name="l01882"></a><a class="code" href="a00063.html#a94ca22c999a1666fdfe2491bc329a8e3">01882</a> <span class="keyword">inline</span> T *operator[](<span class="keywordtype">unsigned</span> offset)
<a name="l01883"></a>01883 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T*<span class="keyword">></span>(OrderedIndex::find(offset));};
<a name="l01884"></a>01884
<a name="l01891"></a><a class="code" href="a00063.html#a72e10cff96ff02ddb8b2c0417dad4984">01891</a> <span class="keyword">inline</span> T **index(<span class="keywordtype">void</span>)
<a name="l01892"></a>01892 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T**<span class="keyword">></span>(OrderedIndex::index());};
<a name="l01893"></a>01893
<a name="l01900"></a><a class="code" href="a00063.html#a57e0b02ced701931e272c7cd9d6da447">01900</a> <span class="keyword">inline</span> T **sort(<span class="keywordtype">void</span>)
<a name="l01901"></a>01901 {<span class="keywordflow">return</span> <span class="keyword">static_cast<</span>T**<span class="keyword">></span>(NamedObject::sort(index()));};
<a name="l01902"></a>01902 };
<a name="l01903"></a>01903
<a name="l01909"></a><a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0">01909</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(ObjectStack& <a class="code" href="a00155.html" title="Manage a thread-safe stack of objects through reference pointers.">stack</a>, <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01910"></a>01910 {stack.push(<span class="keywordtype">object</span>);}
<a name="l01911"></a>01911
<a name="l01917"></a><a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269">01917</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(ObjectStack& <a class="code" href="a00155.html" title="Manage a thread-safe stack of objects through reference pointers.">stack</a>, <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01918"></a>01918 {stack.push(<span class="keywordtype">object</span>);}
<a name="l01919"></a>01919
<a name="l01925"></a><a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064">01925</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(ObjectStack& <a class="code" href="a00155.html" title="Manage a thread-safe stack of objects through reference pointers.">stack</a>)
<a name="l01926"></a>01926 {<span class="keywordflow">return</span> stack.pull();}
<a name="l01927"></a>01927
<a name="l01933"></a><a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a">01933</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(ObjectStack& <a class="code" href="a00155.html" title="Manage a thread-safe stack of objects through reference pointers.">stack</a>)
<a name="l01934"></a>01934 {<span class="keywordflow">return</span> stack.pull();}
<a name="l01935"></a>01935
<a name="l01941"></a><a class="code" href="a00214.html#a7c13eda5e22b13de2331be0fb910cb3a">01941</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>& fifo, <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01942"></a>01942 {fifo.<a class="code" href="a00099.html#abc4bdc5bb3bbde08453dcb764a3e0fb9" title="Add an object into the ordered index.">add</a>((<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01943"></a>01943
<a name="l01949"></a><a class="code" href="a00214.html#a203ce6179d168d8b19bd26de03ae282d">01949</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>& fifo, <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01950"></a>01950 {fifo.<a class="code" href="a00099.html#abc4bdc5bb3bbde08453dcb764a3e0fb9" title="Add an object into the ordered index.">add</a>((<a class="code" href="a00100.html" title="A linked object base class for ordered objects.">OrderedObject</a> *)<span class="keywordtype">object</span>);}
<a name="l01951"></a>01951
<a name="l01957"></a><a class="code" href="a00214.html#a4b6c5a5065ee6c3cd44c2a03246a6062">01957</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>& fifo)
<a name="l01958"></a>01958 {<span class="keywordflow">return</span> fifo.<a class="code" href="a00099.html#a50f3131b350d18e1d407708455e0137d" title="Get (pull) object off the list.">get</a>();}
<a name="l01959"></a>01959
<a name="l01965"></a><a class="code" href="a00214.html#aa20e49acea141fcfd97eecfdbf1542ff">01965</a> <span class="keyword">inline</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a>& fifo)
<a name="l01966"></a>01966 {<span class="keywordflow">return</span> fifo.<a class="code" href="a00099.html#a50f3131b350d18e1d407708455e0137d" title="Get (pull) object off the list.">get</a>();}
<a name="l01967"></a>01967
<a name="l01973"></a><a class="code" href="a00214.html#a8f4c67d88bd2e149eeefe3dab0ee49dd">01973</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#ad3c146b0a18955ca36ae65ef8edacaa0" title="Push a linked object onto a stack of linked objects.">push</a>(<a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>& <a class="code" href="a00109.html" title="Manage a thread-safe queue of objects through reference pointers.">queue</a>, <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01974"></a>01974 {queue.<a class="code" href="a00095.html#aec47d9bc2c4e0c2d58fc4900027b29ba" title="Add an object to the end of the queue.">add</a>(<span class="keywordtype">object</span>);}
<a name="l01975"></a>01975
<a name="l01981"></a><a class="code" href="a00214.html#acd3d7bf0af27b9343dfd4f697c0435d5">01981</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects.">add</a>(<a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>& <a class="code" href="a00109.html" title="Manage a thread-safe queue of objects through reference pointers.">queue</a>, <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<span class="keywordtype">object</span>)
<a name="l01982"></a>01982 {queue.<a class="code" href="a00095.html#aec47d9bc2c4e0c2d58fc4900027b29ba" title="Add an object to the end of the queue.">add</a>(<span class="keywordtype">object</span>);}
<a name="l01983"></a>01983
<a name="l01989"></a><a class="code" href="a00214.html#a5a74287b57b17feb54886b28613daf2c">01989</a> <span class="keyword">inline</span> <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<a class="code" href="a00214.html#a93aa1abad68882a73a88db1c6bc28064" title="Pop a linked object from a stack of linked objects.">pop</a>(<a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>& <a class="code" href="a00109.html" title="Manage a thread-safe queue of objects through reference pointers.">queue</a>)
<a name="l01990"></a>01990 {<span class="keywordflow">return</span> (<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *)queue.<a class="code" href="a00095.html#a80747ff27c6c31ad48c6307d274423eb" title="Pop an object from the end of the queue.">pop</a>();}
<a name="l01991"></a>01991
<a name="l01997"></a><a class="code" href="a00214.html#a0b0aa6065e332084b7f51b15249cce06">01997</a> <span class="keyword">inline</span> <a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *<a class="code" href="a00214.html#ac33cb2f400b01365f1ebff8d7fa62c9a" title="Pop a linked object from a stack of linked objects.">pull</a>(<a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a>& <a class="code" href="a00109.html" title="Manage a thread-safe queue of objects through reference pointers.">queue</a>)
<a name="l01998"></a>01998 {<span class="keywordflow">return</span> (<a class="code" href="a00051.html" title="A double-linked Object, used for certain kinds of lists.">DLinkedObject</a> *)queue.<a class="code" href="a00095.html#a1624faa62233bd92a87f34ef124185dc" title="Pull an object from the front of the queue.">pull</a>();}
<a name="l01999"></a>01999
<a name="l02003"></a><a class="code" href="a00214.html#a1bc419aa4b62946dccc4c2cfa4350834">02003</a> <span class="keyword">typedef</span> <a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedObject</a> *<a class="code" href="a00069.html" title="Common base class for all objects that can be formed into a linked list.">LinkedIndex</a>;
<a name="l02004"></a>02004
<a name="l02008"></a><a class="code" href="a00214.html#a2ff65e13fc62a4f5a56f9748bf5e5293">02008</a> <span class="keyword">typedef</span> ObjectStack <a class="code" href="a00214.html#a2ff65e13fc62a4f5a56f9748bf5e5293" title="Convenience type for a stack of linked objects.">objstack_t</a>;
<a name="l02009"></a>02009
<a name="l02013"></a><a class="code" href="a00214.html#ab1b9d99194b64ef1b24cd661d40b0e4c">02013</a> <span class="keyword">typedef</span> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">OrderedIndex</a> <a class="code" href="a00099.html" title="An index container for maintaining an ordered list of objects.">objfifo_t</a>;
<a name="l02014"></a>02014
<a name="l02018"></a><a class="code" href="a00214.html#a91ba2b1ef32476df9291379de1efbdae">02018</a> <span class="keyword">typedef</span> <a class="code" href="a00095.html" title="A queue of double linked object.">ObjectQueue</a> <a class="code" href="a00095.html" title="A queue of double linked object.">objqueue_t</a>;
<a name="l02019"></a>02019
<a name="l02020"></a>02020 END_NAMESPACE
<a name="l02021"></a>02021
<a name="l02022"></a>02022 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:01 2010 for UCommon by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
|