collection_refl.hh

Go to the documentation of this file.
00001 /*
00002    The lestes compiler suite
00003    Copyright (C) 2002, 2003, 2004, 2005 Miroslav Tichy
00004    Copyright (C) 2002, 2003, 2004, 2005 Petr Zika
00005    Copyright (C) 2002, 2003, 2004, 2005 Vojtech Hala
00006    Copyright (C) 2002, 2003, 2004, 2005 Jiri Kosina
00007    Copyright (C) 2002, 2003, 2004, 2005 Pavel Sanda
00008    Copyright (C) 2002, 2003, 2004, 2005 Jan Zouhar
00009    Copyright (C) 2002, 2003, 2004, 2005 Rudolf Thomas
00010 
00011    This program is free software; you can redistribute it and/or modify
00012    it under the terms of the GNU General Public License as published by
00013    the Free Software Foundation; version 2 of the License.
00014 
00015    This program is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018    GNU General Public License for more details.
00019 
00020    See the full text of the GNU General Public License version 2, and
00021    the limitations in the file doc/LICENSE.
00022 
00023    By accepting the license the licensee waives any and all claims
00024    against the copyright holder(s) related in whole or in part to the
00025    work, its use, and/or the inability to use it.
00026  
00027  */
00028 #ifndef lestes__std___collection_refl_hh___included
00029 #define lestes__std___collection_refl_hh___included
00030 
00031 /*! \file
00032   Cached reflections for collections
00033 
00034   Collections are templates, if the cached reflections were their static member
00035   fields, there would have to be a stand-alone declaration of the field for
00036   every combination of the template arguments...
00037 
00038   Therefore we create sort-of global variables, one for each of the
00039   specialisations.
00040 
00041   \author Rudo
00042 */
00043 #include <lestes/common.hh>
00044 
00045 package(lestes);
00046 package(std);
00047 
00048 class collection_refl {
00049 public:
00050         static ptr<object::reflection_list> list_simple;
00051         static void list_simple_init( ptr<object::reflection_list> inherited );
00052 
00053         static ptr<object::reflection_list> list_srp;
00054         static void list_srp_init( ptr<object::reflection_list> inherited );
00055 
00056         static ptr<object::reflection_list> vector_simple;
00057         static void vector_simple_init( ptr<object::reflection_list> inherited );
00058         
00059         static ptr<object::reflection_list> vector_srp;
00060         static void vector_srp_init( ptr<object::reflection_list> inherited );
00061 
00062         static ptr<object::reflection_list> set_simple;
00063         static void set_simple_init( ptr<object::reflection_list> inherited );
00064 
00065         static ptr<object::reflection_list> set_srp;
00066         static void set_srp_init( ptr<object::reflection_list> inherited );
00067 
00068         static ptr<object::reflection_list> pair_simple_simple;
00069         static void pair_simple_simple_init( ptr<object::reflection_list> inherited );
00070 
00071         static ptr<object::reflection_list> pair_srp_simple;
00072         static void pair_srp_simple_init( ptr<object::reflection_list> inherited );
00073 
00074         static ptr<object::reflection_list> pair_simple_srp;
00075         static void pair_simple_srp_init( ptr<object::reflection_list> inherited );
00076 
00077         static ptr<object::reflection_list> pair_srp_srp;
00078         static void pair_srp_srp_init( ptr<object::reflection_list> inherited );
00079 
00080         static ptr<object::reflection_list> map_simple_simple;
00081         static void map_simple_simple_init( ptr<object::reflection_list> inherited );
00082 
00083         static ptr<object::reflection_list> map_srp_simple;
00084         static void map_srp_simple_init( ptr<object::reflection_list> inherited );
00085 
00086         static ptr<object::reflection_list> map_simple_srp;
00087         static void map_simple_srp_init( ptr<object::reflection_list> inherited );
00088 
00089         static ptr<object::reflection_list> map_srp_srp;
00090         static void map_srp_srp_init( ptr<object::reflection_list> inherited );
00091 
00092         //! Hide constructor
00093         collection_refl();
00094 };
00095 
00096 end_package(std);
00097 end_package(lestes);
00098 
00099 #endif  // lestes__std___collection_refl_hh___included

Generated on Mon Feb 12 18:22:32 2007 for lestes by doxygen 1.5.1-20070107