<!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< T > Class Template Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>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 List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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< T > Class Template Reference</h1><!-- doxytag: class="prophet::PointerList" --><code>#include <<a class="el" href="PointerList_8h-source.html">PointerList.h</a>></code> <p> <p> <a href="classprophet_1_1PointerList-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <h3>template<class T><br> class prophet::PointerList< T ></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> <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< T * > </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< T * ><br> ::<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a> </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< T * ><br> ::<a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a> </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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#6a64c5b8046175d03da9a104919c82ae">PointerList</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#6a64c5b8046175d03da9a104919c82ae"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </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> &a)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#37ad5bd84e40fa81c0aee80705578d95"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#062a9045021fcbef4d3e0b468dac64de">~PointerList</a> ()</td></tr> <tr><td class="mdescLeft"> </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> & </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> &a)</td></tr> <tr><td class="mdescLeft"> </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 </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"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#8e42a99a3be3314a5cc84b08ee80d69e">clear</a> ()</td></tr> <tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1PointerList.html#59a327922f0e3b124a0294cfac273c9a">free</a> ()</td></tr> <tr><td class="mdescLeft"> </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 </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> &a)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility function to perform deep copy from peer object. <a href="#e3f483fe1e42360293304ebd4f01c2b6"></a><br></td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="1656f505bcc89213823142b87c947324"></a><!-- doxytag: member="prophet::PointerList::List" ref="1656f505bcc89213823142b87c947324" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">typedef std::vector<T*> <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::<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> <a class="anchor" name="4592d269227296c2bd509fd8f4089589"></a><!-- doxytag: member="prophet::PointerList::iterator" ref="4592d269227296c2bd509fd8f4089589" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">typedef std::vector<T*>::<a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a> <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::<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="06e35a2ecc4bda2286b6e3f3685b9a9e"></a><!-- doxytag: member="prophet::PointerList::const_iterator" ref="06e35a2ecc4bda2286b6e3f3685b9a9e" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">typedef std::vector<T*>::<a class="el" href="classprophet_1_1PointerList.html#06e35a2ecc4bda2286b6e3f3685b9a9e">const_iterator</a> <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::<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> <hr><h2>Constructor & 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<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::<a class="el" href="classprophet_1_1PointerList.html">PointerList</a> </td> <td>(</td> <td class="paramname"> </td> <td> ) </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 &a)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::<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>< T > & </td> <td class="paramname"> <em>a</em> </td> <td> ) </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<class T> </div> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::~<a class="el" href="classprophet_1_1PointerList.html">PointerList</a> </td> <td>(</td> <td class="paramname"> </td> <td> ) </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="c334960a01b34730720bc6b13d5bb0bb"></a><!-- doxytag: member="prophet::PointerList::operator=" ref="c334960a01b34730720bc6b13d5bb0bb" args="(const PointerList &a)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1PointerList.html">PointerList</a>& <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a>< T > & </td> <td class="paramname"> <em>a</em> </td> <td> ) </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> <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<class T> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::erase </td> <td>(</td> <td class="paramtype"><a class="el" href="classprophet_1_1PointerList.html#4592d269227296c2bd509fd8f4089589">iterator</a> </td> <td class="paramname"> <em>i</em> </td> <td> ) </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="BundleTLVEntryList_8h-source.html#l00097">prophet::BundleEntryList< prophet::BundleResponseEntry >::remove_entry()</a>.</p> </div> </div><p> <a class="anchor" name="8e42a99a3be3314a5cc84b08ee80d69e"></a><!-- doxytag: member="prophet::PointerList::clear" ref="8e42a99a3be3314a5cc84b08ee80d69e" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::clear </td> <td>(</td> <td class="paramname"> </td> <td> ) </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="BundleTLVEntryList_8h-source.html#l00076">prophet::BundleEntryList< prophet::BundleResponseEntry >::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< prophet::BundleResponseEntry >::operator=()</a>, <a class="el" href="PointerList_8h-source.html#l00047">prophet::PointerList< prophet::BundleResponseEntry >::PointerList()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00061">prophet::BundleEntryList< prophet::BundleResponseEntry >::~BundleEntryList()</a>, and <a class="el" href="PointerList_8h-source.html#l00057">prophet::PointerList< prophet::BundleResponseEntry >::~PointerList()</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<class T> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::free </td> <td>(</td> <td class="paramname"> </td> <td> ) </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< prophet::BundleResponseEntry >::clear()</a>.</p> </div> </div><p> <a class="anchor" name="e3f483fe1e42360293304ebd4f01c2b6"></a><!-- doxytag: member="prophet::PointerList::copy_from" ref="e3f483fe1e42360293304ebd4f01c2b6" args="(const PointerList &a)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class T> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classprophet_1_1PointerList.html">prophet::PointerList</a>< T >::copy_from </td> <td>(</td> <td class="paramtype">const <a class="el" href="classprophet_1_1PointerList.html">PointerList</a>< T > & </td> <td class="paramname"> <em>a</em> </td> <td> ) </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< prophet::BundleResponseEntry >::operator=()</a>, and <a class="el" href="PointerList_8h-source.html#l00047">prophet::PointerList< prophet::BundleResponseEntry >::PointerList()</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 Mon Jul 21 14:09:56 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>