00001 // This file is automatically generated, do not edit. 00002 00003 00004 #include <lestes/std/list.hh> 00005 #include <lestes/std/pair.hh> 00006 #include <lestes/std/reflect.hh> 00007 00008 #include <lestes/intercode/intercode.g.hh> 00009 00010 package(lestes); 00011 package(intercode); 00012 00013 00014 // ------------- Class intercode follows. ------------- 00015 00016 /*! 00017 This factory method for class intercode takes values of all fields as arguments. 00018 \author lsg 00019 */ 00020 ptr< intercode > intercode::create() 00021 { 00022 return ptr< intercode > ( new intercode() ); 00023 } 00024 00025 /*! 00026 Generated constructor for class intercode. 00027 \author lsg 00028 */ 00029 intercode::intercode () 00030 : object() 00031 {} 00032 00033 ptr< object::reflection_list > intercode::reflection_get() const 00034 { 00035 if (!reflection) { 00036 typedef class_reflection::field_metadata md; 00037 typedef class_reflection::field_metadata_list mdlist; 00038 ptr<mdlist> mdl = mdlist::create(); 00039 reflection = reflection_list::create( ::lestes::std::object::reflection_get() ); 00040 reflection->push_back( class_reflection::create( "intercode", mdl ) ); 00041 } 00042 return reflection; 00043 } 00044 00045 ptr< object::field_list_list > intercode::field_values_get() const 00046 { 00047 ptr < field_list_list > result = ::lestes::std::object::field_values_get(); 00048 return result; 00049 } 00050 00051 00052 /*! 00053 Marking routine is used for garbage collection. 00054 \author lsg 00055 */ 00056 void intercode::gc_mark() 00057 { 00058 ::lestes::std::object::gc_mark(); 00059 } 00060 00061 // End of class intercode. 00062 00063 // ------------- Class as_base follows. ------------- 00064 00065 /*! 00066 \returns The value of as_base::location. 00067 \author lsg 00068 */ 00069 ptr< ::lestes::std::source_location > as_base::location_get() const 00070 { 00071 return location; 00072 } 00073 00074 /*! 00075 \param[in] x The new value to set as_base::location to. 00076 \author lsg 00077 */ 00078 void as_base::location_set(const ptr< ::lestes::std::source_location > & x) 00079 { 00080 as_base::location = x; 00081 } 00082 00083 /*! 00084 Generated constructor for class as_base. 00085 \author lsg 00086 */ 00087 as_base::as_base (ptr< ::lestes::std::source_location > a__as_base__location) 00088 : intercode(), location(checked(a__as_base__location)) 00089 {} 00090 00091 ptr< object::reflection_list > as_base::reflection_get() const 00092 { 00093 if (!reflection) { 00094 typedef class_reflection::field_metadata md; 00095 typedef class_reflection::field_metadata_list mdlist; 00096 ptr<mdlist> mdl = mdlist::create(); 00097 mdl->push_back( md::create( "location", "source_location" ) ); 00098 reflection = reflection_list::create( intercode::reflection_get() ); 00099 reflection->push_back( class_reflection::create( "as_base", mdl ) ); 00100 } 00101 return reflection; 00102 } 00103 00104 ptr< object::field_list_list > as_base::field_values_get() const 00105 { 00106 ptr < field_list_list > result = intercode::field_values_get(); 00107 result->push_back( value_list::create() ); 00108 result->back()->push_back( this->location ); 00109 return result; 00110 } 00111 00112 00113 /*! 00114 Marking routine is used for garbage collection. 00115 \author lsg 00116 */ 00117 void as_base::gc_mark() 00118 { 00119 intercode::gc_mark(); 00120 } 00121 00122 // End of class as_base. 00123 00124 // ------------- Class ss_base follows. ------------- 00125 00126 /*! 00127 Generated constructor for class ss_base. 00128 \author lsg 00129 */ 00130 ss_base::ss_base () 00131 : intercode() 00132 {} 00133 00134 ptr< object::reflection_list > ss_base::reflection_get() const 00135 { 00136 if (!reflection) { 00137 typedef class_reflection::field_metadata md; 00138 typedef class_reflection::field_metadata_list mdlist; 00139 ptr<mdlist> mdl = mdlist::create(); 00140 reflection = reflection_list::create( intercode::reflection_get() ); 00141 reflection->push_back( class_reflection::create( "ss_base", mdl ) ); 00142 } 00143 return reflection; 00144 } 00145 00146 ptr< object::field_list_list > ss_base::field_values_get() const 00147 { 00148 ptr < field_list_list > result = intercode::field_values_get(); 00149 return result; 00150 } 00151 00152 00153 /*! 00154 Marking routine is used for garbage collection. 00155 \author lsg 00156 */ 00157 void ss_base::gc_mark() 00158 { 00159 intercode::gc_mark(); 00160 } 00161 00162 // End of class ss_base. 00163 00164 // ------------- Class ss_base_with_location follows. ------------- 00165 00166 /*! 00167 \returns The value of ss_base_with_location::location. 00168 \author lsg 00169 */ 00170 ptr< ::lestes::std::source_location > ss_base_with_location::location_get() const 00171 { 00172 return location; 00173 } 00174 00175 /*! 00176 \param[in] x The new value to set ss_base_with_location::location to. 00177 \author lsg 00178 */ 00179 void ss_base_with_location::location_set(const ptr< ::lestes::std::source_location > & x) 00180 { 00181 ss_base_with_location::location = x; 00182 } 00183 00184 /*! 00185 Generated constructor for class ss_base_with_location. 00186 \author lsg 00187 */ 00188 ss_base_with_location::ss_base_with_location (ptr< ::lestes::std::source_location > a__ss_base_with_location__location) 00189 : ss_base(), location(checked(a__ss_base_with_location__location)) 00190 {} 00191 00192 ptr< object::reflection_list > ss_base_with_location::reflection_get() const 00193 { 00194 if (!reflection) { 00195 typedef class_reflection::field_metadata md; 00196 typedef class_reflection::field_metadata_list mdlist; 00197 ptr<mdlist> mdl = mdlist::create(); 00198 mdl->push_back( md::create( "location", "source_location" ) ); 00199 reflection = reflection_list::create( ss_base::reflection_get() ); 00200 reflection->push_back( class_reflection::create( "ss_base_with_location", mdl ) ); 00201 } 00202 return reflection; 00203 } 00204 00205 ptr< object::field_list_list > ss_base_with_location::field_values_get() const 00206 { 00207 ptr < field_list_list > result = ss_base::field_values_get(); 00208 result->push_back( value_list::create() ); 00209 result->back()->push_back( this->location ); 00210 return result; 00211 } 00212 00213 00214 /*! 00215 Marking routine is used for garbage collection. 00216 \author lsg 00217 */ 00218 void ss_base_with_location::gc_mark() 00219 { 00220 ss_base::gc_mark(); 00221 } 00222 00223 // End of class ss_base_with_location. 00224 00225 // ------------- Class pi_base follows. ------------- 00226 00227 /*! 00228 Generated constructor for class pi_base. 00229 \author lsg 00230 */ 00231 pi_base::pi_base () 00232 : intercode() 00233 {} 00234 00235 ptr< object::reflection_list > pi_base::reflection_get() const 00236 { 00237 if (!reflection) { 00238 typedef class_reflection::field_metadata md; 00239 typedef class_reflection::field_metadata_list mdlist; 00240 ptr<mdlist> mdl = mdlist::create(); 00241 reflection = reflection_list::create( intercode::reflection_get() ); 00242 reflection->push_back( class_reflection::create( "pi_base", mdl ) ); 00243 } 00244 return reflection; 00245 } 00246 00247 ptr< object::field_list_list > pi_base::field_values_get() const 00248 { 00249 ptr < field_list_list > result = intercode::field_values_get(); 00250 return result; 00251 } 00252 00253 00254 /*! 00255 Marking routine is used for garbage collection. 00256 \author lsg 00257 */ 00258 void pi_base::gc_mark() 00259 { 00260 intercode::gc_mark(); 00261 } 00262 00263 // End of class pi_base. 00264 00265 00266 // static data members follow 00267 ptr<object::reflection_list> intercode::reflection = reflection; 00268 ptr<object::reflection_list> as_base::reflection = reflection; 00269 ptr<object::reflection_list> ss_base::reflection = reflection; 00270 ptr<object::reflection_list> ss_base_with_location::reflection = reflection; 00271 ptr<object::reflection_list> pi_base::reflection = reflection; 00272 00273 end_package(intercode); 00274 end_package(lestes); 00275
1.5.1-20070107