<!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::Stats 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_1Stats.html">Stats</a> </div> </div> <div class="contents"> <h1>prophet::Stats Class Reference</h1><!-- doxytag: class="prophet::Stats" --><code>#include <<a class="el" href="Stats_8h-source.html">Stats.h</a>></code> <p> <p> <a href="classprophet_1_1Stats-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> Container for <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> statistics, indexed by <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> identifier. <p> Not thread-safe, requires external locking mechanism. <p>Definition at line <a class="el" href="Stats_8h-source.html#l00044">44</a> of file <a class="el" href="Stats_8h-source.html">Stats.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_1Stats.html#51c7bb804509d24a658d4401889fd273">Stats</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#51c7bb804509d24a658d4401889fd273"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#11251afd6bc4166b855ea70dcfd6787c">~Stats</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#11251afd6bc4166b855ea70dcfd6787c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#b0bc4412f7ac096b5b8af312ed4f7622">update_stats</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b, double p)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> and a predictability value, update the stats kept for that <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>. <a href="#b0bc4412f7ac096b5b8af312ed4f7622"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#7388738e42fdb699a95a88e2be62d8c8">get_p_max</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the max predictability for any route over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded. <a href="#7388738e42fdb699a95a88e2be62d8c8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#1e42b3fb7cb514336dbb17a6063c7fd3">get_mopr</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the predictability favor for the routes over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded, according to Eq. <a href="#1e42b3fb7cb514336dbb17a6063c7fd3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#cc7e28afebf8aa7c06ebf16a1140e1a1">get_lmopr</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the linear predictability favor for the routes over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded, according to Eq. <a href="#cc7e28afebf8aa7c06ebf16a1140e1a1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#a2ed8521c7551119d823d6b509716a80">drop_bundle</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> is no longer with us, so get rid of its stats. <a href="#a2ed8521c7551119d823d6b509716a80"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#4705e92ca5e2ff4ac1a6864697d744b0">dropped</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return count of how many <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> stats have been dropped so far. <a href="#4705e92ca5e2ff4ac1a6864697d744b0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#56951a0ee3d2a03764a431a5c1e9f26a">size</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return count of Bundles currently rep'd in <a class="el" href="classprophet_1_1Stats.html" title="Container for Bundle statistics, indexed by Bundle identifier.">Stats</a>. <a href="#56951a0ee3d2a03764a431a5c1e9f26a"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map< u_int32_t, <br> <a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#879c414429b64ebe8fba9ae0abccab11">pstats</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map< u_int32_t, <br> <a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a> * >::<a class="el" href="classprophet_1_1Stats.html#02e876b94cbb423ff229841cf596191f">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#02e876b94cbb423ff229841cf596191f">iterator</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map< u_int32_t, <br> <a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a> * >::<a class="el" href="classprophet_1_1Stats.html#e6652cc8aa4ca307954185e714e91a9b">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#e6652cc8aa4ca307954185e714e91a9b">const_iterator</a></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#c9c2d45c4d7b8d685a45d23392209018">find</a> (const <a class="el" href="classprophet_1_1Bundle.html">Bundle</a> *b)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience function for finding the StatEntry per bundle id. <a href="#c9c2d45c4d7b8d685a45d23392209018"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">u_int </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#c09a6c6cd3f8fb948e83985d7f505d81">dropped_</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classprophet_1_1Stats.html#879c414429b64ebe8fba9ae0abccab11">pstats</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1Stats.html#1c35ba0845e8b075ceea7236b2ff2ad4">pstats_</a></td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="879c414429b64ebe8fba9ae0abccab11"></a><!-- doxytag: member="prophet::Stats::pstats" ref="879c414429b64ebe8fba9ae0abccab11" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::map<u_int32_t,<a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a>*> <a class="el" href="classprophet_1_1Stats.html#879c414429b64ebe8fba9ae0abccab11">prophet::Stats::pstats</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00101">101</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> </div> </div><p> <a class="anchor" name="02e876b94cbb423ff229841cf596191f"></a><!-- doxytag: member="prophet::Stats::iterator" ref="02e876b94cbb423ff229841cf596191f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::map<u_int32_t,<a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a>*>::<a class="el" href="classprophet_1_1Stats.html#02e876b94cbb423ff229841cf596191f">iterator</a> <a class="el" href="classprophet_1_1Stats.html#02e876b94cbb423ff229841cf596191f">prophet::Stats::iterator</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00102">102</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> </div> </div><p> <a class="anchor" name="e6652cc8aa4ca307954185e714e91a9b"></a><!-- doxytag: member="prophet::Stats::const_iterator" ref="e6652cc8aa4ca307954185e714e91a9b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::map<u_int32_t,<a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a>*>::<a class="el" href="classprophet_1_1Stats.html#e6652cc8aa4ca307954185e714e91a9b">const_iterator</a> <a class="el" href="classprophet_1_1Stats.html#e6652cc8aa4ca307954185e714e91a9b">prophet::Stats::const_iterator</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00104">104</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="51c7bb804509d24a658d4401889fd273"></a><!-- doxytag: member="prophet::Stats::Stats" ref="51c7bb804509d24a658d4401889fd273" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prophet::Stats::Stats </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Default constructor. <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00050">50</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> </div> </div><p> <a class="anchor" name="11251afd6bc4166b855ea70dcfd6787c"></a><!-- doxytag: member="prophet::Stats::~Stats" ref="11251afd6bc4166b855ea70dcfd6787c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prophet::Stats::~Stats </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00022">22</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8h-source.html#l00112">pstats_</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="b0bc4412f7ac096b5b8af312ed4f7622"></a><!-- doxytag: member="prophet::Stats::update_stats" ref="b0bc4412f7ac096b5b8af312ed4f7622" args="(const Bundle *b, double p)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void prophet::Stats::update_stats </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">double </td> <td class="paramname"> <em>p</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> and a predictability value, update the stats kept for that <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>. <p> <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00032">32</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8cc-source.html#l00074">find()</a>, <a class="el" href="Stats_8h-source.html#l00037">prophet::StatsEntry::lmopr_</a>, <a class="el" href="Stats_8h-source.html#l00036">prophet::StatsEntry::mopr_</a>, and <a class="el" href="Stats_8h-source.html#l00035">prophet::StatsEntry::p_max_</a>.</p> </div> </div><p> <a class="anchor" name="7388738e42fdb699a95a88e2be62d8c8"></a><!-- doxytag: member="prophet::Stats::get_p_max" ref="7388738e42fdb699a95a88e2be62d8c8" args="(const Bundle *b) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double prophet::Stats::get_p_max </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> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the max predictability for any route over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded. <p> <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00053">53</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8cc-source.html#l00074">find()</a>, and <a class="el" href="Stats_8h-source.html#l00035">prophet::StatsEntry::p_max_</a>.</p> </div> </div><p> <a class="anchor" name="1e42b3fb7cb514336dbb17a6063c7fd3"></a><!-- doxytag: member="prophet::Stats::get_mopr" ref="1e42b3fb7cb514336dbb17a6063c7fd3" args="(const Bundle *b) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double prophet::Stats::get_mopr </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> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the predictability favor for the routes over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded, according to Eq. <p> 7, Section 3.7 <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00060">60</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8cc-source.html#l00074">find()</a>, and <a class="el" href="Stats_8h-source.html#l00036">prophet::StatsEntry::mopr_</a>.</p> <p>Referenced by <a class="el" href="QueuePolicy_8h-source.html#l00209">prophet::QueueCompMOPR::operator()()</a>.</p> </div> </div><p> <a class="anchor" name="cc7e28afebf8aa7c06ebf16a1140e1a1"></a><!-- doxytag: member="prophet::Stats::get_lmopr" ref="cc7e28afebf8aa7c06ebf16a1140e1a1" args="(const Bundle *b) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double prophet::Stats::get_lmopr </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> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Given a <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a>, return the linear predictability favor for the routes over which this <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> has been forwarded, according to Eq. <p> 8, Section 3.7 <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00067">67</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8cc-source.html#l00074">find()</a>, and <a class="el" href="Stats_8h-source.html#l00037">prophet::StatsEntry::lmopr_</a>.</p> <p>Referenced by <a class="el" href="QueuePolicy_8h-source.html#l00246">prophet::QueueCompLMOPR::operator()()</a>.</p> </div> </div><p> <a class="anchor" name="a2ed8521c7551119d823d6b509716a80"></a><!-- doxytag: member="prophet::Stats::drop_bundle" ref="a2ed8521c7551119d823d6b509716a80" args="(const Bundle *b)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void prophet::Stats::drop_bundle </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> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> is no longer with us, so get rid of its stats. <p> <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00096">96</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8h-source.html#l00111">dropped_</a>, <a class="el" href="Stats_8h-source.html#l00112">pstats_</a>, and <a class="el" href="classprophet_1_1Bundle.html#8f4fad2c83696237207ba7a19acb9ca4">prophet::Bundle::sequence_num()</a>.</p> </div> </div><p> <a class="anchor" name="4705e92ca5e2ff4ac1a6864697d744b0"></a><!-- doxytag: member="prophet::Stats::dropped" ref="4705e92ca5e2ff4ac1a6864697d744b0" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int prophet::Stats::dropped </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return count of how many <a class="el" href="classprophet_1_1Bundle.html" title="Facade interface between Prophet router and host implmentation's Bundle representation...">Bundle</a> stats have been dropped so far. <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00093">93</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> <p>References <a class="el" href="Stats_8h-source.html#l00111">dropped_</a>.</p> </div> </div><p> <a class="anchor" name="56951a0ee3d2a03764a431a5c1e9f26a"></a><!-- doxytag: member="prophet::Stats::size" ref="56951a0ee3d2a03764a431a5c1e9f26a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">size_t prophet::Stats::size </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return count of Bundles currently rep'd in <a class="el" href="classprophet_1_1Stats.html" title="Container for Bundle statistics, indexed by Bundle identifier.">Stats</a>. <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00098">98</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> <p>References <a class="el" href="Stats_8h-source.html#l00112">pstats_</a>.</p> </div> </div><p> <a class="anchor" name="c9c2d45c4d7b8d685a45d23392209018"></a><!-- doxytag: member="prophet::Stats::find" ref="c9c2d45c4d7b8d685a45d23392209018" args="(const Bundle *b)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structprophet_1_1StatsEntry.html">StatsEntry</a> * prophet::Stats::find </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> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Convenience function for finding the StatEntry per bundle id. <p> <p>Definition at line <a class="el" href="Stats_8cc-source.html#l00074">74</a> of file <a class="el" href="Stats_8cc-source.html">Stats.cc</a>.</p> <p>References <a class="el" href="Stats_8h-source.html#l00112">pstats_</a>, and <a class="el" href="classprophet_1_1Bundle.html#8f4fad2c83696237207ba7a19acb9ca4">prophet::Bundle::sequence_num()</a>.</p> <p>Referenced by <a class="el" href="Stats_8cc-source.html#l00067">get_lmopr()</a>, <a class="el" href="Stats_8cc-source.html#l00060">get_mopr()</a>, <a class="el" href="Stats_8cc-source.html#l00053">get_p_max()</a>, and <a class="el" href="Stats_8cc-source.html#l00032">update_stats()</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="c09a6c6cd3f8fb948e83985d7f505d81"></a><!-- doxytag: member="prophet::Stats::dropped_" ref="c09a6c6cd3f8fb948e83985d7f505d81" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">u_int <a class="el" href="classprophet_1_1Stats.html#c09a6c6cd3f8fb948e83985d7f505d81">prophet::Stats::dropped_</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00111">111</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> <p>Referenced by <a class="el" href="Stats_8cc-source.html#l00096">drop_bundle()</a>, and <a class="el" href="Stats_8h-source.html#l00093">dropped()</a>.</p> </div> </div><p> <a class="anchor" name="1c35ba0845e8b075ceea7236b2ff2ad4"></a><!-- doxytag: member="prophet::Stats::pstats_" ref="1c35ba0845e8b075ceea7236b2ff2ad4" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1Stats.html#879c414429b64ebe8fba9ae0abccab11">pstats</a> <a class="el" href="classprophet_1_1Stats.html#1c35ba0845e8b075ceea7236b2ff2ad4">prophet::Stats::pstats_</a><code> [mutable, protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="Stats_8h-source.html#l00112">112</a> of file <a class="el" href="Stats_8h-source.html">Stats.h</a>.</p> <p>Referenced by <a class="el" href="Stats_8cc-source.html#l00096">drop_bundle()</a>, <a class="el" href="Stats_8cc-source.html#l00074">find()</a>, <a class="el" href="Stats_8h-source.html#l00098">size()</a>, and <a class="el" href="Stats_8cc-source.html#l00022">~Stats()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="Stats_8h-source.html">Stats.h</a><li><a class="el" href="Stats_8cc-source.html">Stats.cc</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>