Sophie

Sophie

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

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::FwdStrategyComp 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_1FwdStrategyComp.html">FwdStrategyComp</a>
  </div>
</div>
<div class="contents">
<h1>prophet::FwdStrategyComp Class Reference</h1><!-- doxytag: class="prophet::FwdStrategyComp" -->Prophet forwarding strategy is laid out in Prophet I-D March 2006 Section 3.6, and involves two pieces: a decider function and a sort order.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for prophet::FwdStrategyComp:</div>
<div class="dynsection">

<p><center><img src="classprophet_1_1FwdStrategyComp.png" usemap="#prophet::FwdStrategyComp_map" border="0" alt=""></center>
<map name="prophet::FwdStrategyComp_map">
<area href="classprophet_1_1FwdStrategyCompGRTRMAX.html" alt="prophet::FwdStrategyCompGRTRMAX" shape="rect" coords="0,56,229,80">
<area href="classprophet_1_1FwdStrategyCompGRTRSORT.html" alt="prophet::FwdStrategyCompGRTRSORT" shape="rect" coords="239,56,468,80">
</map>
</div>

<p>
<a href="classprophet_1_1FwdStrategyComp-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">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#63716594db5c14d1896c3ed196484e63">~FwdStrategyComp</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#63716594db5c14d1896c3ed196484e63"></a><br></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_1FwdStrategyComp.html#977aa52b23eb49fe72e892f12102348d">operator()</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *a, const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparator function for FIFO ordering in a heap.  <a href="#977aa52b23eb49fe72e892f12102348d"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#1399415e6d001e011ab55694545890a0">fwd_strategy</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accessors.  <a href="#1399415e6d001e011ab55694545890a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#ae12f4e773a6f3e5019aab1cd2b828e3">fwd_strategy_str</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accessors.  <a href="#ae12f4e773a6f3e5019aab1cd2b828e3"></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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#6e2eac2d76fb45c9b9ff259e130b0b87">FwdStrategyComp</a> (<a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a> fs=FwdStrategy::INVALID_FS)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor is protected to force use of factory method.  <a href="#6e2eac2d76fb45c9b9ff259e130b0b87"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#5c02f5cfb5d6285f478a3656fee5c7d4">strategy_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">which strategy is in use  <a href="#5c02f5cfb5d6285f478a3656fee5c7d4"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1FwdStrategyComp.html#d399dade364b5046211f77a07e53d5fb">FwdStrategy</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for factory method  <a href="#d399dade364b5046211f77a07e53d5fb"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Prophet forwarding strategy is laid out in Prophet I-D March 2006 Section 3.6, and involves two pieces: a decider function and a sort order. 
<p>
<a class="el" href="classprophet_1_1FwdStrategyComp.html" title="Prophet forwarding strategy is laid out in Prophet I-D March 2006 Section 3.6, and...">FwdStrategyComp</a> and its derivatives fill the comparator function for sort order. <a class="el" href="classprophet_1_1FwdStrategyComp.html" title="Prophet forwarding strategy is laid out in Prophet I-D March 2006 Section 3.6, and...">FwdStrategyComp</a> defaults to FIFO ordering. 
<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00082">82</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="63716594db5c14d1896c3ed196484e63"></a><!-- doxytag: member="prophet::FwdStrategyComp::~FwdStrategyComp" ref="63716594db5c14d1896c3ed196484e63" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual prophet::FwdStrategyComp::~FwdStrategyComp           </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="FwdStrategy_8h-source.html#l00089">89</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="6e2eac2d76fb45c9b9ff259e130b0b87"></a><!-- doxytag: member="prophet::FwdStrategyComp::FwdStrategyComp" ref="6e2eac2d76fb45c9b9ff259e130b0b87" args="(FwdStrategy::fwd_strategy_t fs=FwdStrategy::INVALID_FS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">prophet::FwdStrategyComp::FwdStrategyComp           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a>&nbsp;</td>
          <td class="paramname"> <em>fs</em> = <code>FwdStrategy::INVALID_FS</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor is protected to force use of factory method. 
<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00116">116</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="1399415e6d001e011ab55694545890a0"></a><!-- doxytag: member="prophet::FwdStrategyComp::fwd_strategy" ref="1399415e6d001e011ab55694545890a0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a> prophet::FwdStrategyComp::fwd_strategy           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Accessors. 
<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00100">100</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

<p>References <a class="el" href="FwdStrategy_8h-source.html#l00119">strategy_</a>.</p>

</div>
</div><p>
<a class="anchor" name="ae12f4e773a6f3e5019aab1cd2b828e3"></a><!-- doxytag: member="prophet::FwdStrategyComp::fwd_strategy_str" ref="ae12f4e773a6f3e5019aab1cd2b828e3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* prophet::FwdStrategyComp::fwd_strategy_str           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Accessors. 
<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00104">104</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

<p>References <a class="el" href="FwdStrategy_8h-source.html#l00050">prophet::FwdStrategy::fs_to_str()</a>, and <a class="el" href="FwdStrategy_8h-source.html#l00119">strategy_</a>.</p>

</div>
</div><p>
<a class="anchor" name="977aa52b23eb49fe72e892f12102348d"></a><!-- doxytag: member="prophet::FwdStrategyComp::operator()" ref="977aa52b23eb49fe72e892f12102348d" args="(const Bundle *a, const Bundle *b) const " -->
<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::FwdStrategyComp::operator()           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparator function for FIFO ordering in a heap. 
<p>

<p>Reimplemented in <a class="el" href="classprophet_1_1FwdStrategyCompGRTRSORT.html#75ff32e30a6a2a02c72de5c9bf8ca0dd">prophet::FwdStrategyCompGRTRSORT</a>, and <a class="el" href="classprophet_1_1FwdStrategyCompGRTRMAX.html#026a2b75669272b830146fa33a967324">prophet::FwdStrategyCompGRTRMAX</a>.</p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00094">94</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="d399dade364b5046211f77a07e53d5fb"></a><!-- doxytag: member="prophet::FwdStrategyComp::FwdStrategy" ref="d399dade364b5046211f77a07e53d5fb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="structprophet_1_1FwdStrategy.html">FwdStrategy</a><code> [friend]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
for factory method 
<p>

<p>Reimplemented in <a class="el" href="classprophet_1_1FwdStrategyCompGRTRSORT.html#d399dade364b5046211f77a07e53d5fb">prophet::FwdStrategyCompGRTRSORT</a>, and <a class="el" href="classprophet_1_1FwdStrategyCompGRTRMAX.html#d399dade364b5046211f77a07e53d5fb">prophet::FwdStrategyCompGRTRMAX</a>.</p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00111">111</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="5c02f5cfb5d6285f478a3656fee5c7d4"></a><!-- doxytag: member="prophet::FwdStrategyComp::strategy_" ref="5c02f5cfb5d6285f478a3656fee5c7d4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structprophet_1_1FwdStrategy.html#50567dba6d835926a1532568f6a46ff9">FwdStrategy::fwd_strategy_t</a> <a class="el" href="classprophet_1_1FwdStrategyComp.html#5c02f5cfb5d6285f478a3656fee5c7d4">prophet::FwdStrategyComp::strategy_</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
which strategy is in use 
<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00119">119</a> of file <a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>.</p>

<p>Referenced by <a class="el" href="FwdStrategy_8h-source.html#l00100">fwd_strategy()</a>, and <a class="el" href="FwdStrategy_8h-source.html#l00104">fwd_strategy_str()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.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>