<!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="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="structprophet_1_1BundleOfferComp.html">BundleOfferComp</a> </div> </div> <div class="contents"> <h1>prophet::BundleOfferComp Struct Reference</h1><!-- doxytag: class="prophet::BundleOfferComp" --><code>#include <<a class="el" href="FwdStrategy_8h-source.html">FwdStrategy.h</a>></code> <p> <p> <a href="structprophet_1_1BundleOfferComp-members.html">List of all members.</a><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> <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="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> </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> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1BundleOfferComp.html#b411951d835148266915dc661a5b1ce5">comp_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer to actual comparator instance <a href="#b411951d835148266915dc661a5b1ce5"></a><br></td></tr> </table> <hr><h2>Constructor & 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> * </td> <td class="paramname"> <em>comp</em> </td> <td> ) </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> * </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> * </td> <td class="paramname"> <em>b</em></td><td> </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 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>