/usr/share/doc/libucommon-dev/a00180.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 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 | <!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: ucc::Vector Class Reference</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 class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><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="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00180.html">Vector</a>
</div>
</div>
<div class="contents">
<h1>ucc::Vector Class Reference</h1><!-- doxytag: class="ucc::Vector" -->
<p>A managed vector for generic object pointers.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="a00212_source.html">vector.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for ucc::Vector:</div>
<div class="dynsection">
<div class="center"><img src="a00585.png" border="0" usemap="#ucc_1_1_vector_inherit__map" alt="Inheritance graph"/></div>
<map name="ucc_1_1_vector_inherit__map" id="ucc_1_1_vector_inherit__map">
<area shape="rect" id="node3" href="a00083.html" title="Vector with fixed size member list." alt="" coords="25,83,151,112"/><area shape="rect" id="node7" href="a00182.html" title="A templated vector for a list of a specific Object subtype." alt="" coords="175,83,316,112"/><area shape="rect" id="node5" href="a00181.html" title="Allocated vector list of a specified type." alt="" coords="5,160,171,189"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a3b8476cea9e2072faecaef0750146115">add</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add (append) an existing vector to our vector. <a href="#a3b8476cea9e2072faecaef0750146115"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a95603442f1fc40741463e919b16a3bd5">add</a> (<a class="el" href="a00093.html">Object</a> *<a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add (append) a single object pointer to the vector. <a href="#a95603442f1fc40741463e919b16a3bd5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a6b253860475efdf2122398ba61409f59">add</a> (<a class="el" href="a00093.html">Object</a> **list)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add (append) a NULL terminated list of objects to the vector. <a href="#a6b253860475efdf2122398ba61409f59"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00093.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a3eb2d0fdf9a0b79e17a3c7181091e3bc">begin</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first object pointer contained in the vector. <a href="#a3eb2d0fdf9a0b79e17a3c7181091e3bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a873878acc08b3204e4512ca86a091875"></a><!-- doxytag: member="ucc::Vector::clear" ref="a873878acc08b3204e4512ca86a091875" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a873878acc08b3204e4512ca86a091875">clear</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">De-reference and remove all pointers from the vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00093.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a8aeaaa2dc047127b65a2ef56b7502c04">end</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last object pointer contained in the vector. <a href="#a8aeaaa2dc047127b65a2ef56b7502c04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a7bb31d700265191e7d20ab1b411df7ca">find</a> (<a class="el" href="a00093.html">Object</a> *<a class="el" href="a00015.html">pointer</a>, vectorsize_t offset=0) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find the first instance of a specific pointer in the vector. <a href="#a7bb31d700265191e7d20ab1b411df7ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a78ba2d47958f24954acbefc50b4dca8d">get</a> (void **mem, vectorsize_t max) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy the vector to an external pointer array. <a href="#a78ba2d47958f24954acbefc50b4dca8d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00093.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a3f63e682e7f888134b4584fce3e896ae">get</a> (int index) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get an object pointer from a specified member of the vector. <a href="#a3f63e682e7f888134b4584fce3e896ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a6cf0c26a4dcd21aa08bba29d5d0b6261">len</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of the vector (number of active members). <a href="#a6cf0c26a4dcd21aa08bba29d5d0b6261"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#af95e47bb3d000b6f9dff4c5ecf725b4b">operator()</a> (<a class="el" href="a00093.html">Object</a> *<a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a member to the vector directly. <a href="#af95e47bb3d000b6f9dff4c5ecf725b4b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00093.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a95a71eb568ab5beb8902474256fea6b7">operator()</a> (vectorsize_t position)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a member of the vector directly. <a href="#a95a71eb568ab5beb8902474256fea6b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a5756bd761d82afaeda992c24979d7e2f">operator()</a> (vectorsize_t position, <a class="el" href="a00093.html">Object</a> *<a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign a member of the vector directly. <a href="#a5756bd761d82afaeda992c24979d7e2f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00180.html">Vector</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a7a28890aafa2c87e353711b5c18a04d6">operator+</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Concatenate into our existing vector from assignment list. <a href="#a7a28890aafa2c87e353711b5c18a04d6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23369439a4bea1db85f55ea8f1c0ae30"></a><!-- doxytag: member="ucc::Vector::operator++" ref="a23369439a4bea1db85f55ea8f1c0ae30" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a23369439a4bea1db85f55ea8f1c0ae30">operator++</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Drop first member of vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a1a747dfddd3d0e1889c71628a5d6ca29">operator+=</a> (vectorsize_t count)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Drop first specified members from the vector. <a href="#a1a747dfddd3d0e1889c71628a5d6ca29"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a4849f74444aec47e73204b8f5d4419ae">operator+=</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append into our existing vector from another vector. <a href="#a4849f74444aec47e73204b8f5d4419ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b1d4f2eef883d3ffed3b73d4447e71d"></a><!-- doxytag: member="ucc::Vector::operator--" ref="a9b1d4f2eef883d3ffed3b73d4447e71d" args="()" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a9b1d4f2eef883d3ffed3b73d4447e71d">operator--</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Drop last member of the vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#abfc049604047f0b93e4f77865d9aadb1">operator-=</a> (vectorsize_t count)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Drop last specified members from the vector. <a href="#abfc049604047f0b93e4f77865d9aadb1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ab7f3327441266a5b9e555ffa40909520">operator=</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assign (copy) into our existing vector from another vector. <a href="#ab7f3327441266a5b9e555ffa40909520"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00093.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ac839eee9b8dedabe55e9e8859a00a4b8">operator[]</a> (int index)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer from the vector by array reference. <a href="#ac839eee9b8dedabe55e9e8859a00a4b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00180.html">Vector</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ad491ec8a0f6e44f6fca862708ca33985">operator^</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release vector and concat vector from another vector. <a href="#ad491ec8a0f6e44f6fca862708ca33985"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a6a78094f3c8278c76571cf0439456e1f">operator^=</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release our existing vector and duplicate from another vector. <a href="#a6a78094f3c8278c76571cf0439456e1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ae096ef0de9663992bf6ba839a734c8e1">resize</a> (vectorsize_t size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Re-size & re-allocate the total (allocated) size of the vector. <a href="#ae096ef0de9663992bf6ba839a734c8e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a503a98404bf93d862ab18799451ce938">rsplit</a> (vectorsize_t position)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Split the vector after a specified offset. <a href="#a503a98404bf93d862ab18799451ce938"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#aa69a732eb7d6216bf3c96d6988011c4e">set</a> (<a class="el" href="a00180.html">Vector</a> &vector)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set (duplicate) an existing vector into our vector. <a href="#aa69a732eb7d6216bf3c96d6988011c4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a62979701894694a931c9317696cb4d38">set</a> (<a class="el" href="a00093.html">Object</a> **list)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the vector to a list of objects terminated by a NULL pointer. <a href="#a62979701894694a931c9317696cb4d38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ae640cfef7051be4199944f8a57daf3f5">set</a> (vectorsize_t position, <a class="el" href="a00093.html">Object</a> *<a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set a member of the vector to an object. <a href="#ae640cfef7051be4199944f8a57daf3f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ad37945418b51513b27205824e75444a8">size</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the effective allocation space used by the vector. <a href="#ad37945418b51513b27205824e75444a8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ae28fb6d50dfc010a581a2576c44c7303">split</a> (vectorsize_t position)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Split the vector at a specified offset. <a href="#ae28fb6d50dfc010a581a2576c44c7303"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a00ce3293ccc82c3cd60139772b28b611">Vector</a> (<a class="el" href="a00093.html">Object</a> **items, vectorsize_t size=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a vector of size objects from existing object pointers. <a href="#a00ce3293ccc82c3cd60139772b28b611"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ab942c67543a24fc495e8fcc1d73a497f">Vector</a> (vectorsize_t size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a vector of size object pointers. <a href="#ab942c67543a24fc495e8fcc1d73a497f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fdf0c9e817ac516977bcf052e0d4fd7"></a><!-- doxytag: member="ucc::Vector::Vector" ref="a3fdf0c9e817ac516977bcf052e0d4fd7" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a3fdf0c9e817ac516977bcf052e0d4fd7">Vector</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an initially empty vector. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac91c78ca2b5b56e3f76909232fdb91da"></a><!-- doxytag: member="ucc::Vector::~Vector" ref="ac91c78ca2b5b56e3f76909232fdb91da" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#ac91c78ca2b5b56e3f76909232fdb91da">~Vector</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy the current reference counted vector of object pointers. <br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a32ebf9ce25059c2a0fba948d800b3da2">size</a> (void **list)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the effective vector size of a list of object pointers. <a href="#a32ebf9ce25059c2a0fba948d800b3da2"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c1a222b29257d1ac35d0c9af4ac56d2"></a><!-- doxytag: member="ucc::Vector::npos" ref="a2c1a222b29257d1ac35d0c9af4ac56d2" args="" -->
static const vectorsize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00180.html#a2c1a222b29257d1ac35d0c9af4ac56d2">npos</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">npos is a constant for an "invalid" position value. <br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0dce7f511f0492024e2ea361983b23be"></a><!-- doxytag: member="ucc::Vector::cow" ref="a0dce7f511f0492024e2ea361983b23be" args="(vectorsize_t adj=0)" -->
virtual void </td><td class="memItemRight" valign="bottom"><b>cow</b> (vectorsize_t adj=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b0f4545a55fa61129e2d829328b88fa"></a><!-- doxytag: member="ucc::Vector::create" ref="a1b0f4545a55fa61129e2d829328b88fa" args="(vectorsize_t size) const " -->
array * </td><td class="memItemRight" valign="bottom"><b>create</b> (vectorsize_t size) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62b6f292152d732589f968e670fb6ca9"></a><!-- doxytag: member="ucc::Vector::list" ref="a62b6f292152d732589f968e670fb6ca9" args="(void) const " -->
<a class="el" href="a00093.html">Object</a> ** </td><td class="memItemRight" valign="bottom"><b>list</b> (void) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed355470ebe3382e2acb14619ec27ed9"></a><!-- doxytag: member="ucc::Vector::release" ref="aed355470ebe3382e2acb14619ec27ed9" args="(void)" -->
virtual void </td><td class="memItemRight" valign="bottom"><b>release</b> (void)</td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2ac8f1cd16f31a6f83678158851e1a2"></a><!-- doxytag: member="ucc::Vector::data" ref="af2ac8f1cd16f31a6f83678158851e1a2" args="" -->
array * </td><td class="memItemRight" valign="bottom"><b>data</b></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7604288543d380cd72a5d4e93b3291c"></a><!-- doxytag: member="ucc::Vector::Vector::array" ref="ae7604288543d380cd72a5d4e93b3291c" args="" -->
class </td><td class="memItemRight" valign="bottom"><b>Vector::array</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A managed vector for generic object pointers. </p>
<p>This vector is memory managed at runtime by basic cow (copy-on-write) operations of a reference counted object list. This allows the size of the vector to be changed at runtime and for the vector to be copied by managing reference counted copies of the list of objects as needed.</p>
<p>This class is somewhat anagalous to the string class, but rather than holding a string "array of chars" that may be re-sized and reallocated, the <a class="el" href="a00180.html" title="A managed vector for generic object pointers.">Vector</a> holds an array of <a class="el" href="a00093.html" title="A common base class for all managed objects.">Object</a> pointers. Since the object pointers we store in the vector are objects inherited from <a class="el" href="a00093.html" title="A common base class for all managed objects.">Object</a>, a vector can itself act as a vector of smart pointers to reference counted objects (derived from <a class="el" href="a00043.html" title="A base class for reference counted objects.">CountedObject</a>). </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>>. </dd></dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00110">110</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="ab942c67543a24fc495e8fcc1d73a497f"></a><!-- doxytag: member="ucc::Vector::Vector" ref="ab942c67543a24fc495e8fcc1d73a497f" args="(vectorsize_t size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Vector::Vector </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>size</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a vector of size object pointers. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>of vector to create. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a00ce3293ccc82c3cd60139772b28b611"></a><!-- doxytag: member="ucc::Vector::Vector" ref="a00ce3293ccc82c3cd60139772b28b611" args="(Object **items, vectorsize_t size=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Vector::Vector </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> ** </td>
<td class="paramname"> <em>items</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>size</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a vector of size objects from existing object pointers. </p>
<p>This allocates the vector and initializes the object pointers from an existing array of object pointers. Either a specific vector size may be used, or the end of the vector will be found by a NULL object pointer. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>items</em> </td><td>to place into the vector. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>of the vector to create, or use NULL item for end. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3b8476cea9e2072faecaef0750146115"></a><!-- doxytag: member="ucc::Vector::add" ref="a3b8476cea9e2072faecaef0750146115" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add (append) an existing vector to our vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to append. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00288">288</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00180_a3b8476cea9e2072faecaef0750146115_cgraph.png" border="0" usemap="#a00180_a3b8476cea9e2072faecaef0750146115_cgraph_map" alt=""></div>
</div>
</p>
</div>
</div>
<a class="anchor" id="a95603442f1fc40741463e919b16a3bd5"></a><!-- doxytag: member="ucc::Vector::add" ref="a95603442f1fc40741463e919b16a3bd5" args="(Object *pointer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> * </td>
<td class="paramname"> <em>pointer</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add (append) a single object pointer to the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to add to vector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6b253860475efdf2122398ba61409f59"></a><!-- doxytag: member="ucc::Vector::add" ref="a6b253860475efdf2122398ba61409f59" args="(Object **list)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> ** </td>
<td class="paramname"> <em>list</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add (append) a NULL terminated list of objects to the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>list</em> </td><td>of object pointers to add. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3eb2d0fdf9a0b79e17a3c7181091e3bc"></a><!-- doxytag: member="ucc::Vector::begin" ref="a3eb2d0fdf9a0b79e17a3c7181091e3bc" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00093.html">Object</a>* ucc::Vector::begin </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the first object pointer contained in the vector. </p>
<p>Typically used in iterations. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>first object pointer. </dd></dl>
</div>
</div>
<a class="anchor" id="a8aeaaa2dc047127b65a2ef56b7502c04"></a><!-- doxytag: member="ucc::Vector::end" ref="a8aeaaa2dc047127b65a2ef56b7502c04" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00093.html">Object</a>* ucc::Vector::end </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the last object pointer contained in the vector. </p>
<p>Typically used in iterations. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>last object pointer. </dd></dl>
</div>
</div>
<a class="anchor" id="a7bb31d700265191e7d20ab1b411df7ca"></a><!-- doxytag: member="ucc::Vector::find" ref="a7bb31d700265191e7d20ab1b411df7ca" args="(Object *pointer, vectorsize_t offset=0) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vectorsize_t ucc::Vector::find </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> * </td>
<td class="paramname"> <em>pointer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>offset</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Find the first instance of a specific pointer in the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to locate in the vector. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>to start searching in vector. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>position of pointer in vector or npos if not found. </dd></dl>
</div>
</div>
<a class="anchor" id="a78ba2d47958f24954acbefc50b4dca8d"></a><!-- doxytag: member="ucc::Vector::get" ref="a78ba2d47958f24954acbefc50b4dca8d" args="(void **mem, vectorsize_t max) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vectorsize_t ucc::Vector::get </td>
<td>(</td>
<td class="paramtype">void ** </td>
<td class="paramname"> <em>mem</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>max</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy the vector to an external pointer array. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>mem</em> </td><td>array of external pointers to hold vector. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>size of the external array. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of elements copied into external array. </dd></dl>
</div>
</div>
<a class="anchor" id="a3f63e682e7f888134b4584fce3e896ae"></a><!-- doxytag: member="ucc::Vector::get" ref="a3f63e682e7f888134b4584fce3e896ae" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00093.html">Object</a>* ucc::Vector::get </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>index</em></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get an object pointer from a specified member of the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>of member pointer to return. Negative values from end. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>object pointer of member. </dd></dl>
</div>
</div>
<a class="anchor" id="a6cf0c26a4dcd21aa08bba29d5d0b6261"></a><!-- doxytag: member="ucc::Vector::len" ref="a6cf0c26a4dcd21aa08bba29d5d0b6261" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vectorsize_t ucc::Vector::len </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the size of the vector (number of active members). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of active pointers in vector. </dd></dl>
</div>
</div>
<a class="anchor" id="af95e47bb3d000b6f9dff4c5ecf725b4b"></a><!-- doxytag: member="ucc::Vector::operator()" ref="af95e47bb3d000b6f9dff4c5ecf725b4b" args="(Object *pointer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator() </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> * </td>
<td class="paramname"> <em>pointer</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append a member to the vector directly. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to object to add to vector. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00318">318</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00180_af95e47bb3d000b6f9dff4c5ecf725b4b_cgraph.png" border="0" usemap="#a00180_af95e47bb3d000b6f9dff4c5ecf725b4b_cgraph_map" alt=""></div>
<map name="a00180_af95e47bb3d000b6f9dff4c5ecf725b4b_cgraph_map" id="a00180_af95e47bb3d000b6f9dff4c5ecf725b4b_cgraph">
<area shape="rect" id="node3" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects." alt="" coords="223,5,297,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a95a71eb568ab5beb8902474256fea6b7"></a><!-- doxytag: member="ucc::Vector::operator()" ref="a95a71eb568ab5beb8902474256fea6b7" args="(vectorsize_t position)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00093.html">Object</a>* ucc::Vector::operator() </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>position</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Retrieve a member of the vector directly. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>to retrieve object from. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>object pointer retrieved from vector. </dd></dl>
<p>Reimplemented in <a class="el" href="a00182.html#a21e4c6e4be51e7c38e2c2128137afd3d">ucc::vectorof< T ></a>, and <a class="el" href="a00181.html#acab2952068aa07dfd3dd264749925bf4">ucc::vectorbuf< T, S ></a>.</p>
<p>Definition at line <a class="el" href="a00212_source.html#l00311">311</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5756bd761d82afaeda992c24979d7e2f"></a><!-- doxytag: member="ucc::Vector::operator()" ref="a5756bd761d82afaeda992c24979d7e2f" args="(vectorsize_t position, Object *pointer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator() </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> * </td>
<td class="paramname"> <em>pointer</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Assign a member of the vector directly. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>to assign. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to object to assign to vector. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00303">303</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
</div>
</div>
<a class="anchor" id="a7a28890aafa2c87e353711b5c18a04d6"></a><!-- doxytag: member="ucc::Vector::operator+" ref="a7a28890aafa2c87e353711b5c18a04d6" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00180.html">Vector</a>& ucc::Vector::operator+ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Concatenate into our existing vector from assignment list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to append from. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="a00182.html#aceed9ef7dc83e1654b2bd068e9059f36">ucc::vectorof< T ></a>, and <a class="el" href="a00181.html#ac54c345cb840066c4aa801a2fec4c8f6">ucc::vectorbuf< T, S ></a>.</p>
<p>Definition at line <a class="el" href="a00212_source.html#l00339">339</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00180_a7a28890aafa2c87e353711b5c18a04d6_cgraph.png" border="0" usemap="#a00180_a7a28890aafa2c87e353711b5c18a04d6_cgraph_map" alt=""></div>
<map name="a00180_a7a28890aafa2c87e353711b5c18a04d6_cgraph_map" id="a00180_a7a28890aafa2c87e353711b5c18a04d6_cgraph">
<area shape="rect" id="node3" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects." alt="" coords="223,5,297,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a1a747dfddd3d0e1889c71628a5d6ca29"></a><!-- doxytag: member="ucc::Vector::operator+=" ref="a1a747dfddd3d0e1889c71628a5d6ca29" args="(vectorsize_t count)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator+= </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>count</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Drop first specified members from the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>of members to drop. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a4849f74444aec47e73204b8f5d4419ae"></a><!-- doxytag: member="ucc::Vector::operator+=" ref="a4849f74444aec47e73204b8f5d4419ae" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator+= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append into our existing vector from another vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to append from. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00332">332</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00180_a4849f74444aec47e73204b8f5d4419ae_cgraph.png" border="0" usemap="#a00180_a4849f74444aec47e73204b8f5d4419ae_cgraph_map" alt=""></div>
<map name="a00180_a4849f74444aec47e73204b8f5d4419ae_cgraph_map" id="a00180_a4849f74444aec47e73204b8f5d4419ae_cgraph">
<area shape="rect" id="node3" href="a00214.html#aad0ef1f27ebf9203be99b1824400e269" title="Add a linked object onto a stack of linked objects." alt="" coords="233,5,308,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="abfc049604047f0b93e4f77865d9aadb1"></a><!-- doxytag: member="ucc::Vector::operator-=" ref="abfc049604047f0b93e4f77865d9aadb1" args="(vectorsize_t count)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator-= </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>count</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Drop last specified members from the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>of members to drop. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab7f3327441266a5b9e555ffa40909520"></a><!-- doxytag: member="ucc::Vector::operator=" ref="ab7f3327441266a5b9e555ffa40909520" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Assign (copy) into our existing vector from another vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to assign from. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="a00083.html#a8a568f9fc88cc9ca8f7550f918fe693a">ucc::MemVector</a>.</p>
<p>Definition at line <a class="el" href="a00212_source.html#l00325">325</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac839eee9b8dedabe55e9e8859a00a4b8"></a><!-- doxytag: member="ucc::Vector::operator[]" ref="ac839eee9b8dedabe55e9e8859a00a4b8" args="(int index)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00093.html">Object</a>* ucc::Vector::operator[] </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>index</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a pointer from the vector by array reference. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>of vector member pointer to return. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00295">295</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
</div>
</div>
<a class="anchor" id="ad491ec8a0f6e44f6fca862708ca33985"></a><!-- doxytag: member="ucc::Vector::operator^" ref="ad491ec8a0f6e44f6fca862708ca33985" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00180.html">Vector</a>& ucc::Vector::operator^ </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Release vector and concat vector from another vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to assign from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6a78094f3c8278c76571cf0439456e1f"></a><!-- doxytag: member="ucc::Vector::operator^=" ref="a6a78094f3c8278c76571cf0439456e1f" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::operator^= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Release our existing vector and duplicate from another vector. </p>
<p>This differs from assign in that the allocated size of the vector is reset to the new list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to assign from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae096ef0de9663992bf6ba839a734c8e1"></a><!-- doxytag: member="ucc::Vector::resize" ref="ae096ef0de9663992bf6ba839a734c8e1" args="(vectorsize_t size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool ucc::Vector::resize </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>size</em></td>
<td> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Re-size & re-allocate the total (allocated) size of the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>to allocate for vector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a503a98404bf93d862ab18799451ce938"></a><!-- doxytag: member="ucc::Vector::rsplit" ref="a503a98404bf93d862ab18799451ce938" args="(vectorsize_t position)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::rsplit </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>position</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Split the vector after a specified offset. </p>
<p>All members before the split are de-referenced and dropped. The member starting at the split point becomes the first member of the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>to split vector at. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa69a732eb7d6216bf3c96d6988011c4e"></a><!-- doxytag: member="ucc::Vector::set" ref="aa69a732eb7d6216bf3c96d6988011c4e" args="(Vector &vector)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00180.html">Vector</a> & </td>
<td class="paramname"> <em>vector</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set (duplicate) an existing vector into our vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>vector</em> </td><td>to duplicate. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00212_source.html#l00281">281</a> of file <a class="el" href="a00212_source.html">vector.h</a>.</p>
</div>
</div>
<a class="anchor" id="a62979701894694a931c9317696cb4d38"></a><!-- doxytag: member="ucc::Vector::set" ref="a62979701894694a931c9317696cb4d38" args="(Object **list)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> ** </td>
<td class="paramname"> <em>list</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the vector to a list of objects terminated by a NULL pointer. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>list</em> </td><td>of object pointers. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae640cfef7051be4199944f8a57daf3f5"></a><!-- doxytag: member="ucc::Vector::set" ref="ae640cfef7051be4199944f8a57daf3f5" args="(vectorsize_t position, Object *pointer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::set </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00093.html">Object</a> * </td>
<td class="paramname"> <em>pointer</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a member of the vector to an object. </p>
<p>If an existing member was present and is being replaced, it is de-referenced. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>in vector to place object pointer. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to place in vector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a32ebf9ce25059c2a0fba948d800b3da2"></a><!-- doxytag: member="ucc::Vector::size" ref="a32ebf9ce25059c2a0fba948d800b3da2" args="(void **list)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static vectorsize_t ucc::Vector::size </td>
<td>(</td>
<td class="paramtype">void ** </td>
<td class="paramname"> <em>list</em></td>
<td> ) </td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compute the effective vector size of a list of object pointers. </p>
<p>The size is found as the NULL pointer in the list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>size of list. </dd></dl>
</div>
</div>
<a class="anchor" id="ad37945418b51513b27205824e75444a8"></a><!-- doxytag: member="ucc::Vector::size" ref="ad37945418b51513b27205824e75444a8" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">vectorsize_t ucc::Vector::size </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the effective allocation space used by the vector. </p>
<p>This is the number of pointers it can hold before it needs to be resized. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>storage size of vector. </dd></dl>
</div>
</div>
<a class="anchor" id="ae28fb6d50dfc010a581a2576c44c7303"></a><!-- doxytag: member="ucc::Vector::split" ref="ae28fb6d50dfc010a581a2576c44c7303" args="(vectorsize_t position)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Vector::split </td>
<td>(</td>
<td class="paramtype">vectorsize_t </td>
<td class="paramname"> <em>position</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Split the vector at a specified offset. </p>
<p>All members after the split are de-referenced and dropped from the vector. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>to split vector at. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00212_source.html">vector.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:54 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>
|