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/] [order_statistics_key_cmp.html] - Rev 20
Compare with Previous | Blame | View Log
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>order_statistics_key_cmp Interface </title> </head> <body> <h1> <tt>order_statistics_key_cmp </tt> Interface </h1> <p>A comparison functor. Transforms any comparison functor operating on logical keys to a comparison functor operating on order statistics keys. </p> <ol> <li> <a href = "../../../../include/ext/pb_assoc/order_statistics_key.hpp"><tt>order_statistics_key.hpp</tt> </a> </li> <li> <a href = "#link1">Template parameters. </a> </li> <li> <a href = "#link2">Base classes. </a> </li> <li> Public Types and Constants: <ol> <li> <a href = "#link3">Policy definitions. </a> </li> <li> <a href = "#link4">Key-type definitions. </a> </li> </ol> </li> <li> Public Methods: <ol> <li> <a href = "#link5">Constructors, destructor, and related. </a> </li> <li> <a href = "#link6">Operators. </a> </li> <li> <a href = "#link7">Policy access methods. </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 = "Cmp_Fn3735929122">Cmp_Fn</a></pre> </td> <td> <p>Comparison functor.</p> </td> <td> <pre>std::less<<a href = "#Key3735928856">Key</a>></pre> </td> </tr> <tr> <td> <pre><a name = "Allocator3735929488">Allocator</a></pre> </td> <td> <p>Allocator type.</p> <p>The allocator is only used for definitions, e.g., size_type, pointer, and reference.</p> </td> <td> <pre>std::allocator<<b>char</b>></pre> </td> </tr> </table> <h2> <a name = "link2">Base classes. </a> </h2> <table WIDTH = "100%" BORDER = "1"> <TR><TD Width = "80%" ALIGN = "left"><b>Class</b></TD><TD Width = "20%" ALIGN = "left"><b>Derivation Type</b></TD></TR> <tr> <td> <pre>std::binary_function< order_statistics_key< <b>typename</b> <a href = "#Cmp_Fn3735929122">Cmp_Fn</a>::first_argument_type, <a href = "#Allocator3735929488">Allocator</a>>, order_statistics_key< <b>typename</b> <a href = "#Cmp_Fn3735929122">Cmp_Fn</a>::second_argument_type, <a href = "#Allocator3735929488">Allocator</a>>, <b>bool</b>></pre> </td> <td> <p>public</p> </td> </tr> </table> <h2> <a name = "link3">Policy 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 = "allocator3735929520">allocator</a></pre> </td> <td> <pre><a href = "#Allocator3735929488">Allocator</a></pre> </td> <td> <p>Allocator type.</p> </td> </tr> <tr> <td> <pre><a name = "cmp_fn3735929186">cmp_fn</a></pre> </td> <td> <pre><a href = "#Cmp_Fn3735929122">Cmp_Fn</a></pre> </td> <td> <p>Comparison functor type.</p> </td> </tr> </table> <h2> <a name = "link4">Key-type 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 = "key_type3735929433">key_type</a></pre> </td> <td> <pre>order_statistics_key< <b>typename</b> <a href = "#Cmp_Fn3735929122">Cmp_Fn</a>::first_argument_type, <a href = "#Allocator3735929488">Allocator</a>></pre> </td> <td> <p>Key type.</p> </td> </tr> <tr> <td> <pre><a name = "const_key_reference3735929552">const_key_reference</a></pre> </td> <td> <pre><b>typename</b> <a href = "#allocator3735929520">allocator</a>::<b>template</b> rebind< <a href = "#key_type3735929433">key_type</a>>::other::const_reference</pre> </td> <td> <p>Const key reference type.</p> </td> </tr> </table> <h2> <a name = "link5">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><b>inline</b> order_statistics_key_cmp ()</pre> </td> <td> <p>Default constructor.</p> </td> </tr> <tr> <td> <pre><b>inline</b> order_statistics_key_cmp (<b>const</b> <a href = "#Cmp_Fn3735929122">Cmp_Fn</a> &r_cmp_fn)</pre> </td> <td> <p>Constructor taking a comparison functor.</p> </td> </tr> </table> <h2> <a name = "link6">Operators. </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> <b>bool</b> <b>operator</b>() (<a href = "#const_key_reference3735929552">const_key_reference</a> r_lhs_key, <a href = "#const_key_reference3735929552">const_key_reference</a> r_rhs_key) <b>const</b></pre> </td> <td> <p>Compares two keys.</p> </td> </tr> </table> <h2> <a name = "link7">Policy access 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 = "#cmp_fn3735929186">cmp_fn</a> & get_cmp_fn ()</pre> </td> <td> <p>Access to the comparison functor object used.</p> </td> </tr> <tr> <td> <pre><b>inline</b> <b>const</b> <a href = "#cmp_fn3735929186">cmp_fn</a> & get_cmp_fn () <b>const</b></pre> </td> <td> <p>Const access to the comparison functor object used.</p> </td> </tr> </table> </body> </html>