Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 29c369053a983cc5d8c880dc6e0a2237 > files > 1636

libdtn-devel-2.6.0-2mdv2009.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>DTN Reference Implementation: prophet::PointerList&lt; T &gt; Class Template 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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceprophet.html">prophet</a>::<a class="el" href="classprophet_1_1PointerList.html">PointerList</a>
  </div>
</div>
<div class="contents">
<h1>prophet::PointerList&lt; T &gt; Class Template Reference</h1><!-- doxytag: class="prophet::PointerList" -->Auto deletes pointers in list destructor This object assumes ownership for member pointers Creates copies of members instead of copies of pointers to members.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="PointerList_8h-source.html">PointerList.h</a>&gt;</code>
<p>

<p>
<a href="classprophet_1_1PointerList-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector&lt; T * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#1656f505bcc89213823142b87c947324">List</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector&lt; T * &gt;<br class="typebreak">
::<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector&lt; T * &gt;<br class="typebreak">
::<a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#6a64c5b8046175d03da9a104919c82ae">PointerList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#6a64c5b8046175d03da9a104919c82ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#37ad5bd84e40fa81c0aee80705578d95">PointerList</a> (const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a> &amp;a)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#37ad5bd84e40fa81c0aee80705578d95"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#062a9045021fcbef4d3e0b468dac64de">~PointerList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#062a9045021fcbef4d3e0b468dac64de"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classprophet_1_1PointerList.html">PointerList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#c334960a01b34730720bc6b13d5bb0bb">operator=</a> (const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a> &amp;a)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator creates deep copy, not pointer copy.  <a href="#c334960a01b34730720bc6b13d5bb0bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#6153b191deba1b5eef87771ceef60ea7">erase</a> (<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a> i)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deletes member pointed to by iterator, then removes pointer.  <a href="#6153b191deba1b5eef87771ceef60ea7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#8e42a99a3be3314a5cc84b08ee80d69e">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete all member variables, then remove pointers from container.  <a href="#8e42a99a3be3314a5cc84b08ee80d69e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#59a327922f0e3b124a0294cfac273c9a">free</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free memory pointed to by member variables.  <a href="#59a327922f0e3b124a0294cfac273c9a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#e3f483fe1e42360293304ebd4f01c2b6">copy_from</a> (const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a> &amp;a)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility function to perform deep copy from peer object.  <a href="#e3f483fe1e42360293304ebd4f01c2b6"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class T&gt;<br>
 class prophet::PointerList&lt; T &gt;</h3>

Auto deletes pointers in list destructor This object assumes ownership for member pointers Creates copies of members instead of copies of pointers to members. 
<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00031">31</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="06e35a2ecc4bda2286b6e3f3685b9a9e"></a><!-- doxytag: member="prophet::PointerList::const_iterator" ref="06e35a2ecc4bda2286b6e3f3685b9a9e" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt;T*&gt;::<a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a> <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::<a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00036">36</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="4592d269227296c2bd509fd8f4089589"></a><!-- doxytag: member="prophet::PointerList::iterator" ref="4592d269227296c2bd509fd8f4089589" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt;T*&gt;::<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a> <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00035">35</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="1656f505bcc89213823142b87c947324"></a><!-- doxytag: member="prophet::PointerList::List" ref="1656f505bcc89213823142b87c947324" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt;T*&gt; <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::<a class="el" href="classprophet_1_1PointerList.html#1656f505bcc89213823142b87c947324">List</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00034">34</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="6a64c5b8046175d03da9a104919c82ae"></a><!-- doxytag: member="prophet::PointerList::PointerList" ref="6a64c5b8046175d03da9a104919c82ae" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::<a class="el" href="classprophet_1_1PointerList.html">PointerList</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00041">41</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="37ad5bd84e40fa81c0aee80705578d95"></a><!-- doxytag: member="prophet::PointerList::PointerList" ref="37ad5bd84e40fa81c0aee80705578d95" args="(const PointerList &amp;a)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::<a class="el" href="classprophet_1_1PointerList.html">PointerList</a>           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a>&lt; T &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00047">47</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="062a9045021fcbef4d3e0b468dac64de"></a><!-- doxytag: member="prophet::PointerList::~PointerList" ref="062a9045021fcbef4d3e0b468dac64de" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::~<a class="el" href="classprophet_1_1PointerList.html">PointerList</a>           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00057">57</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="8e42a99a3be3314a5cc84b08ee80d69e"></a><!-- doxytag: member="prophet::PointerList::clear" ref="8e42a99a3be3314a5cc84b08ee80d69e" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::clear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Delete all member variables, then remove pointers from container. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00085">85</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

<p>Referenced by <a class="el" href="PointerList_8h-source.html#l00085">prophet::PointerList&lt; RIBNode &gt;::clear()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00076">prophet::BundleEntryList&lt; BundleResponseEntry &gt;::clear()</a>, <a class="el" href="Table_8cc-source.html#l00302">prophet::Table::clone()</a>, <a class="el" href="AckList_8cc-source.html#l00072">prophet::AckList::clone()</a>, <a class="el" href="AckList_8cc-source.html#l00090">prophet::AckList::fetch()</a>, <a class="el" href="PointerList_8h-source.html#l00065">prophet::PointerList&lt; RIBNode &gt;::operator=()</a>, <a class="el" href="PointerList_8h-source.html#l00047">prophet::PointerList&lt; RIBNode &gt;::PointerList()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00061">prophet::BundleEntryList&lt; BundleResponseEntry &gt;::~BundleEntryList()</a>, and <a class="el" href="PointerList_8h-source.html#l00057">prophet::PointerList&lt; RIBNode &gt;::~PointerList()</a>.</p>

</div>
</div><p>
<a class="anchor" name="e3f483fe1e42360293304ebd4f01c2b6"></a><!-- doxytag: member="prophet::PointerList::copy_from" ref="e3f483fe1e42360293304ebd4f01c2b6" args="(const PointerList &amp;a)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::copy_from           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a>&lt; T &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Utility function to perform deep copy from peer object. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00107">107</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

<p>Referenced by <a class="el" href="PointerList_8h-source.html#l00065">prophet::PointerList&lt; RIBNode &gt;::operator=()</a>, and <a class="el" href="PointerList_8h-source.html#l00047">prophet::PointerList&lt; RIBNode &gt;::PointerList()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6153b191deba1b5eef87771ceef60ea7"></a><!-- doxytag: member="prophet::PointerList::erase" ref="6153b191deba1b5eef87771ceef60ea7" args="(iterator i)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::erase           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a>&nbsp;</td>
          <td class="paramname"> <em>i</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Deletes member pointed to by iterator, then removes pointer. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00075">75</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

<p>Referenced by <a class="el" href="PointerList_8h-source.html#l00075">prophet::PointerList&lt; RIBNode &gt;::erase()</a>, and <a class="el" href="BundleTLVEntryList_8h-source.html#l00097">prophet::BundleEntryList&lt; BundleResponseEntry &gt;::remove_entry()</a>.</p>

</div>
</div><p>
<a class="anchor" name="59a327922f0e3b124a0294cfac273c9a"></a><!-- doxytag: member="prophet::PointerList::free" ref="59a327922f0e3b124a0294cfac273c9a" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::free           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Free memory pointed to by member variables. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00095">95</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

<p>Referenced by <a class="el" href="PointerList_8h-source.html#l00085">prophet::PointerList&lt; RIBNode &gt;::clear()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c334960a01b34730720bc6b13d5bb0bb"></a><!-- doxytag: member="prophet::PointerList::operator=" ref="c334960a01b34730720bc6b13d5bb0bb" args="(const PointerList &amp;a)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">PointerList</a>&amp; <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>&lt; T &gt;::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a>&lt; T &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assignment operator creates deep copy, not pointer copy. 
<p>

<p>Definition at line <a class="el" href="PointerList_8h-source.html#l00065">65</a> of file <a class="el" href="PointerList_8h-source.html">PointerList.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PointerList_8h-source.html">PointerList.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:06 2009 for DTN Reference Implementation by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>