URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [docs/] [html/] [ext/] [pb_assoc/] [counter_update_policy.html] - Rev 20
Compare with Previous | Blame | View Log
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>counter_update_policy Interface </title> </head> <body> <h1> <tt>counter_update_policy </tt> Interface </h1> <p>A list-update policy that moves elements to the front of the list based on the counter algorithm. </p> <p>This class is likely to slightly change interface when random number generators become part of the C++ standard. </p> <ol> <li> <a href = "../../../../include/ext/pb_assoc/counter_update_policy.hpp"><tt>counter_update_policy.hpp</tt> </a> </li> <li> <a href = "#link1">Template parameters. </a> </li> <li> Public Types and Constants: <ol> <li> <a href = "#link2">Size definitions. </a> </li> </ol> </li> <li> Public Methods: <ol> <li> <a href = "#link3">Constructors, destructor, and related. </a> </li> <li> <a href = "#link4">Information methods. </a> </li> </ol> </li> <li> Protected Types and Constants: <ol> <li> <a href = "#link5">Metadata definitions. </a> </li> </ol> </li> <li> Protected Methods: <ol> <li> <a href = "#link6">Metadata operations. </a> </li> </ol> </li> </ol> <h2> <a name = "link1">Template parameters. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "20%" ALIGN = "left"><b>Parameter</b></TD><TD Width = "50%" ALIGN = "left"><b>Description</b></TD><TD Width = "30%" ALIGN = "left"><b>Default Value</b></TD></TR> <tr> <td> <pre><a name = "Size_Type3735929483">Size_Type</a></pre> </td> <td> <p>Size type.</p> </td> <td> size_t </td> </tr> <tr> <td> <pre><a name = "Metadata_Reference3735929465">Metadata_Reference</a></pre> </td> <td> <p>Metadata reference type.</p> </td> <td> <pre>std::allocator< <a href = "counter_update_metadata.html"><tt>counter_update_metadata</tt></a>>:: reference </td> </tr> </table> <h2> <a name = "link2">Size definitions. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><a name = "size_type3735929547">size_type</a></pre> </td> <td> <pre><a href = "#Size_Type3735929483">Size_Type</a></pre> </td> <td> <p>Size type used for counting the number of times each node is accessed until the count is reset to 0 and the node moved to the front of the list.</p> </td> </tr> </table> <h2> <a name = "link3">Constructors, destructor, and related. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre> counter_update_policy (<a href = "#size_type3735929547">size_type</a> max_count = 5)</pre> </td> <td> <p>Constructor. <font color = "#666666"><tt>max_count</tt></font> determines the the number of times each node is accessed until the count is reset to 0 and the node moved to the front of the list.</p> </td> </tr> <tr> <td> <pre><b>void</b> swap (<font color = "olive">counter_update_policy</font> &r_other)</pre> </td> <td> <p>Swaps content.</p> </td> </tr> </table> <h2> <a name = "link4">Information methods. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><b>inline</b> <a href = "#size_type3735929547">size_type</a> get_max_count () <b>const</b></pre> </td> <td> <p>Returns the max count of each metadata (number of times it is accessed until moved to the front of the list).</p> </td> </tr> </table> <h2> <a name = "link5">Metadata definitions. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "30%" ALIGN = "left"><b>Type</b></TD><TD Width = "55%" ALIGN = "left"><b>Definition</b></TD><TD Width = "15%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><a name = "metadata_type3735929937">metadata_type</a></pre> </td> <td> <pre><a href = "counter_update_metadata.html"><tt>counter_update_metadata</tt></a></pre> </td> <td> <p>Metadata on which this functor operates.</p> </td> </tr> <tr> <td> <pre><a name = "metadata_reference3735929497">metadata_reference</a></pre> </td> <td> <pre><a href = "#Metadata_Reference3735929465">Metadata_Reference</a></pre> </td> <td> <p>Reference to metadata on which this functor operates.</p> </td> </tr> </table> <h2> <a name = "link6">Metadata operations. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "45%" ALIGN = "left"><b>Method</b></TD><TD Width = "55%" ALIGN = "left"><b>Description</b></TD></TR> <tr> <td> <pre><a href = "#metadata_type3735929937">metadata_type</a> <b>operator</b>() () <b>const</b></pre> </td> <td> <p>Creates a metadata object.</p> </td> </tr> <tr> <td> <pre><b>bool</b> <b>operator</b>() (<a href = "#metadata_reference3735929497">metadata_reference</a> r_data) <b>const</b></pre> </td> <td> <p>Decides whether a metadata object should be moved to the front of the list.</p> </td> </tr> </table> </body> </html>