1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3 <title> TemplateOscl_Vector< T, Alloc > class Reference</title> 4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 5 </head><body> 6 <!-- Generated by Doxygen 1.2.18 --> 7 <center> 8 <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9 <hr><h1>Oscl_Vector< T, Alloc > Class Template Reference<br> 10 <small> 11 [<a class="el" href="group__osclbase.html">OSCL Base</a>]</small> 12 </h1><code>#include <<a class="el" href="oscl__vector_8h-source.html">oscl_vector.h</a>></code> 13 <p> 14 <p>Inheritance diagram for Oscl_Vector< T, Alloc >: 15 <p><center><img src="classOscl__Vector.png" usemap="#Oscl_Vector< T, Alloc >_map" border="0" alt=""></center> 16 <map name="Oscl_Vector< T, Alloc >_map"> 17 <area href="classOscl__Vector__Base.html" alt="Oscl_Vector_Base" shape="rect" coords="0,0,160,24"> 18 <area href="classOscl__Opaque__Type__Alloc.html" alt="Oscl_Opaque_Type_Alloc" shape="rect" coords="170,0,330,24"> 19 </map> 20 <table border=0 cellpadding=0 cellspacing=0> 21 <tr><td></td></tr> 22 <tr><td colspan=2><br><h2>Public Types</h2></td></tr> 23 <tr><td nowrap align=right valign=top>typedef T </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s0">value_type</a></td></tr> 24 <tr><td nowrap align=right valign=top>typedef T * </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s1">pointer</a></td></tr> 25 <tr><td nowrap align=right valign=top>typedef T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s2">reference</a></td></tr> 26 <tr><td nowrap align=right valign=top>typedef const T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s3">const_reference</a></td></tr> 27 <tr><td nowrap align=right valign=top>typedef T * </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s4">iterator</a></td></tr> 28 <tr><td nowrap align=right valign=top>typedef const T * </td><td valign=bottom><a class="el" href="classOscl__Vector.html#s5">const_iterator</a></td></tr> 29 <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> 30 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a0">Oscl_Vector</a> ()</td></tr> 31 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a1">Oscl_Vector</a> (uint32 n)</td></tr> 32 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a2">Oscl_Vector</a> (const Oscl_Vector< T, Alloc > &x)</td></tr> 33 <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a3">~Oscl_Vector</a> ()</td></tr> 34 <tr><td nowrap align=right valign=top>Oscl_Vector< T, Alloc > & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a4">operator=</a> (const Oscl_Vector< T, Alloc > &x)</td></tr> 35 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a5">push_back</a> (const T &x)</td></tr> 36 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a6">push_front</a> (const T &x)</td></tr> 37 <tr><td nowrap align=right valign=top><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a7">insert</a> (<a class="el" href="classOscl__Vector.html#s4">iterator</a> pos, const T &x)</td></tr> 38 <tr><td nowrap align=right valign=top>T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a8">operator[]</a> (uint32 n)</td></tr> 39 <tr><td nowrap align=right valign=top>const T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a9">operator[]</a> (uint32 n) const</td></tr> 40 <tr><td nowrap align=right valign=top>T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a10">front</a> ()</td></tr> 41 <tr><td nowrap align=right valign=top>const T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a11">front</a> () const</td></tr> 42 <tr><td nowrap align=right valign=top>T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a12">back</a> ()</td></tr> 43 <tr><td nowrap align=right valign=top>const T & </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a13">back</a> () const</td></tr> 44 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a14">pop_back</a> ()</td></tr> 45 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a15">clear</a> ()</td></tr> 46 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a16">destroy</a> ()</td></tr> 47 <tr><td nowrap align=right valign=top><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a17">begin</a> () const</td></tr> 48 <tr><td nowrap align=right valign=top><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a18">end</a> () const</td></tr> 49 <tr><td nowrap align=right valign=top><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a19">erase</a> (<a class="el" href="classOscl__Vector.html#s4">iterator</a> pos)</td></tr> 50 <tr><td nowrap align=right valign=top><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td><td valign=bottom><a class="el" href="classOscl__Vector.html#a20">erase</a> (<a class="el" href="classOscl__Vector.html#s4">iterator</a> first, <a class="el" href="classOscl__Vector.html#s4">iterator</a> last)</td></tr> 51 </table> 52 <hr><a name="_details"></a><h2>Detailed Description</h2> 53 <h3>template<class T, class Alloc><br> 54 class Oscl_Vector< T, Alloc ></h3> 55 56 Oscl_Vector Class. A subset of STL::Vector methods. Oscl_Vector supports random access to elements, constant time insertion and removal of elements at the end of the vector, and linear time insertion and removal of elements at the beginning or middle of the vector. The number of elements in a vector can vary dynamically, and memory management is performed automatically. 57 <p> 58 <hr><h2>Member Typedef Documentation</h2> 59 <a name="s5" doxytag="Oscl_Vector::const_iterator"></a><p> 60 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 61 <tr> 62 <td class="md"> 63 <table cellpadding="0" cellspacing="0" border="0"> 64 <tr> 65 <td class="md" colspan="4"> 66 template<class T, class Alloc> </td> 67 </tr> 68 <tr> 69 <td class="md" nowrap valign="top"> typedef const T* Oscl_Vector< T, Alloc >::const_iterator 70 </table> 71 </td> 72 </tr> 73 </table> 74 <table cellspacing=5 cellpadding=0 border=0> 75 <tr> 76 <td> 77 78 </td> 79 <td> 80 81 <p> 82 </td> 83 </tr> 84 </table> 85 <a name="s3" doxytag="Oscl_Vector::const_reference"></a><p> 86 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 87 <tr> 88 <td class="md"> 89 <table cellpadding="0" cellspacing="0" border="0"> 90 <tr> 91 <td class="md" colspan="4"> 92 template<class T, class Alloc> </td> 93 </tr> 94 <tr> 95 <td class="md" nowrap valign="top"> typedef const T& Oscl_Vector< T, Alloc >::const_reference 96 </table> 97 </td> 98 </tr> 99 </table> 100 <table cellspacing=5 cellpadding=0 border=0> 101 <tr> 102 <td> 103 104 </td> 105 <td> 106 107 <p> 108 </td> 109 </tr> 110 </table> 111 <a name="s4" doxytag="Oscl_Vector::iterator"></a><p> 112 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 113 <tr> 114 <td class="md"> 115 <table cellpadding="0" cellspacing="0" border="0"> 116 <tr> 117 <td class="md" colspan="4"> 118 template<class T, class Alloc> </td> 119 </tr> 120 <tr> 121 <td class="md" nowrap valign="top"> typedef T* Oscl_Vector< T, Alloc >::iterator 122 </table> 123 </td> 124 </tr> 125 </table> 126 <table cellspacing=5 cellpadding=0 border=0> 127 <tr> 128 <td> 129 130 </td> 131 <td> 132 133 <p> 134 </td> 135 </tr> 136 </table> 137 <a name="s1" doxytag="Oscl_Vector::pointer"></a><p> 138 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 139 <tr> 140 <td class="md"> 141 <table cellpadding="0" cellspacing="0" border="0"> 142 <tr> 143 <td class="md" colspan="4"> 144 template<class T, class Alloc> </td> 145 </tr> 146 <tr> 147 <td class="md" nowrap valign="top"> typedef T* Oscl_Vector< T, Alloc >::pointer 148 </table> 149 </td> 150 </tr> 151 </table> 152 <table cellspacing=5 cellpadding=0 border=0> 153 <tr> 154 <td> 155 156 </td> 157 <td> 158 159 <p> 160 </td> 161 </tr> 162 </table> 163 <a name="s2" doxytag="Oscl_Vector::reference"></a><p> 164 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 165 <tr> 166 <td class="md"> 167 <table cellpadding="0" cellspacing="0" border="0"> 168 <tr> 169 <td class="md" colspan="4"> 170 template<class T, class Alloc> </td> 171 </tr> 172 <tr> 173 <td class="md" nowrap valign="top"> typedef T& Oscl_Vector< T, Alloc >::reference 174 </table> 175 </td> 176 </tr> 177 </table> 178 <table cellspacing=5 cellpadding=0 border=0> 179 <tr> 180 <td> 181 182 </td> 183 <td> 184 185 <p> 186 </td> 187 </tr> 188 </table> 189 <a name="s0" doxytag="Oscl_Vector::value_type"></a><p> 190 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 191 <tr> 192 <td class="md"> 193 <table cellpadding="0" cellspacing="0" border="0"> 194 <tr> 195 <td class="md" colspan="4"> 196 template<class T, class Alloc> </td> 197 </tr> 198 <tr> 199 <td class="md" nowrap valign="top"> typedef T Oscl_Vector< T, Alloc >::value_type 200 </table> 201 </td> 202 </tr> 203 </table> 204 <table cellspacing=5 cellpadding=0 border=0> 205 <tr> 206 <td> 207 208 </td> 209 <td> 210 211 <p> 212 </td> 213 </tr> 214 </table> 215 <hr><h2>Constructor & Destructor Documentation</h2> 216 <a name="a0" doxytag="Oscl_Vector::Oscl_Vector"></a><p> 217 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 218 <tr> 219 <td class="md"> 220 <table cellpadding="0" cellspacing="0" border="0"> 221 <tr> 222 <td class="md" colspan="4"> 223 template<class T, class Alloc> </td> 224 </tr> 225 <tr> 226 <td class="md" nowrap valign="top"> Oscl_Vector< T, Alloc >::Oscl_Vector </td> 227 <td class="md" valign="top">( </td> 228 <td class="mdname1" valign="top" nowrap> </td> 229 <td class="md" valign="top">) </td> 230 <td class="md" nowrap><code> [inline]</code></td> 231 </tr> 232 233 </table> 234 </td> 235 </tr> 236 </table> 237 <table cellspacing=5 cellpadding=0 border=0> 238 <tr> 239 <td> 240 241 </td> 242 <td> 243 244 <p> 245 Creates an empty vector. </td> 246 </tr> 247 </table> 248 <a name="a1" doxytag="Oscl_Vector::Oscl_Vector"></a><p> 249 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 250 <tr> 251 <td class="md"> 252 <table cellpadding="0" cellspacing="0" border="0"> 253 <tr> 254 <td class="md" colspan="4"> 255 template<class T, class Alloc> </td> 256 </tr> 257 <tr> 258 <td class="md" nowrap valign="top"> Oscl_Vector< T, Alloc >::Oscl_Vector </td> 259 <td class="md" valign="top">( </td> 260 <td class="md" nowrap valign="top">uint32 </td> 261 <td class="mdname1" valign="top" nowrap> <em>n</em> </td> 262 <td class="md" valign="top">) </td> 263 <td class="md" nowrap><code> [inline]</code></td> 264 </tr> 265 266 </table> 267 </td> 268 </tr> 269 </table> 270 <table cellspacing=5 cellpadding=0 border=0> 271 <tr> 272 <td> 273 274 </td> 275 <td> 276 277 <p> 278 Creates an empty vector with capacity n. <dl compact><dt><b>Parameters: </b></dt><dd> 279 <table border=0 cellspacing=2 cellpadding=0> 280 <tr><td valign=top><em>n</em> </td><td> 281 creates a vector with n elements. The main reason for specifying n is efficiency. If you know the capacity to which your vector must grow, then it is more efficient to allocate the vector all at once rather than rely on the automatic reallocation scheme. This also helps cotrol the invalidation of iterators. </td></tr> 282 </table> 283 </dl> </td> 284 </tr> 285 </table> 286 <a name="a2" doxytag="Oscl_Vector::Oscl_Vector"></a><p> 287 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 288 <tr> 289 <td class="md"> 290 <table cellpadding="0" cellspacing="0" border="0"> 291 <tr> 292 <td class="md" colspan="4"> 293 template<class T, class Alloc> </td> 294 </tr> 295 <tr> 296 <td class="md" nowrap valign="top"> Oscl_Vector< T, Alloc >::Oscl_Vector </td> 297 <td class="md" valign="top">( </td> 298 <td class="md" nowrap valign="top">const Oscl_Vector< T, Alloc > & </td> 299 <td class="mdname1" valign="top" nowrap> <em>x</em> </td> 300 <td class="md" valign="top">) </td> 301 <td class="md" nowrap><code> [inline]</code></td> 302 </tr> 303 304 </table> 305 </td> 306 </tr> 307 </table> 308 <table cellspacing=5 cellpadding=0 border=0> 309 <tr> 310 <td> 311 312 </td> 313 <td> 314 315 <p> 316 Copy Constructor. <dl compact><dt><b>Parameters: </b></dt><dd> 317 <table border=0 cellspacing=2 cellpadding=0> 318 <tr><td valign=top><em>x</em> </td><td> 319 vector class to copy. </td></tr> 320 </table> 321 </dl> </td> 322 </tr> 323 </table> 324 <a name="a3" doxytag="Oscl_Vector::~Oscl_Vector"></a><p> 325 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 326 <tr> 327 <td class="md"> 328 <table cellpadding="0" cellspacing="0" border="0"> 329 <tr> 330 <td class="md" colspan="4"> 331 template<class T, class Alloc> </td> 332 </tr> 333 <tr> 334 <td class="md" nowrap valign="top"> virtual Oscl_Vector< T, Alloc >::~Oscl_Vector </td> 335 <td class="md" valign="top">( </td> 336 <td class="mdname1" valign="top" nowrap> </td> 337 <td class="md" valign="top">) </td> 338 <td class="md" nowrap><code> [inline, virtual]</code></td> 339 </tr> 340 341 </table> 342 </td> 343 </tr> 344 </table> 345 <table cellspacing=5 cellpadding=0 border=0> 346 <tr> 347 <td> 348 349 </td> 350 <td> 351 352 <p> 353 The destructor. </td> 354 </tr> 355 </table> 356 <hr><h2>Member Function Documentation</h2> 357 <a name="a13" doxytag="Oscl_Vector::back"></a><p> 358 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 359 <tr> 360 <td class="md"> 361 <table cellpadding="0" cellspacing="0" border="0"> 362 <tr> 363 <td class="md" colspan="4"> 364 template<class T, class Alloc> </td> 365 </tr> 366 <tr> 367 <td class="md" nowrap valign="top"> const T& Oscl_Vector< T, Alloc >::back </td> 368 <td class="md" valign="top">( </td> 369 <td class="mdname1" valign="top" nowrap> </td> 370 <td class="md" valign="top">) </td> 371 <td class="md" nowrap> const<code> [inline]</code></td> 372 </tr> 373 374 </table> 375 </td> 376 </tr> 377 </table> 378 <table cellspacing=5 cellpadding=0 border=0> 379 <tr> 380 <td> 381 382 </td> 383 <td> 384 385 <p> 386 Returns the last element. </td> 387 </tr> 388 </table> 389 <a name="a12" doxytag="Oscl_Vector::back"></a><p> 390 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 391 <tr> 392 <td class="md"> 393 <table cellpadding="0" cellspacing="0" border="0"> 394 <tr> 395 <td class="md" colspan="4"> 396 template<class T, class Alloc> </td> 397 </tr> 398 <tr> 399 <td class="md" nowrap valign="top"> T& Oscl_Vector< T, Alloc >::back </td> 400 <td class="md" valign="top">( </td> 401 <td class="mdname1" valign="top" nowrap> </td> 402 <td class="md" valign="top">) </td> 403 <td class="md" nowrap><code> [inline]</code></td> 404 </tr> 405 406 </table> 407 </td> 408 </tr> 409 </table> 410 <table cellspacing=5 cellpadding=0 border=0> 411 <tr> 412 <td> 413 414 </td> 415 <td> 416 417 <p> 418 Returns the last element. </td> 419 </tr> 420 </table> 421 <a name="a17" doxytag="Oscl_Vector::begin"></a><p> 422 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 423 <tr> 424 <td class="md"> 425 <table cellpadding="0" cellspacing="0" border="0"> 426 <tr> 427 <td class="md" colspan="4"> 428 template<class T, class Alloc> </td> 429 </tr> 430 <tr> 431 <td class="md" nowrap valign="top"> <a class="el" href="classOscl__Vector.html#s4">iterator</a> Oscl_Vector< T, Alloc >::begin </td> 432 <td class="md" valign="top">( </td> 433 <td class="mdname1" valign="top" nowrap> </td> 434 <td class="md" valign="top">) </td> 435 <td class="md" nowrap> const<code> [inline]</code></td> 436 </tr> 437 438 </table> 439 </td> 440 </tr> 441 </table> 442 <table cellspacing=5 cellpadding=0 border=0> 443 <tr> 444 <td> 445 446 </td> 447 <td> 448 449 <p> 450 Returns an iterator pointing to the beginning of the vector. 451 <p> 452 Reimplemented from <a class="el" href="classOscl__Vector__Base.html">Oscl_Vector_Base</a>. </td> 453 </tr> 454 </table> 455 <a name="a15" doxytag="Oscl_Vector::clear"></a><p> 456 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 457 <tr> 458 <td class="md"> 459 <table cellpadding="0" cellspacing="0" border="0"> 460 <tr> 461 <td class="md" colspan="4"> 462 template<class T, class Alloc> </td> 463 </tr> 464 <tr> 465 <td class="md" nowrap valign="top"> void Oscl_Vector< T, Alloc >::clear </td> 466 <td class="md" valign="top">( </td> 467 <td class="mdname1" valign="top" nowrap> </td> 468 <td class="md" valign="top">) </td> 469 <td class="md" nowrap><code> [inline]</code></td> 470 </tr> 471 472 </table> 473 </td> 474 </tr> 475 </table> 476 <table cellspacing=5 cellpadding=0 border=0> 477 <tr> 478 <td> 479 480 </td> 481 <td> 482 483 <p> 484 Removes all elements. </td> 485 </tr> 486 </table> 487 <a name="a16" doxytag="Oscl_Vector::destroy"></a><p> 488 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 489 <tr> 490 <td class="md"> 491 <table cellpadding="0" cellspacing="0" border="0"> 492 <tr> 493 <td class="md" colspan="4"> 494 template<class T, class Alloc> </td> 495 </tr> 496 <tr> 497 <td class="md" nowrap valign="top"> void Oscl_Vector< T, Alloc >::destroy </td> 498 <td class="md" valign="top">( </td> 499 <td class="mdname1" valign="top" nowrap> </td> 500 <td class="md" valign="top">) </td> 501 <td class="md" nowrap><code> [inline]</code></td> 502 </tr> 503 504 </table> 505 </td> 506 </tr> 507 </table> 508 <table cellspacing=5 cellpadding=0 border=0> 509 <tr> 510 <td> 511 512 </td> 513 <td> 514 515 <p> 516 Destroy -- this is like an explicit destructor call. 517 <p> 518 Reimplemented from <a class="el" href="classOscl__Vector__Base.html#b11">Oscl_Vector_Base</a>. </td> 519 </tr> 520 </table> 521 <a name="a18" doxytag="Oscl_Vector::end"></a><p> 522 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 523 <tr> 524 <td class="md"> 525 <table cellpadding="0" cellspacing="0" border="0"> 526 <tr> 527 <td class="md" colspan="4"> 528 template<class T, class Alloc> </td> 529 </tr> 530 <tr> 531 <td class="md" nowrap valign="top"> <a class="el" href="classOscl__Vector.html#s4">iterator</a> Oscl_Vector< T, Alloc >::end </td> 532 <td class="md" valign="top">( </td> 533 <td class="mdname1" valign="top" nowrap> </td> 534 <td class="md" valign="top">) </td> 535 <td class="md" nowrap> const<code> [inline]</code></td> 536 </tr> 537 538 </table> 539 </td> 540 </tr> 541 </table> 542 <table cellspacing=5 cellpadding=0 border=0> 543 <tr> 544 <td> 545 546 </td> 547 <td> 548 549 <p> 550 Returns an iterator pointing to the end of the vector.. 551 <p> 552 Reimplemented from <a class="el" href="classOscl__Vector__Base.html">Oscl_Vector_Base</a>. </td> 553 </tr> 554 </table> 555 <a name="a20" doxytag="Oscl_Vector::erase"></a><p> 556 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 557 <tr> 558 <td class="md"> 559 <table cellpadding="0" cellspacing="0" border="0"> 560 <tr> 561 <td class="md" colspan="4"> 562 template<class T, class Alloc> </td> 563 </tr> 564 <tr> 565 <td class="md" nowrap valign="top"> <a class="el" href="classOscl__Vector.html#s4">iterator</a> Oscl_Vector< T, Alloc >::erase </td> 566 <td class="md" valign="top">( </td> 567 <td class="md" nowrap valign="top"><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td> 568 <td class="mdname" nowrap> <em>first</em>, </td> 569 </tr> 570 <tr> 571 <td></td> 572 <td></td> 573 <td class="md" nowrap><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td> 574 <td class="mdname" nowrap> <em>last</em></td> 575 </tr> 576 <tr> 577 <td></td> 578 <td class="md">) </td> 579 <td class="md" colspan="2"><code> [inline]</code></td> 580 </tr> 581 582 </table> 583 </td> 584 </tr> 585 </table> 586 <table cellspacing=5 cellpadding=0 border=0> 587 <tr> 588 <td> 589 590 </td> 591 <td> 592 593 <p> 594 Erases elements in range [first, last). Erasing an element invalidates all iterators pointing to elements following the deletion point. <dl compact><dt><b>Parameters: </b></dt><dd> 595 <table border=0 cellspacing=2 cellpadding=0> 596 <tr><td valign=top><em>first</em> </td><td> 597 starting position </td></tr> 598 <tr><td valign=top><em>last</em> </td><td> 599 ending position, this position is not erased </td></tr> 600 </table> 601 </dl> </td> 602 </tr> 603 </table> 604 <a name="a19" doxytag="Oscl_Vector::erase"></a><p> 605 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 606 <tr> 607 <td class="md"> 608 <table cellpadding="0" cellspacing="0" border="0"> 609 <tr> 610 <td class="md" colspan="4"> 611 template<class T, class Alloc> </td> 612 </tr> 613 <tr> 614 <td class="md" nowrap valign="top"> <a class="el" href="classOscl__Vector.html#s4">iterator</a> Oscl_Vector< T, Alloc >::erase </td> 615 <td class="md" valign="top">( </td> 616 <td class="md" nowrap valign="top"><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td> 617 <td class="mdname1" valign="top" nowrap> <em>pos</em> </td> 618 <td class="md" valign="top">) </td> 619 <td class="md" nowrap><code> [inline]</code></td> 620 </tr> 621 622 </table> 623 </td> 624 </tr> 625 </table> 626 <table cellspacing=5 cellpadding=0 border=0> 627 <tr> 628 <td> 629 630 </td> 631 <td> 632 633 <p> 634 Erases the element pointed to by iterator pos. Erasing an element invalidates all iterators pointing to elements following the deletion point. <dl compact><dt><b>Parameters: </b></dt><dd> 635 <table border=0 cellspacing=2 cellpadding=0> 636 <tr><td valign=top><em>pos</em> </td><td> 637 iterator at erase position </td></tr> 638 </table> 639 </dl> </td> 640 </tr> 641 </table> 642 <a name="a11" doxytag="Oscl_Vector::front"></a><p> 643 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 644 <tr> 645 <td class="md"> 646 <table cellpadding="0" cellspacing="0" border="0"> 647 <tr> 648 <td class="md" colspan="4"> 649 template<class T, class Alloc> </td> 650 </tr> 651 <tr> 652 <td class="md" nowrap valign="top"> const T& Oscl_Vector< T, Alloc >::front </td> 653 <td class="md" valign="top">( </td> 654 <td class="mdname1" valign="top" nowrap> </td> 655 <td class="md" valign="top">) </td> 656 <td class="md" nowrap> const<code> [inline]</code></td> 657 </tr> 658 659 </table> 660 </td> 661 </tr> 662 </table> 663 <table cellspacing=5 cellpadding=0 border=0> 664 <tr> 665 <td> 666 667 </td> 668 <td> 669 670 <p> 671 Returns the first element. </td> 672 </tr> 673 </table> 674 <a name="a10" doxytag="Oscl_Vector::front"></a><p> 675 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 676 <tr> 677 <td class="md"> 678 <table cellpadding="0" cellspacing="0" border="0"> 679 <tr> 680 <td class="md" colspan="4"> 681 template<class T, class Alloc> </td> 682 </tr> 683 <tr> 684 <td class="md" nowrap valign="top"> T& Oscl_Vector< T, Alloc >::front </td> 685 <td class="md" valign="top">( </td> 686 <td class="mdname1" valign="top" nowrap> </td> 687 <td class="md" valign="top">) </td> 688 <td class="md" nowrap><code> [inline]</code></td> 689 </tr> 690 691 </table> 692 </td> 693 </tr> 694 </table> 695 <table cellspacing=5 cellpadding=0 border=0> 696 <tr> 697 <td> 698 699 </td> 700 <td> 701 702 <p> 703 Returns the first element. </td> 704 </tr> 705 </table> 706 <a name="a7" doxytag="Oscl_Vector::insert"></a><p> 707 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 708 <tr> 709 <td class="md"> 710 <table cellpadding="0" cellspacing="0" border="0"> 711 <tr> 712 <td class="md" colspan="4"> 713 template<class T, class Alloc> </td> 714 </tr> 715 <tr> 716 <td class="md" nowrap valign="top"> <a class="el" href="classOscl__Vector.html#s4">iterator</a> Oscl_Vector< T, Alloc >::insert </td> 717 <td class="md" valign="top">( </td> 718 <td class="md" nowrap valign="top"><a class="el" href="classOscl__Vector.html#s4">iterator</a> </td> 719 <td class="mdname" nowrap> <em>pos</em>, </td> 720 </tr> 721 <tr> 722 <td></td> 723 <td></td> 724 <td class="md" nowrap>const T & </td> 725 <td class="mdname" nowrap> <em>x</em></td> 726 </tr> 727 <tr> 728 <td></td> 729 <td class="md">) </td> 730 <td class="md" colspan="2"><code> [inline]</code></td> 731 </tr> 732 733 </table> 734 </td> 735 </tr> 736 </table> 737 <table cellspacing=5 cellpadding=0 border=0> 738 <tr> 739 <td> 740 741 </td> 742 <td> 743 744 <p> 745 Inserts a new element before the one at pos. <dl compact><dt><b>Parameters: </b></dt><dd> 746 <table border=0 cellspacing=2 cellpadding=0> 747 <tr><td valign=top><em>pos</em> </td><td> 748 position at which to insert the new element. </td></tr> 749 <tr><td valign=top><em>x</em> </td><td> 750 new element </td></tr> 751 </table> 752 </dl> </td> 753 </tr> 754 </table> 755 <a name="a4" doxytag="Oscl_Vector::operator="></a><p> 756 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 757 <tr> 758 <td class="md"> 759 <table cellpadding="0" cellspacing="0" border="0"> 760 <tr> 761 <td class="md" colspan="4"> 762 template<class T, class Alloc> </td> 763 </tr> 764 <tr> 765 <td class="md" nowrap valign="top"> Oscl_Vector<T, Alloc>& Oscl_Vector< T, Alloc >::operator= </td> 766 <td class="md" valign="top">( </td> 767 <td class="md" nowrap valign="top">const Oscl_Vector< T, Alloc > & </td> 768 <td class="mdname1" valign="top" nowrap> <em>x</em> </td> 769 <td class="md" valign="top">) </td> 770 <td class="md" nowrap><code> [inline]</code></td> 771 </tr> 772 773 </table> 774 </td> 775 </tr> 776 </table> 777 <table cellspacing=5 cellpadding=0 border=0> 778 <tr> 779 <td> 780 781 </td> 782 <td> 783 784 <p> 785 The assignment operator </td> 786 </tr> 787 </table> 788 <a name="a9" doxytag="Oscl_Vector::operator[]"></a><p> 789 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 790 <tr> 791 <td class="md"> 792 <table cellpadding="0" cellspacing="0" border="0"> 793 <tr> 794 <td class="md" colspan="4"> 795 template<class T, class Alloc> </td> 796 </tr> 797 <tr> 798 <td class="md" nowrap valign="top"> const T& Oscl_Vector< T, Alloc >::operator[] </td> 799 <td class="md" valign="top">( </td> 800 <td class="md" nowrap valign="top">uint32 </td> 801 <td class="mdname1" valign="top" nowrap> <em>n</em> </td> 802 <td class="md" valign="top">) </td> 803 <td class="md" nowrap> const<code> [inline]</code></td> 804 </tr> 805 806 </table> 807 </td> 808 </tr> 809 </table> 810 <table cellspacing=5 cellpadding=0 border=0> 811 <tr> 812 <td> 813 814 </td> 815 <td> 816 817 <p> 818 Returns the n'th element. <dl compact><dt><b>Parameters: </b></dt><dd> 819 <table border=0 cellspacing=2 cellpadding=0> 820 <tr><td valign=top><em>n</em> </td><td> 821 element position to return </td></tr> 822 </table> 823 </dl> </td> 824 </tr> 825 </table> 826 <a name="a8" doxytag="Oscl_Vector::operator[]"></a><p> 827 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 828 <tr> 829 <td class="md"> 830 <table cellpadding="0" cellspacing="0" border="0"> 831 <tr> 832 <td class="md" colspan="4"> 833 template<class T, class Alloc> </td> 834 </tr> 835 <tr> 836 <td class="md" nowrap valign="top"> T& Oscl_Vector< T, Alloc >::operator[] </td> 837 <td class="md" valign="top">( </td> 838 <td class="md" nowrap valign="top">uint32 </td> 839 <td class="mdname1" valign="top" nowrap> <em>n</em> </td> 840 <td class="md" valign="top">) </td> 841 <td class="md" nowrap><code> [inline]</code></td> 842 </tr> 843 844 </table> 845 </td> 846 </tr> 847 </table> 848 <table cellspacing=5 cellpadding=0 border=0> 849 <tr> 850 <td> 851 852 </td> 853 <td> 854 855 <p> 856 Returns the n'th element. <dl compact><dt><b>Parameters: </b></dt><dd> 857 <table border=0 cellspacing=2 cellpadding=0> 858 <tr><td valign=top><em>n</em> </td><td> 859 element position to return </td></tr> 860 </table> 861 </dl> </td> 862 </tr> 863 </table> 864 <a name="a14" doxytag="Oscl_Vector::pop_back"></a><p> 865 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 866 <tr> 867 <td class="md"> 868 <table cellpadding="0" cellspacing="0" border="0"> 869 <tr> 870 <td class="md" colspan="4"> 871 template<class T, class Alloc> </td> 872 </tr> 873 <tr> 874 <td class="md" nowrap valign="top"> void Oscl_Vector< T, Alloc >::pop_back </td> 875 <td class="md" valign="top">( </td> 876 <td class="mdname1" valign="top" nowrap> </td> 877 <td class="md" valign="top">) </td> 878 <td class="md" nowrap><code> [inline]</code></td> 879 </tr> 880 881 </table> 882 </td> 883 </tr> 884 </table> 885 <table cellspacing=5 cellpadding=0 border=0> 886 <tr> 887 <td> 888 889 </td> 890 <td> 891 892 <p> 893 Removes the last element. 894 <p> 895 Reimplemented from <a class="el" href="classOscl__Vector__Base.html#b5">Oscl_Vector_Base</a>. </td> 896 </tr> 897 </table> 898 <a name="a5" doxytag="Oscl_Vector::push_back"></a><p> 899 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 900 <tr> 901 <td class="md"> 902 <table cellpadding="0" cellspacing="0" border="0"> 903 <tr> 904 <td class="md" colspan="4"> 905 template<class T, class Alloc> </td> 906 </tr> 907 <tr> 908 <td class="md" nowrap valign="top"> void Oscl_Vector< T, Alloc >::push_back </td> 909 <td class="md" valign="top">( </td> 910 <td class="md" nowrap valign="top">const T & </td> 911 <td class="mdname1" valign="top" nowrap> <em>x</em> </td> 912 <td class="md" valign="top">) </td> 913 <td class="md" nowrap><code> [inline]</code></td> 914 </tr> 915 916 </table> 917 </td> 918 </tr> 919 </table> 920 <table cellspacing=5 cellpadding=0 border=0> 921 <tr> 922 <td> 923 924 </td> 925 <td> 926 927 <p> 928 Inserts a new element at the end. Inserting an element invalidates all iterators if memory reallocation occurs as a result of the insertion. <dl compact><dt><b>Parameters: </b></dt><dd> 929 <table border=0 cellspacing=2 cellpadding=0> 930 <tr><td valign=top><em>x</em> </td><td> 931 new element </td></tr> 932 </table> 933 </dl> </td> 934 </tr> 935 </table> 936 <a name="a6" doxytag="Oscl_Vector::push_front"></a><p> 937 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 938 <tr> 939 <td class="md"> 940 <table cellpadding="0" cellspacing="0" border="0"> 941 <tr> 942 <td class="md" colspan="4"> 943 template<class T, class Alloc> </td> 944 </tr> 945 <tr> 946 <td class="md" nowrap valign="top"> void Oscl_Vector< T, Alloc >::push_front </td> 947 <td class="md" valign="top">( </td> 948 <td class="md" nowrap valign="top">const T & </td> 949 <td class="mdname1" valign="top" nowrap> <em>x</em> </td> 950 <td class="md" valign="top">) </td> 951 <td class="md" nowrap><code> [inline]</code></td> 952 </tr> 953 954 </table> 955 </td> 956 </tr> 957 </table> 958 <table cellspacing=5 cellpadding=0 border=0> 959 <tr> 960 <td> 961 962 </td> 963 <td> 964 965 <p> 966 Inserts a new element at the front. Inserting an element invalidates all iterators if memory reallocation occurs as a result of the insertion. <dl compact><dt><b>Parameters: </b></dt><dd> 967 <table border=0 cellspacing=2 cellpadding=0> 968 <tr><td valign=top><em>x</em> </td><td> 969 new element </td></tr> 970 </table> 971 </dl> </td> 972 </tr> 973 </table> 974 <hr>The documentation for this class was generated from the following file:<ul> 975 <li><a class="el" href="oscl__vector_8h-source.html">oscl_vector.h</a></ul> 976 <hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 977 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 978 </small></address> 979 </body> 980 </html> 981