Sophie

Sophie

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

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::BundleOfferComp Struct 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="structprophet_1_1BundleOfferComp.html">BundleOfferComp</a>
  </div>
</div>
<div class="contents">
<h1>prophet::BundleOfferComp Struct Reference</h1><!-- doxytag: class="prophet::BundleOfferComp" -->Due to extensive use of copy constructors in the STL, any inheritance hierarchy of comparators will always get "clipped" back to the base type.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>&gt;</code>
<p>

<p>
<a href="structprophet_1_1BundleOfferComp-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="structprophet_1_1BundleOfferComp.html#9d81cc04b89f1fa3c38bdfe1e81c631e">BundleOfferComp</a> (const <a class="el" href="classprophet_1_1FwdStrategyComp.html">FwdStrategyComp</a> *comp)</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="structprophet_1_1BundleOfferComp.html#cb4a7cbc7049266ce0edef2b270fda1a">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 colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classprophet_1_1FwdStrategyComp.html">FwdStrategyComp</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1BundleOfferComp.html#b411951d835148266915dc661a5b1ce5">comp_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pointer to actual comparator instance  <a href="#b411951d835148266915dc661a5b1ce5"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Due to extensive use of copy constructors in the STL, any inheritance hierarchy of comparators will always get "clipped" back to the base type. 
<p>
See Scott Meyer's excellent text on "Effective STL." To get around this limitation, use a wrapper that invokes the proper method based on a pointer dereference. It's a long explanation, and the book is worth every penny, so go spend US$40 and read up on it. 
<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00204">204</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="9d81cc04b89f1fa3c38bdfe1e81c631e"></a><!-- doxytag: member="prophet::BundleOfferComp::BundleOfferComp" ref="9d81cc04b89f1fa3c38bdfe1e81c631e" args="(const FwdStrategyComp *comp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">prophet::BundleOfferComp::BundleOfferComp           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classprophet_1_1FwdStrategyComp.html">FwdStrategyComp</a> *&nbsp;</td>
          <td class="paramname"> <em>comp</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00207">207</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="cb4a7cbc7049266ce0edef2b270fda1a"></a><!-- doxytag: member="prophet::BundleOfferComp::operator()" ref="cb4a7cbc7049266ce0edef2b270fda1a" args="(const Bundle *a, const Bundle *b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> prophet::BundleOfferComp::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]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00210">210</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#l00215">comp_</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="b411951d835148266915dc661a5b1ce5"></a><!-- doxytag: member="prophet::BundleOfferComp::comp_" ref="b411951d835148266915dc661a5b1ce5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classprophet_1_1FwdStrategyComp.html">FwdStrategyComp</a>* <a class="el" href="structprophet_1_1BundleOfferComp.html#b411951d835148266915dc661a5b1ce5">prophet::BundleOfferComp::comp_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
pointer to actual comparator instance 
<p>

<p>Definition at line <a class="el" href="FwdStrategy_8h-source.html#l00215">215</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#l00210">operator()()</a>.</p>

</div>
</div><p>
<hr>The documentation for this struct 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>