literal_info_base.g.cc

Go to the documentation of this file.
00001 // This file is automatically generated, do not edit.
00002 
00003 /*!
00004         \file
00005         \author jaz
00006 */
00007 
00008 #include <lestes/std/ucn_string.hh>
00009 #include <lestes/md/types/tm_data_type_base.g.hh>
00010 
00011 #include <lestes/std/list.hh>
00012 #include <lestes/std/pair.hh>
00013 #include <lestes/std/reflect.hh>
00014 
00015 #include <lestes/md/literals/literal_info_base.g.hh>
00016 
00017 package(lestes);
00018 package(md);
00019 package(literals);
00020 
00021 
00022 // ------------- Class literal_info_base follows. -------------
00023 
00024 /*!
00025    \returns The value of literal_info_base::type.
00026    \author lsg
00027  */
00028 ptr< ::lestes::md::types::tm_data_type_base > literal_info_base::type_get() const
00029 {
00030         return type;
00031 }
00032 
00033 /*!
00034    \param[in] x The new value to set literal_info_base::type to.
00035    \author lsg
00036  */
00037 void literal_info_base::type_set(const ptr< ::lestes::md::types::tm_data_type_base > & x)
00038 {
00039         literal_info_base::type = x;
00040 }
00041 
00042 /*!
00043    Generated constructor for class literal_info_base.
00044    \author lsg
00045  */
00046 literal_info_base::literal_info_base (ptr< ::lestes::md::types::tm_data_type_base > a__literal_info_base__type)
00047         : object(), type(checked(a__literal_info_base__type))
00048 {}
00049 
00050 ptr< object::reflection_list > literal_info_base::reflection_get() const
00051 {
00052         if (!reflection) {
00053                 typedef class_reflection::field_metadata md;
00054                 typedef class_reflection::field_metadata_list mdlist;
00055                 ptr<mdlist> mdl = mdlist::create();
00056                 mdl->push_back( md::create( "type", "tm_data_type_base" ) );
00057                 reflection = reflection_list::create( ::lestes::std::object::reflection_get() );
00058                 reflection->push_back( class_reflection::create( "literal_info_base", mdl ) );
00059         }
00060         return reflection;
00061 }
00062 
00063 ptr< object::field_list_list > literal_info_base::field_values_get() const
00064 {
00065         ptr < field_list_list > result = ::lestes::std::object::field_values_get();
00066         result->push_back( value_list::create() );
00067         result->back()->push_back( this->type );
00068         return result;
00069 }
00070 
00071 
00072 /*!
00073    Marking routine is used for garbage collection.
00074    \author lsg
00075  */
00076 void literal_info_base::gc_mark()
00077 {
00078 	::lestes::std::object::gc_mark();
00079 }
00080 
00081 // End of class literal_info_base.
00082 
00083 // ------------- Class li_simple_base follows. -------------
00084 
00085 /*!
00086    \returns The value of li_simple_base::data.
00087    \author lsg
00088  */
00089 ucn_string li_simple_base::data_get() const
00090 {
00091         return data;
00092 }
00093 
00094 /*!
00095    \param[in] x The new value to set li_simple_base::data to.
00096    \author lsg
00097  */
00098 void li_simple_base::data_set(ucn_string x)
00099 {
00100         li_simple_base::data = x;
00101 }
00102 
00103 /*!
00104    Generated constructor for class li_simple_base.
00105    \author lsg
00106  */
00107 li_simple_base::li_simple_base (ptr< ::lestes::md::types::tm_data_type_base > a__literal_info_base__type,
00108                 ucn_string a__li_simple_base__data)
00109         : literal_info_base(a__literal_info_base__type), data(a__li_simple_base__data)
00110 {}
00111 
00112 ptr< object::reflection_list > li_simple_base::reflection_get() const
00113 {
00114         if (!reflection) {
00115                 typedef class_reflection::field_metadata md;
00116                 typedef class_reflection::field_metadata_list mdlist;
00117                 ptr<mdlist> mdl = mdlist::create();
00118                 mdl->push_back( md::create( "data", "ucn_string" ) );
00119                 reflection = reflection_list::create( literal_info_base::reflection_get() );
00120                 reflection->push_back( class_reflection::create( "li_simple_base", mdl ) );
00121         }
00122         return reflection;
00123 }
00124 
00125 ptr< object::field_list_list > li_simple_base::field_values_get() const
00126 {
00127         ptr < field_list_list > result = literal_info_base::field_values_get();
00128         result->push_back( value_list::create() );
00129         result->back()->push_back( objectize< ucn_string > ::create( this->data ) );
00130         return result;
00131 }
00132 
00133 
00134 /*!
00135    Marking routine is used for garbage collection.
00136    \author lsg
00137  */
00138 void li_simple_base::gc_mark()
00139 {
00140         literal_info_base::gc_mark();
00141 }
00142 
00143 // End of class li_simple_base.
00144 
00145 // ------------- Class li_compound_base follows. -------------
00146 
00147 /*!
00148    \returns The value of li_compound_base::items.
00149    \author lsg
00150  */
00151 ptr< ::lestes::std::list< srp< literal_info_base > > > li_compound_base::items_get() const
00152 {
00153         return items;
00154 }
00155 
00156 /*!
00157    \param[in] x The new value to set li_compound_base::items to.
00158    \author lsg
00159  */
00160 void li_compound_base::items_set(const ptr< ::lestes::std::list< srp< literal_info_base > > > & x)
00161 {
00162         li_compound_base::items = x;
00163 }
00164 
00165 /*!
00166    Generated constructor for class li_compound_base.
00167    \author lsg
00168  */
00169 li_compound_base::li_compound_base (ptr< ::lestes::md::types::tm_data_type_base > a__literal_info_base__type,
00170                 ptr< ::lestes::std::list< srp< literal_info_base > > > a__li_compound_base__items)
00171         : literal_info_base(a__literal_info_base__type), items(checked(a__li_compound_base__items))
00172 {}
00173 
00174 ptr< object::reflection_list > li_compound_base::reflection_get() const
00175 {
00176         if (!reflection) {
00177                 typedef class_reflection::field_metadata md;
00178                 typedef class_reflection::field_metadata_list mdlist;
00179                 ptr<mdlist> mdl = mdlist::create();
00180                 mdl->push_back( md::create( "items", "list&lt; srp&lt; literal_info_base &gt; &gt;" ) );
00181                 reflection = reflection_list::create( literal_info_base::reflection_get() );
00182                 reflection->push_back( class_reflection::create( "li_compound_base", mdl ) );
00183         }
00184         return reflection;
00185 }
00186 
00187 ptr< object::field_list_list > li_compound_base::field_values_get() const
00188 {
00189         ptr < field_list_list > result = literal_info_base::field_values_get();
00190         result->push_back( value_list::create() );
00191         result->back()->push_back( this->items );
00192         return result;
00193 }
00194 
00195 
00196 /*!
00197    Marking routine is used for garbage collection.
00198    \author lsg
00199  */
00200 void li_compound_base::gc_mark()
00201 {
00202         literal_info_base::gc_mark();
00203 }
00204 
00205 // End of class li_compound_base.
00206 
00207 
00208 // static data members follow 
00209 ptr<object::reflection_list> literal_info_base::reflection = reflection;
00210 ptr<object::reflection_list> li_simple_base::reflection = reflection;
00211 ptr<object::reflection_list> li_compound_base::reflection = reflection;
00212 
00213 end_package(literals);
00214 end_package(md);
00215 end_package(lestes);
00216 

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