as_id_to_lstring.g.cc

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

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