ss_type2tm_type_convertor.g.cc

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

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