Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 608

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.rpm

<!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>GNU CommonC++: object.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>object.h</h1><a href="object_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00045"></a>00045 <span class="preprocessor">#ifndef CCXX_OBJECT_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_OBJECT_H_</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a>00048 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#endif</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a>00052 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00054"></a>00054 <span class="preprocessor">#endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> MapObject;
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> MapIndex;
<a name="l00058"></a>00058 
<a name="l00066"></a><a class="code" href="classost_1_1_ref_object.html">00066</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a>
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">protected</span>:
<a name="l00069"></a><a class="code" href="classost_1_1_ref_object.html#a0cdd998cac4e2907eb6a4e7d80ea69df">00069</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>;
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="classost_1_1_ref_object.html#a7887ae684391ece66186f3dfbc6a35a9">00071</a>         <span class="keywordtype">unsigned</span> refCount;
<a name="l00072"></a>00072 
<a name="l00076"></a><a class="code" href="classost_1_1_ref_object.html#a7dabeed59ecca372353f66284be97dd8">00076</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a>()
<a name="l00077"></a>00077                 {refCount = 0;};
<a name="l00078"></a>00078 
<a name="l00083"></a>00083         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a>();
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keyword">public</span>:
<a name="l00094"></a>00094         <span class="keyword">virtual</span> <span class="keywordtype">void</span> *getObject(<span class="keywordtype">void</span>) = 0;
<a name="l00095"></a>00095 };
<a name="l00096"></a>00096 
<a name="l00105"></a><a class="code" href="classost_1_1_ref_pointer.html">00105</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>
<a name="l00106"></a>00106 {
<a name="l00107"></a>00107 <span class="keyword">protected</span>:
<a name="l00108"></a><a class="code" href="classost_1_1_ref_pointer.html#a1a3547c5e0bd7f72b08dd98586545ca8">00108</a>         <a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a> *ref;
<a name="l00109"></a>00109 
<a name="l00113"></a>00113         <span class="keywordtype">void</span> detach(<span class="keywordtype">void</span>);
<a name="l00114"></a>00114 
<a name="l00119"></a>00119         <span class="keyword">virtual</span> <span class="keywordtype">void</span> enterLock(<span class="keywordtype">void</span>);
<a name="l00120"></a>00120 
<a name="l00125"></a>00125         <span class="keyword">virtual</span> <span class="keywordtype">void</span> leaveLock(<span class="keywordtype">void</span>);
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="keyword">public</span>:
<a name="l00131"></a><a class="code" href="classost_1_1_ref_pointer.html#a76e5c23d1db92f2a334253747ec86ce4">00131</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>()
<a name="l00132"></a>00132                 {ref = NULL;};
<a name="l00133"></a>00133 
<a name="l00139"></a>00139         <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>(<a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a> *obj);
<a name="l00140"></a>00140 
<a name="l00146"></a>00146         <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a> &amp;ptr);
<a name="l00147"></a>00147 
<a name="l00148"></a>00148         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>();
<a name="l00149"></a>00149 
<a name="l00150"></a>00150         <a class="code" href="classost_1_1_ref_pointer.html" title="Pointer to reference counted objects.">RefPointer</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classost_1_1_ref_object.html" title="A reference countable object.">RefObject</a> &amp;ref);
<a name="l00151"></a>00151 
<a name="l00152"></a><a class="code" href="classost_1_1_ref_pointer.html#a6eef018020e060eb767e32217f080c4c">00152</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> *operator*()<span class="keyword"> const</span>
<a name="l00153"></a>00153 <span class="keyword">                </span>{<span class="keywordflow">return</span> getObject();};
<a name="l00154"></a>00154 
<a name="l00155"></a><a class="code" href="classost_1_1_ref_pointer.html#a1c917f739b1a3394e4046ae87582b68d">00155</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> *operator-&gt;()<span class="keyword"> const</span>
<a name="l00156"></a>00156 <span class="keyword">                </span>{<span class="keywordflow">return</span> getObject();};
<a name="l00157"></a>00157 
<a name="l00158"></a>00158         <span class="keywordtype">void</span> *getObject(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00159"></a>00159 
<a name="l00160"></a>00160         <span class="keywordtype">bool</span> operator!() <span class="keyword">const</span>;
<a name="l00161"></a>00161 };
<a name="l00162"></a>00162 
<a name="l00170"></a><a class="code" href="classost_1_1_linked_single.html">00170</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a>
<a name="l00171"></a>00171 {
<a name="l00172"></a>00172 <span class="keyword">protected</span>:
<a name="l00173"></a><a class="code" href="classost_1_1_linked_single.html#adb851ec849109c71ad1b664452e3320a">00173</a>         <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> *nextObject;
<a name="l00174"></a>00174 
<a name="l00175"></a><a class="code" href="classost_1_1_linked_single.html#a61f80761bc11c58afaeab3c6b5fb0ca8">00175</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a>()
<a name="l00176"></a>00176                 {nextObject = NULL;};
<a name="l00177"></a>00177 
<a name="l00178"></a>00178         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a>();
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="keyword">public</span>:
<a name="l00190"></a>00190         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> *getFirst(<span class="keywordtype">void</span>);
<a name="l00191"></a>00191 
<a name="l00199"></a>00199         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> *getLast(<span class="keywordtype">void</span>);
<a name="l00200"></a>00200 
<a name="l00207"></a><a class="code" href="classost_1_1_linked_single.html#a4b8a6fc0cdb5dfc17a3180d616a7da08">00207</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> *getNext(<span class="keywordtype">void</span>)
<a name="l00208"></a>00208                 {<span class="keywordflow">return</span> nextObject;};
<a name="l00209"></a>00209 
<a name="l00217"></a>00217         <span class="keyword">virtual</span> <span class="keywordtype">void</span> insert(<a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a>&amp; obj);
<a name="l00218"></a>00218 
<a name="l00219"></a>00219         <a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> &amp;operator+=(<a class="code" href="classost_1_1_linked_single.html" title="Self managed single linked list object chain.">LinkedSingle</a> &amp;obj);
<a name="l00220"></a>00220 };
<a name="l00221"></a>00221 
<a name="l00229"></a><a class="code" href="classost_1_1_linked_double.html">00229</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a>
<a name="l00230"></a>00230 {
<a name="l00231"></a>00231 <span class="keyword">protected</span>:
<a name="l00232"></a><a class="code" href="classost_1_1_linked_double.html#abc240a6e018ad73d3612edb0a42b0602">00232</a>         <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *nextObject, *prevObject;
<a name="l00233"></a>00233 
<a name="l00234"></a><a class="code" href="classost_1_1_linked_double.html#a7b2b9952d67b924f5f194f9c01b6b45d">00234</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a>()
<a name="l00235"></a>00235                 {nextObject = prevObject = NULL;};
<a name="l00236"></a>00236 
<a name="l00237"></a>00237         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a>();
<a name="l00238"></a>00238 
<a name="l00239"></a>00239         <span class="keyword">virtual</span> <span class="keywordtype">void</span> enterLock(<span class="keywordtype">void</span>);
<a name="l00240"></a>00240 
<a name="l00241"></a>00241         <span class="keyword">virtual</span> <span class="keywordtype">void</span> leaveLock(<span class="keywordtype">void</span>);
<a name="l00242"></a>00242 
<a name="l00243"></a>00243         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *firstObject();
<a name="l00244"></a>00244 
<a name="l00245"></a>00245         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *lastObject();
<a name="l00246"></a>00246 
<a name="l00247"></a>00247 <span class="keyword">public</span>:
<a name="l00248"></a>00248 
<a name="l00253"></a><a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7">00253</a>   <span class="keyword">enum</span> <a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7" title="Requested in overloaded insert() method to indicate how to insert data into list...">InsertMode</a>
<a name="l00254"></a>00254   {
<a name="l00255"></a><a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7aefa7b0b31dcc262cc5df8332821f30f1">00255</a>     modeAtFirst,  
<a name="l00256"></a><a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7a0ad2b7297208f62e03444151854ad9c6">00256</a>     modeAtLast,   
<a name="l00257"></a><a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7a515e46c7bec515d93e43b8cd00f8e6cd">00257</a>     modeBefore,   
<a name="l00258"></a><a class="code" href="classost_1_1_linked_double.html#a509e22876e9213f5413eda83439638e7a1100a351ea58da69adaefd83d883d2c1">00258</a>     modeAfter     
<a name="l00259"></a>00259   };
<a name="l00260"></a>00260 
<a name="l00268"></a>00268         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *getFirst(<span class="keywordtype">void</span>);
<a name="l00269"></a>00269 
<a name="l00277"></a>00277         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *getLast(<span class="keywordtype">void</span>);
<a name="l00278"></a>00278 
<a name="l00286"></a>00286         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *getInsert(<span class="keywordtype">void</span>);
<a name="l00287"></a>00287 
<a name="l00294"></a><a class="code" href="classost_1_1_linked_double.html#aef019ef8ce1f8fde9ea0263251450b61">00294</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *getNext(<span class="keywordtype">void</span>)
<a name="l00295"></a>00295                 {<span class="keywordflow">return</span> nextObject;};
<a name="l00296"></a>00296 
<a name="l00302"></a><a class="code" href="classost_1_1_linked_double.html#a6764fe49871de47bcf4b88e993a5638c">00302</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> *getPrev(<span class="keywordtype">void</span>)
<a name="l00303"></a>00303                 {<span class="keywordflow">return</span> prevObject;};
<a name="l00304"></a>00304 
<a name="l00313"></a>00313   <span class="keyword">virtual</span> <span class="keywordtype">void</span> insert(<a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a>&amp; obj, InsertMode position = modeAtLast);
<a name="l00314"></a>00314 
<a name="l00318"></a>00318         <span class="keyword">virtual</span> <span class="keywordtype">void</span> detach(<span class="keywordtype">void</span>);
<a name="l00319"></a>00319 
<a name="l00320"></a>00320         <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> &amp;operator+=(<a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> &amp;obj);
<a name="l00321"></a>00321 
<a name="l00322"></a>00322         <a class="code" href="classost_1_1_linked_double.html" title="Self managed double linked list object chain.">LinkedDouble</a> &amp;operator--();
<a name="l00323"></a>00323 };
<a name="l00324"></a>00324 
<a name="l00335"></a><a class="code" href="classost_1_1_map_table.html">00335</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a>
<a name="l00336"></a>00336 {
<a name="l00337"></a>00337 <span class="keyword">protected</span>:
<a name="l00338"></a><a class="code" href="classost_1_1_map_table.html#ad3a0f850a471fb5553eb77ee29b0af44">00338</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>;
<a name="l00339"></a><a class="code" href="classost_1_1_map_table.html#a28cd428384a9c342d8e5fdadf7139dc0">00339</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>;
<a name="l00340"></a><a class="code" href="classost_1_1_map_table.html#ae45620bcf37da41ab3089710e4dbfd32">00340</a>         <span class="keywordtype">unsigned</span> range;
<a name="l00341"></a><a class="code" href="classost_1_1_map_table.html#aa22711b1f0ea9ccdc78bb1c1b45d3af2">00341</a>   <span class="keywordtype">unsigned</span> count;
<a name="l00342"></a><a class="code" href="classost_1_1_map_table.html#aa5ec0ac04b3d1b1d4e8af79f759bd87b">00342</a>         <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> **map;
<a name="l00343"></a>00343 
<a name="l00344"></a>00344         <span class="keywordtype">void</span> cleanup(<span class="keywordtype">void</span>);
<a name="l00345"></a>00345 
<a name="l00346"></a>00346 <span class="keyword">public</span>:
<a name="l00352"></a>00352         <a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a>(<span class="keywordtype">unsigned</span> size);
<a name="l00353"></a>00353 
<a name="l00357"></a>00357         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a>();
<a name="l00358"></a>00358 
<a name="l00367"></a>00367         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> getIndex(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00368"></a>00368 
<a name="l00374"></a><a class="code" href="classost_1_1_map_table.html#aa8b1c538691c04ebe20bcbd37f93df6d">00374</a>         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> getRange(<span class="keywordtype">void</span>)
<a name="l00375"></a>00375                 {<span class="keywordflow">return</span> range;};
<a name="l00376"></a>00376 
<a name="l00382"></a><a class="code" href="classost_1_1_map_table.html#a9cb0c62a29b659058fbbafef603204dd">00382</a>         <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> getSize(<span class="keywordtype">void</span>)
<a name="l00383"></a>00383                 {<span class="keywordflow">return</span> count;};
<a name="l00384"></a>00384 
<a name="l00392"></a>00392         <span class="keywordtype">void</span> *getObject(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00393"></a>00393 
<a name="l00400"></a>00400         <span class="keywordtype">void</span> addObject(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> &amp;obj);
<a name="l00407"></a>00407         <span class="keywordtype">void</span> *getFirst();
<a name="l00408"></a>00408 
<a name="l00415"></a>00415         <span class="keywordtype">void</span> *getLast();
<a name="l00416"></a>00416 
<a name="l00423"></a><a class="code" href="classost_1_1_map_table.html#ade3e0591711bdf8b9fe36f10eac697c3">00423</a>         <span class="keywordtype">void</span> *getEnd()
<a name="l00424"></a>00424                 {       <span class="keywordflow">return</span> NULL;    };
<a name="l00425"></a>00425 
<a name="l00435"></a>00435         <span class="keywordtype">void</span> *getFree(<span class="keywordtype">void</span>);
<a name="l00436"></a>00436 
<a name="l00443"></a>00443         <span class="keywordtype">void</span> addFree(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> *obj);
<a name="l00444"></a>00444 
<a name="l00451"></a>00451         <a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a> &amp;operator+=(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> &amp;obj);
<a name="l00452"></a>00452 
<a name="l00460"></a>00460         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a> &amp;operator-=(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> &amp;obj);
<a name="l00461"></a>00461 };
<a name="l00462"></a>00462 
<a name="l00472"></a><a class="code" href="classost_1_1_map_index.html">00472</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>
<a name="l00473"></a>00473 {
<a name="l00474"></a>00474         <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>*      thisObject;
<a name="l00475"></a>00475 
<a name="l00476"></a>00476 <span class="keyword">public</span> :
<a name="l00477"></a>00477 
<a name="l00481"></a><a class="code" href="classost_1_1_map_index.html#a8b918a2fb5e4f25a1e17f1619eaceb68">00481</a>         <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>() : thisObject(NULL)
<a name="l00482"></a>00482         {};
<a name="l00483"></a>00483 
<a name="l00489"></a><a class="code" href="classost_1_1_map_index.html#ab2c6ea4c4c75e7a5f6b2291cfc732145">00489</a>         <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>* theObject) : thisObject(theObject)
<a name="l00490"></a>00490         {};
<a name="l00491"></a>00491 
<a name="l00497"></a><a class="code" href="classost_1_1_map_index.html#a1dd0e50bf3ba74bd1672d0b94df81d11">00497</a>         <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>&amp; theIndex) : thisObject(theIndex.thisObject)
<a name="l00498"></a>00498         {};
<a name="l00499"></a>00499 
<a name="l00506"></a><a class="code" href="classost_1_1_map_index.html#a22d9648d6a719e8574dd494964033947">00506</a>   <span class="keywordtype">void</span>* operator*()<span class="keyword"> const </span>
<a name="l00507"></a>00507 <span class="keyword">  </span>{     <span class="keywordflow">return</span> (<span class="keywordtype">void</span>*)thisObject;       }
<a name="l00508"></a>00508 
<a name="l00514"></a>00514         <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>&amp; operator=(<a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> *theObject);
<a name="l00515"></a>00515 
<a name="l00521"></a>00521   <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>&amp; operator++();                       <span class="comment">// prefix</span>
<a name="l00522"></a>00522 
<a name="l00528"></a><a class="code" href="classost_1_1_map_index.html#af8d496fd333068047dd1c9eda08df5fe">00528</a>   <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>  operator++(<span class="keywordtype">int</span>)     <span class="comment">// postfix</span>
<a name="l00529"></a>00529         {       <span class="keywordflow">return</span> this-&gt;<a class="code" href="classost_1_1_map_index.html#af8d496fd333068047dd1c9eda08df5fe" title="Postfix increment operator, to be used in loops and such.">operator++</a>();      }
<a name="l00530"></a>00530 
<a name="l00536"></a><a class="code" href="classost_1_1_map_index.html#ade088b57ac1fd4a3eca53d7ab364e002">00536</a>         <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>&amp; theIndex)<span class="keyword"> const</span>
<a name="l00537"></a>00537 <span class="keyword">        </span>{       <span class="keywordflow">return</span> thisObject == theIndex.thisObject;       };
<a name="l00538"></a>00538 
<a name="l00539"></a><a class="code" href="classost_1_1_map_index.html#a45280851bb933b99fa8615bd2be96af0">00539</a>         <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>&amp; theIndex)<span class="keyword"> const</span>
<a name="l00540"></a>00540 <span class="keyword">        </span>{       <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == theIndex);    };
<a name="l00541"></a>00541 
<a name="l00548"></a><a class="code" href="classost_1_1_map_index.html#a3c4399bd0a54ffeac890c2f7040d0b71">00548</a>         <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>* theObject)<span class="keyword"> const</span>
<a name="l00549"></a>00549 <span class="keyword">        </span>{       <span class="keywordflow">return</span> thisObject == theObject; };
<a name="l00550"></a>00550 
<a name="l00551"></a><a class="code" href="classost_1_1_map_index.html#a55357f847aaff7b53ce30e3575364ffa">00551</a>         <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>* theObject)<span class="keyword"> const</span>
<a name="l00552"></a>00552 <span class="keyword">        </span>{       <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == theObject);   };
<a name="l00553"></a>00553 };
<a name="l00554"></a>00554 
<a name="l00563"></a><a class="code" href="classost_1_1_map_object.html">00563</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>
<a name="l00564"></a>00564 {
<a name="l00565"></a>00565 <span class="keyword">protected</span>:
<a name="l00566"></a><a class="code" href="classost_1_1_map_object.html#ae301e900b4cea6b0ed3c2206764c650d">00566</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a>;
<a name="l00567"></a><a class="code" href="classost_1_1_map_object.html#a28cd428384a9c342d8e5fdadf7139dc0">00567</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_map_index.html" title="The MapIndex allows linear access into a MapTable, that otherwise could have its...">MapIndex</a>;
<a name="l00568"></a><a class="code" href="classost_1_1_map_object.html#a165f74010fb15b4019a5ebb6c58628fe">00568</a>         <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a> *nextObject;
<a name="l00569"></a><a class="code" href="classost_1_1_map_object.html#aba0b5137c8b7d8e5ed39ad09afac0a7f">00569</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *idObject;
<a name="l00570"></a><a class="code" href="classost_1_1_map_object.html#a85a7257f4fe849800e00195bfef3cd93">00570</a>         <a class="code" href="classost_1_1_map_table.html" title="A map table allows for entities to be mapped (hash index) onto it.">MapTable</a> *table;
<a name="l00571"></a>00571 
<a name="l00572"></a>00572 <span class="keyword">public</span>:
<a name="l00573"></a>00573 
<a name="l00577"></a>00577         <span class="keywordtype">void</span> detach(<span class="keywordtype">void</span>);
<a name="l00578"></a>00578 
<a name="l00584"></a>00584         <a class="code" href="classost_1_1_map_object.html" title="The MapObject is a base class which can be used to make a derived class operate on...">MapObject</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">id</span>);
<a name="l00585"></a>00585 };
<a name="l00586"></a>00586 
<a name="l00587"></a>00587 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00588"></a>00588 <span class="preprocessor"></span>}
<a name="l00589"></a>00589 <span class="preprocessor">#endif</span>
<a name="l00590"></a>00590 <span class="preprocessor"></span>
<a name="l00591"></a>00591 <span class="preprocessor">#endif</span>
<a name="l00592"></a>00592 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>