/usr/share/doc/libdime-doc/html/classdimeArray.html is in libdime-doc 0.20030921-2.
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 | <HTML>
<HEAD>
<TITLE>DIME Source Code Documentation</TITLE>
<META NAME=description
CONTENT="Documentation for DIME">
<META NAME=keywords
CONTENT="DXF, AutoCAD, C++ class library">
</HEAD>
<BODY>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a></div>
<h1>dimeArray< T > Class Template Reference</h1><!-- doxytag: class="dimeArray" -->The dimeArray class is internal / private.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="Array_8h-source.html">dime/util/Array.h</a>></code>
<p>
<a href="classdimeArray-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="dimeArray::dimeArray" ref="a0" args="(const int initsize=4)" -->
</td><td class="memItemRight" valign="bottom"><b>dimeArray</b> (const int initsize=4)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2"></a><!-- doxytag: member="dimeArray::append" ref="a2" args="(const T &value)" -->
void </td><td class="memItemRight" valign="bottom"><b>append</b> (const T &value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3"></a><!-- doxytag: member="dimeArray::append" ref="a3" args="(const dimeArray< T > &array)" -->
void </td><td class="memItemRight" valign="bottom"><b>append</b> (const <a class="el" href="classdimeArray.html">dimeArray</a>< T > &array)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4"></a><!-- doxytag: member="dimeArray::prepend" ref="a4" args="(const dimeArray< T > &array)" -->
void </td><td class="memItemRight" valign="bottom"><b>prepend</b> (const <a class="el" href="classdimeArray.html">dimeArray</a>< T > &array)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5"></a><!-- doxytag: member="dimeArray::insertElem" ref="a5" args="(const int idx, const T &value)" -->
void </td><td class="memItemRight" valign="bottom"><b>insertElem</b> (const int idx, const T &value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6"></a><!-- doxytag: member="dimeArray::setElem" ref="a6" args="(const int index, const T &value)" -->
void </td><td class="memItemRight" valign="bottom"><b>setElem</b> (const int index, const T &value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7"></a><!-- doxytag: member="dimeArray::getElem" ref="a7" args="(const int index) const " -->
T </td><td class="memItemRight" valign="bottom"><b>getElem</b> (const int index) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8"></a><!-- doxytag: member="dimeArray::getElem" ref="a8" args="(const int index, T &elem) const " -->
void </td><td class="memItemRight" valign="bottom"><b>getElem</b> (const int index, T &elem) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9"></a><!-- doxytag: member="dimeArray::getLastElem" ref="a9" args="() const " -->
T </td><td class="memItemRight" valign="bottom"><b>getLastElem</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10"></a><!-- doxytag: member="dimeArray::getLastElem" ref="a10" args="(T &elem) const " -->
void </td><td class="memItemRight" valign="bottom"><b>getLastElem</b> (T &elem) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11"></a><!-- doxytag: member="dimeArray::operator[]" ref="a11" args="(const int index)" -->
T & </td><td class="memItemRight" valign="bottom"><b>operator[]</b> (const int index)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12"></a><!-- doxytag: member="dimeArray::operator[]" ref="a12" args="(const int index) const " -->
T </td><td class="memItemRight" valign="bottom"><b>operator[]</b> (const int index) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a13">removeElem</a> (const int index)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a14">removeElemFast</a> (const int index)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15"></a><!-- doxytag: member="dimeArray::reverse" ref="a15" args="()" -->
void </td><td class="memItemRight" valign="bottom"><b>reverse</b> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a16">setCount</a> (const int count)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a17">makeEmpty</a> (const int initsize=4)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a18">freeMemory</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a19">count</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a20">allocSize</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a21">arrayPointer</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a22">constArrayPointer</a> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdimeArray.html#a23">shrinkToFit</a> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<class T><br>
class dimeArray< T ></h3>
The dimeArray class is internal / private.
<p>
The dimeArray class is a container class for a growable array. Whenever the allocated space for the array becomes too small, the array is moved to a memory block that is twice as large. This class is dangerous to use, because it does not check for bounds and other things for efficiency reasons. Inspect the source code - don't assume anything...
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a20"></a><!-- doxytag: member="dimeArray::allocSize" ref="a20" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">int <a class="el" href="classdimeArray.html">dimeArray</a>< T >::allocSize </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method returns the size allocated for the array. </td>
</tr>
</table>
<a class="anchor" name="a21"></a><!-- doxytag: member="dimeArray::arrayPointer" ref="a21" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">T * <a class="el" href="classdimeArray.html">dimeArray</a>< T >::arrayPointer </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method returns a pointer to the allocated array. </td>
</tr>
</table>
<a class="anchor" name="a22"></a><!-- doxytag: member="dimeArray::constArrayPointer" ref="a22" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">const T * <a class="el" href="classdimeArray.html">dimeArray</a>< T >::constArrayPointer </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method returns a pointer to the allocated array. </td>
</tr>
</table>
<a class="anchor" name="a19"></a><!-- doxytag: member="dimeArray::count" ref="a19" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">int <a class="el" href="classdimeArray.html">dimeArray</a>< T >::count </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method returns the number of elements in the array. </td>
</tr>
</table>
<a class="anchor" name="a18"></a><!-- doxytag: member="dimeArray::freeMemory" ref="a18" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::freeMemory </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method frees all the memory used by the class. The dimeArray class is probably unusable afterwards. </td>
</tr>
</table>
<a class="anchor" name="a17"></a><!-- doxytag: member="dimeArray::makeEmpty" ref="a17" args="(const int initsize=4)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::makeEmpty </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const int </td>
<td class="mdname1" valign="top" nowrap> <em>initsize</em> = <code>4</code> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method makes the logical array empty, and deallocates the memory used by it, only allocating space for a small array of size <em>initsize</em>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="dimeArray::removeElem" ref="a13" args="(const int index)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::removeElem </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const int </td>
<td class="mdname1" valign="top" nowrap> <em>index</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method removes an element from the array, moving all subsequent elements one position up. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="dimeArray::removeElemFast" ref="a14" args="(const int index)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::removeElemFast </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const int </td>
<td class="mdname1" valign="top" nowrap> <em>index</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method removes an element from the array, and moves the last element into its place at the same index. The order of the elements is distorted, in other words. </td>
</tr>
</table>
<a class="anchor" name="a16"></a><!-- doxytag: member="dimeArray::setCount" ref="a16" args="(const int count)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::setCount </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const int </td>
<td class="mdname1" valign="top" nowrap> <em>count</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method sets the logical size of the array to <em>count</em> without changing the size of the array. Do not increase the array size with this function! This method is useful for reusing an array that will grow to approximately the same size each time it is used. </td>
</tr>
</table>
<a class="anchor" name="a23"></a><!-- doxytag: member="dimeArray::shrinkToFit" ref="a23" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="mdPrefix" colspan="4">
template<class T> </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classdimeArray.html">dimeArray</a>< T >::shrinkToFit </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This method moves the array into a memory block exactly the same size of the array. This will free up any overhead caused by the array doubling mechanism. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="Array_8h-source.html">Array.h</a><li>Array.cpp</ul>
<HR>
<DIV ALIGN=right>
<FONT SIZE=-2><I>
Copyright © 1998-1999, <A HREF=http://www.sim.no/>Systems In Motion</A>
<<A HREF=mailto:sales@sim.no>sales@sim.no</A>>.
All rights reserved.
<BR>
System documentation was generated using
<A HREF=http://www.stack.nl/~dimitri/doxygen/>doxygen</A>.
</I></FONT>
<DIV ALIGN=left>
</BODY>
</HTML>
|