<!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::QueuePolicy 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 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_1QueuePolicy.html">QueuePolicy</a> </div> </div> <div class="contents"> <h1>prophet::QueuePolicy Struct Reference</h1><!-- doxytag: class="prophet::QueuePolicy" --><code>#include <<a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>></code> <p> <p> <a href="structprophet_1_1QueuePolicy-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 Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> { <br> <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed687c9a6c999494874cb151fce09f302f96">INVALID_QP</a> = 0, <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed6800b0cb9c3951d7d6db33102917550f3f">FIFO</a>, <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed684382c43915c1d5108a7ef513a6455887">MOFO</a>, <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed687446684993b20f377a98a45245a14b79">MOPR</a>, <br> <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68728feb9621404217cc7dc2362c9d366b">LINEAR_MOPR</a>, <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68769c4df6689421bad5ba4fcad0dfaf82">SHLI</a>, <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68a7cf7e5bdd10d1048fb623a737cfe6af">LEPR</a> <br> }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Queuing policies p. <a href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1QueuePolicy.html#10be033bf51963571262ddccc33508be">qp_to_str</a> (<a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> qp)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Utility function to convert type code to const char*. <a href="#10be033bf51963571262ddccc33508be"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1QueuePolicy.html#b86425856477ae85d582585f170ff606">str_to_qp</a> (const char *str)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classprophet_1_1QueueComp.html">QueueComp</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structprophet_1_1QueuePolicy.html#0af83ec59196788050fff090528d61a7">policy</a> (<a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> qp, const <a class="el" href="classprophet_1_1Stats.html">Stats</a> *stats=NULL, const <a class="el" href="classprophet_1_1Table.html">Table</a> *nodes=NULL, u_int min_forward=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Factory method for creating <a class="el" href="structprophet_1_1QueuePolicy.html">QueuePolicy</a> comparator instance. <a href="#0af83ec59196788050fff090528d61a7"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="QueuePolicy_8h-source.html#l00032">32</a> of file <a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>.</p> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="41e2705af81c561ed69d802afa47ed68"></a><!-- doxytag: member="prophet::QueuePolicy::q_policy_t" ref="41e2705af81c561ed69d802afa47ed68" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">prophet::QueuePolicy::q_policy_t</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Queuing policies p. <p> 18, 3.7 <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed687c9a6c999494874cb151fce09f302f96"></a><!-- doxytag: member="INVALID_QP" ref="41e2705af81c561ed69d802afa47ed687c9a6c999494874cb151fce09f302f96" args="" -->INVALID_QP</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed6800b0cb9c3951d7d6db33102917550f3f"></a><!-- doxytag: member="FIFO" ref="41e2705af81c561ed69d802afa47ed6800b0cb9c3951d7d6db33102917550f3f" args="" -->FIFO</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed684382c43915c1d5108a7ef513a6455887"></a><!-- doxytag: member="MOFO" ref="41e2705af81c561ed69d802afa47ed684382c43915c1d5108a7ef513a6455887" args="" -->MOFO</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed687446684993b20f377a98a45245a14b79"></a><!-- doxytag: member="MOPR" ref="41e2705af81c561ed69d802afa47ed687446684993b20f377a98a45245a14b79" args="" -->MOPR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed68728feb9621404217cc7dc2362c9d366b"></a><!-- doxytag: member="LINEAR_MOPR" ref="41e2705af81c561ed69d802afa47ed68728feb9621404217cc7dc2362c9d366b" args="" -->LINEAR_MOPR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed68769c4df6689421bad5ba4fcad0dfaf82"></a><!-- doxytag: member="SHLI" ref="41e2705af81c561ed69d802afa47ed68769c4df6689421bad5ba4fcad0dfaf82" args="" -->SHLI</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" name="41e2705af81c561ed69d802afa47ed68a7cf7e5bdd10d1048fb623a737cfe6af"></a><!-- doxytag: member="LEPR" ref="41e2705af81c561ed69d802afa47ed68a7cf7e5bdd10d1048fb623a737cfe6af" args="" -->LEPR</em> </td><td> </td></tr> </table> </dl> <p>Definition at line <a class="el" href="QueuePolicy_8h-source.html#l00038">38</a> of file <a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="0af83ec59196788050fff090528d61a7"></a><!-- doxytag: member="prophet::QueuePolicy::policy" ref="0af83ec59196788050fff090528d61a7" args="(q_policy_t qp, const Stats *stats=NULL, const Table *nodes=NULL, u_int min_forward=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1QueueComp.html">QueueComp</a> * prophet::QueuePolicy::policy </td> <td>(</td> <td class="paramtype"><a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">QueuePolicy::q_policy_t</a> </td> <td class="paramname"> <em>qp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classprophet_1_1Stats.html">Stats</a> * </td> <td class="paramname"> <em>stats</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classprophet_1_1Table.html">Table</a> * </td> <td class="paramname"> <em>nodes</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">u_int </td> <td class="paramname"> <em>min_forward</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Factory method for creating <a class="el" href="structprophet_1_1QueuePolicy.html">QueuePolicy</a> comparator instance. <p> It is the caller's responsibility to ensure that pointers supplied as parameters to this factory method are valid for the lifetime of the returned <a class="el" href="classprophet_1_1QueueComp.html" title="Bundle queuing policy requires a sort order, which is provided by QueueComp and its...">QueueComp</a> instance and any of its copies. <p>Definition at line <a class="el" href="QueuePolicy_8h-source.html#l00351">351</a> of file <a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>.</p> <p>References <a class="el" href="QueuePolicy_8h-source.html#l00040">FIFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00039">INVALID_QP</a>, <a class="el" href="QueuePolicy_8h-source.html#l00045">LEPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00043">LINEAR_MOPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00041">MOFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00042">MOPR</a>, and <a class="el" href="QueuePolicy_8h-source.html#l00044">SHLI</a>.</p> <p>Referenced by <a class="el" href="Repository_8cc-source.html#l00025">prophet::Repository::Repository()</a>.</p> </div> </div><p> <a class="anchor" name="10be033bf51963571262ddccc33508be"></a><!-- doxytag: member="prophet::QueuePolicy::qp_to_str" ref="10be033bf51963571262ddccc33508be" args="(q_policy_t qp)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const char* prophet::QueuePolicy::qp_to_str </td> <td>(</td> <td class="paramtype"><a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> </td> <td class="paramname"> <em>qp</em> </td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Utility function to convert type code to const char*. <p> <p>Definition at line <a class="el" href="QueuePolicy_8h-source.html#l00052">52</a> of file <a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>.</p> <p>References <a class="el" href="dtn__ipc_8c.html#6d24efd83036c2dde8d9100adb9abffd">CASE</a>, <a class="el" href="QueuePolicy_8h-source.html#l00040">FIFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00045">LEPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00043">LINEAR_MOPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00041">MOFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00042">MOPR</a>, and <a class="el" href="QueuePolicy_8h-source.html#l00044">SHLI</a>.</p> <p>Referenced by <a class="el" href="ProphetCommand_8cc-source.html#l00123">dtn::ProphetCommand::exec()</a>, and <a class="el" href="Repository_8cc-source.html#l00108">prophet::Repository::set_comparator()</a>.</p> </div> </div><p> <a class="anchor" name="b86425856477ae85d582585f170ff606"></a><!-- doxytag: member="prophet::QueuePolicy::str_to_qp" ref="b86425856477ae85d582585f170ff606" args="(const char *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="structprophet_1_1QueuePolicy.html#41e2705af81c561ed69d802afa47ed68">q_policy_t</a> prophet::QueuePolicy::str_to_qp </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>str</em> </td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="QueuePolicy_8h-source.html#l00068">68</a> of file <a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.h</a>.</p> <p>References <a class="el" href="QueuePolicy_8h-source.html#l00040">FIFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00039">INVALID_QP</a>, <a class="el" href="QueuePolicy_8h-source.html#l00045">LEPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00043">LINEAR_MOPR</a>, <a class="el" href="QueuePolicy_8h-source.html#l00041">MOFO</a>, <a class="el" href="QueuePolicy_8h-source.html#l00042">MOPR</a>, and <a class="el" href="QueuePolicy_8h-source.html#l00044">SHLI</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="QueuePolicy_8h-source.html">QueuePolicy.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 <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>