Sophie

Sophie

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

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::BundleOfferList Class 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_1BundleOfferList.html">BundleOfferList</a>
  </div>
</div>
<div class="contents">
<h1>prophet::BundleOfferList Class Reference</h1><!-- doxytag: class="prophet::BundleOfferList" --><!-- doxytag: inherits="BundleEntryList&lt; BundleOfferEntry &gt;" -->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&#39;s Bundle representation...">Bundle</a> TLV sent by WAIT_RIB or OFFER.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="BundleTLVEntryList_8h-source.html">BundleTLVEntryList.h</a>&gt;</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< BundleOfferEntry >" shape="rect" coords="0,0,272,24">
</map>
</div>

<p>
<a href="classprophet_1_1BundleOfferList-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1BundleOfferList.html#7478abeb0a361c5a30976c56ec946e47">BundleOfferList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#7478abeb0a361c5a30976c56ec946e47"></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_1BundleOfferList.html#43f1917156449828b3bbee3c0c8e1e6a">~BundleOfferList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</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>&nbsp;</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">&nbsp;</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&#39;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>&nbsp;</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">&nbsp;</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>&nbsp;</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>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add entry to back of list.  <a href="#f5d8d432ae93da1eceed6bc167bce2b2"></a><br></td></tr>
</table>
<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&#39;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>
<hr><h2>Constructor &amp; 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>&nbsp;)&nbsp;</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>&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="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="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&nbsp;</td>
          <td class="paramname"> <em>cts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>seq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int16_t&nbsp;</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>&nbsp;</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>&nbsp;</td>
          <td class="paramname"> <em>ack</em></td><td>&nbsp;</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&lt; BundleOfferEntry &gt;::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="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> *&nbsp;</td>
          <td class="paramname"> <em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int16_t&nbsp;</td>
          <td class="paramname"> <em>sid</em></td><td>&nbsp;</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&#39;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="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> *&nbsp;</td>
          <td class="paramname"> <em>bo</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add entry to back of list. 
<p>

<p>Implements <a class="el" href="classprophet_1_1BundleEntryList.html#11268583624d0c667de934f8354ba5a1">prophet::BundleEntryList&lt; BundleOfferEntry &gt;</a>.</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&lt; BundleOfferEntry &gt;::find()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00215">prophet::BundleEntryList&lt; BundleOfferEntry &gt;::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 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>