"Fossies" - the Fresh Open Source Software Archive

Member "dlib-19.18/docs/dlib/set.h.html" (22 Sep 2019, 4378 Bytes) of package /linux/misc/dlib-19.18.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <html><!-- Created using the cpp_pretty_printer from the dlib C++ library.  See http://dlib.net for updates. --><head><title>dlib C++ Library - set.h</title></head><body bgcolor='white'><pre>
    2 <font color='#009900'>// Copyright (C) 2003  Davis E. King (davis@dlib.net)
    3 </font><font color='#009900'>// License: Boost Software License   See LICENSE.txt for the full license.
    4 </font><font color='#0000FF'>#ifndef</font> DLIB_SEt_
    5 <font color='#0000FF'>#define</font> DLIB_SEt_
    6 
    7 <font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='set/set_kernel_1.h.html'>set/set_kernel_1.h</a>"
    8 <font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='set/set_kernel_c.h.html'>set/set_kernel_c.h</a>"
    9 
   10 
   11 
   12 <font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='binary_search_tree.h.html'>binary_search_tree.h</a>"
   13 
   14 <font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='set/set_compare_1.h.html'>set/set_compare_1.h</a>"
   15 
   16 <font color='#0000FF'>#include</font> "<a style='text-decoration:none' href='algs.h.html'>algs.h</a>"
   17 <font color='#0000FF'>#include</font> <font color='#5555FF'>&lt;</font>functional<font color='#5555FF'>&gt;</font>
   18 
   19 <font color='#0000FF'>namespace</font> dlib
   20 <b>{</b>
   21 
   22     <font color='#0000FF'>template</font> <font color='#5555FF'>&lt;</font>
   23         <font color='#0000FF'>typename</font> T,
   24         <font color='#0000FF'>typename</font> mem_manager <font color='#5555FF'>=</font> default_memory_manager,
   25         <font color='#0000FF'>typename</font> compare <font color='#5555FF'>=</font> std::less<font color='#5555FF'>&lt;</font>T<font color='#5555FF'>&gt;</font>
   26         <font color='#5555FF'>&gt;</font>
   27     <font color='#0000FF'>class</font> <b><a name='set'></a>set</b>
   28     <b>{</b>
   29         <b><a name='set'></a>set</b><font face='Lucida Console'>(</font><font face='Lucida Console'>)</font> <b>{</b><b>}</b>
   30 
   31 
   32 
   33 
   34 
   35         <font color='#0000FF'>typedef</font> <font color='#0000FF'>typename</font> binary_search_tree<font color='#5555FF'>&lt;</font>T,<font color='#0000FF'><u>char</u></font>,mem_manager,compare<font color='#5555FF'>&gt;</font>::kernel_1a
   36                 binary_search_tree_1;
   37 
   38         <font color='#0000FF'>typedef</font> <font color='#0000FF'>typename</font> binary_search_tree<font color='#5555FF'>&lt;</font>T,<font color='#0000FF'><u>char</u></font>,mem_manager,compare<font color='#5555FF'>&gt;</font>::kernel_2a
   39                 binary_search_tree_2;
   40 
   41     <font color='#0000FF'>public</font>:
   42         
   43         <font color='#009900'>//----------- kernels ---------------
   44 </font>
   45         <font color='#009900'>// kernel_1a
   46 </font>        <font color='#0000FF'>typedef</font>     set_kernel_1<font color='#5555FF'>&lt;</font>T,binary_search_tree_1,mem_manager<font color='#5555FF'>&gt;</font>
   47                     kernel_1a;
   48         <font color='#0000FF'>typedef</font>     set_kernel_c<font color='#5555FF'>&lt;</font>kernel_1a<font color='#5555FF'>&gt;</font>
   49                     kernel_1a_c;
   50 
   51         <font color='#009900'>// kernel_1b
   52 </font>        <font color='#0000FF'>typedef</font>     set_kernel_1<font color='#5555FF'>&lt;</font>T,binary_search_tree_2,mem_manager<font color='#5555FF'>&gt;</font>
   53                     kernel_1b;
   54         <font color='#0000FF'>typedef</font>     set_kernel_c<font color='#5555FF'>&lt;</font>kernel_1b<font color='#5555FF'>&gt;</font>
   55                     kernel_1b_c;
   56 
   57 
   58         <font color='#009900'>//---------- extensions ------------
   59 </font>
   60         <font color='#009900'>// compare extensions
   61 </font>        <font color='#0000FF'>typedef</font>     set_compare_1<font color='#5555FF'>&lt;</font>kernel_1a<font color='#5555FF'>&gt;</font>
   62                     compare_1a;
   63         <font color='#0000FF'>typedef</font>     set_compare_1<font color='#5555FF'>&lt;</font>kernel_1a_c<font color='#5555FF'>&gt;</font>
   64                     compare_1a_c;
   65 
   66         <font color='#0000FF'>typedef</font>     set_compare_1<font color='#5555FF'>&lt;</font>kernel_1b<font color='#5555FF'>&gt;</font>
   67                     compare_1b;
   68         <font color='#0000FF'>typedef</font>     set_compare_1<font color='#5555FF'>&lt;</font>kernel_1b_c<font color='#5555FF'>&gt;</font>
   69                     compare_1b_c;
   70 
   71     <b>}</b>;
   72 <b>}</b>
   73 
   74 <font color='#0000FF'>#endif</font> <font color='#009900'>// DLIB_SEt_
   75 </font>
   76 
   77 </pre></body></html>