<!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::BundleOfferList Class 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_1BundleOfferList.html">BundleOfferList</a> </div> </div> <div class="contents"> <h1>prophet::BundleOfferList Class Reference</h1><!-- doxytag: class="prophet::BundleOfferList" --><!-- doxytag: inherits="prophet::BundleEntryList" --><code>#include <<a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for prophet::BundleOfferList:</div> <div class="dynsection"> <p><center><img src="classprophet_1_1BundleOfferList.png" usemap="#prophet::BundleOfferList_map" border="0" alt=""></center> <map name="prophet::BundleOfferList_map"> <area href="classprophet_1_1BundleEntryList.html" alt="prophet::BundleEntryList< BundleEntryType >" shape="rect" coords="0,0,321,24"> </map> </div> <p> <a href="classprophet_1_1BundleOfferList-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> In-memory representation of list of bundle offer entries from a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> TLV sent by WAIT_RIB or OFFER. <p>Definition at line <a class="el" href="BundleTLVEntryList_8h-source.html#l00222">222</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> <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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1BundleOfferList.html#7478abeb0a361c5a30976c56ec946e47">BundleOfferList</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#7478abeb0a361c5a30976c56ec946e47"></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_1BundleOfferList.html#43f1917156449828b3bbee3c0c8e1e6a">~BundleOfferList</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#43f1917156449828b3bbee3c0c8e1e6a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1BundleOfferList.html#fd09313f46f237e0246706360b4c7a3d">add_offer</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b, u_int16_t sid)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience method to add <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> to the list; return whether successful. <a href="#fd09313f46f237e0246706360b4c7a3d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1BundleOfferList.html#616241f01219ab6f48a79786f1aa8448">add_offer</a> (u_int32_t cts, u_int32_t seq, u_int16_t sid, <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> <a class="el" href="dtnperf-client_8c.html#160881851a33309c0106503ac4d14d96">custody</a>, <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> ack)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience wrapper around base class's add_entry. <a href="#616241f01219ab6f48a79786f1aa8448"></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">virtual <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1BundleOfferList.html#f5d8d432ae93da1eceed6bc167bce2b2">push_back</a> (<a class="el" href="classprophet_1_1BundleOfferEntry.html">BundleOfferEntry</a> *b)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="7478abeb0a361c5a30976c56ec946e47"></a><!-- doxytag: member="prophet::BundleOfferList::BundleOfferList" ref="7478abeb0a361c5a30976c56ec946e47" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prophet::BundleOfferList::BundleOfferList </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> <p>Definition at line <a class="el" href="BundleTLVEntryList_8h-source.html#l00228">228</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> </div> </div><p> <a class="anchor" name="43f1917156449828b3bbee3c0c8e1e6a"></a><!-- doxytag: member="prophet::BundleOfferList::~BundleOfferList" ref="43f1917156449828b3bbee3c0c8e1e6a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual prophet::BundleOfferList::~BundleOfferList </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="BundleTLVEntryList_8h-source.html#l00234">234</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="fd09313f46f237e0246706360b4c7a3d"></a><!-- doxytag: member="prophet::BundleOfferList::add_offer" ref="fd09313f46f237e0246706360b4c7a3d" args="(const Bundle *b, u_int16_t sid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> prophet::BundleOfferList::add_offer </td> <td>(</td> <td class="paramtype">const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> * </td> <td class="paramname"> <em>b</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">u_int16_t </td> <td class="paramname"> <em>sid</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Convenience method to add <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> to the list; return whether successful. <p> <p>Definition at line <a class="el" href="BundleTLVEntryList_8h-source.html#l00240">240</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> <p>References <a class="el" href="classprophet_1_1Bundle.html#df5ff9aa8aba7ddd7a741d6143fe3d88">prophet::Bundle::creation_ts()</a>, <a class="el" href="classprophet_1_1Bundle.html#2ee26721e39ead0250eab37c58e14aa8">prophet::Bundle::custody_requested()</a>, and <a class="el" href="classprophet_1_1Bundle.html#8f4fad2c83696237207ba7a19acb9ca4">prophet::Bundle::sequence_num()</a>.</p> <p>Referenced by <a class="el" href="OfferTLV_8cc-source.html#l00080">prophet::OfferTLV::deserialize()</a>, and <a class="el" href="BundleOffer_8cc-source.html#l00064">prophet::BundleOffer::get_bundle_offer()</a>.</p> </div> </div><p> <a class="anchor" name="616241f01219ab6f48a79786f1aa8448"></a><!-- doxytag: member="prophet::BundleOfferList::add_offer" ref="616241f01219ab6f48a79786f1aa8448" args="(u_int32_t cts, u_int32_t seq, u_int16_t sid, bool custody, bool ack)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> prophet::BundleOfferList::add_offer </td> <td>(</td> <td class="paramtype">u_int32_t </td> <td class="paramname"> <em>cts</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">u_int32_t </td> <td class="paramname"> <em>seq</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">u_int16_t </td> <td class="paramname"> <em>sid</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td> <td class="paramname"> <em>custody</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td> <td class="paramname"> <em>ack</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Convenience wrapper around base class's add_entry. <p> <p>Definition at line <a class="el" href="BundleTLVEntryList_8h-source.html#l00255">255</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> <p>References <a class="el" href="BundleTLVEntryList_8h-source.html#l00081">prophet::BundleEntryList< BundleEntryType >::add_entry()</a>, and <a class="el" href="BundleTLVEntry_8h-source.html#l00041">prophet::BundleTLVEntry::OFFER</a>.</p> </div> </div><p> <a class="anchor" name="f5d8d432ae93da1eceed6bc167bce2b2"></a><!-- doxytag: member="prophet::BundleOfferList::push_back" ref="f5d8d432ae93da1eceed6bc167bce2b2" args="(BundleOfferEntry *b)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> prophet::BundleOfferList::push_back </td> <td>(</td> <td class="paramtype"><a class="el" href="classprophet_1_1BundleOfferEntry.html">BundleOfferEntry</a> * </td> <td class="paramname"> <em>b</em> </td> <td> ) </td> <td><code> [inline, protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="BundleTLVEntryList_8h-source.html#l00265">265</a> of file <a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>.</p> <p>References <a class="el" href="BundleTLVEntry_8h-source.html#l00135">prophet::BundleTLVEntry::creation_ts()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00118">prophet::BundleEntryList< BundleEntryType >::find()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00215">prophet::BundleEntryList< BundleEntryType >::list_</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00136">prophet::BundleTLVEntry::seqno()</a>, and <a class="el" href="BundleTLVEntry_8h-source.html#l00137">prophet::BundleTLVEntry::sid()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.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>