ss_decl2ulint_base.g.cc

Go to the documentation of this file.
00001 // This file is automatically generated, do not edit.
00002 
00003 /*!
00004         \file
00005         \brief Visitors returning ulint value for ss_declaration.
00006         \author jaz
00007 */
00008 
00009 #include <lestes/lang/cplus/sem/ss_declaration.g.hh>
00010 #include <lestes/lang/cplus/sem/ss_misc.g.hh>
00011 
00012 #include <lestes/std/list.hh>
00013 #include <lestes/std/pair.hh>
00014 #include <lestes/std/reflect.hh>
00015 
00016 #include <lestes/lang/cplus/sem/ss_decl2ulint_base.g.hh>
00017 
00018 package(lestes);
00019 package(lang);
00020 package(cplus);
00021 package(sem);
00022 
00023 
00024 // ------------- Class ss_decl2id follows. -------------
00025 
00026 /*!
00027    \returns The value of ss_decl2id::singleton_instance.
00028    \author lsg
00029  */
00030 ptr< ss_decl2id > ss_decl2id::singleton_instance_get()
00031 {
00032         return singleton_instance;
00033 }
00034 
00035 /*!
00036    \param[in] x The new value to set ss_decl2id::singleton_instance to.
00037    \author lsg
00038  */
00039 void ss_decl2id::singleton_instance_set(const ptr< ss_decl2id > & x)
00040 {
00041         ss_decl2id::singleton_instance = x;
00042 }
00043 
00044 /*!
00045    This factory method for class ss_decl2id takes values of all fields as arguments.
00046    \author lsg
00047  */
00048 ptr< ss_decl2id > ss_decl2id::create()
00049 {
00050         return ptr< ss_decl2id > ( new ss_decl2id() );
00051 }
00052 
00053 /*!
00054    Generated constructor for class ss_decl2id.
00055    \author lsg
00056  */
00057 ss_decl2id::ss_decl2id ()
00058         : ss_decl2ulint_base()
00059 {}
00060 
00061 ptr< object::reflection_list > ss_decl2id::reflection_get() const
00062 {
00063         if (!reflection) {
00064                 typedef class_reflection::field_metadata md;
00065                 typedef class_reflection::field_metadata_list mdlist;
00066                 ptr<mdlist> mdl = mdlist::create();
00067                 mdl->push_back( md::create( "singleton_instance", "ss_decl2id" ) );
00068                 reflection = reflection_list::create( ss_decl2ulint_base::reflection_get() );
00069                 reflection->push_back( class_reflection::create( "ss_decl2id", mdl ) );
00070         }
00071         return reflection;
00072 }
00073 
00074 ptr< object::field_list_list > ss_decl2id::field_values_get() const
00075 {
00076         ptr < field_list_list > result = ss_decl2ulint_base::field_values_get();
00077         result->push_back( value_list::create() );
00078         result->back()->push_back( this->singleton_instance );
00079         return result;
00080 }
00081 
00082 
00083 /*!
00084    Marking routine is used for garbage collection.
00085    \author lsg
00086  */
00087 void ss_decl2id::gc_mark()
00088 {
00089         ss_decl2ulint_base::gc_mark();
00090 }
00091 
00092 // End of class ss_decl2id.
00093 
00094 
00095 // static data members follow 
00096 ptr< ss_decl2id > ss_decl2id::singleton_instance = singleton_instance;
00097 ptr<object::reflection_list> ss_decl2id::reflection = reflection;
00098 
00099 end_package(sem);
00100 end_package(cplus);
00101 end_package(lang);
00102 end_package(lestes);
00103 

Generated on Mon Feb 12 18:23:16 2007 for lestes by doxygen 1.5.1-20070107