lestes::lang::cplus::sem::ss_id_label Class Reference

Class for label associated with identifier (from goto). More...

#include <ss_misc.g.hh>

Inheritance diagram for lestes::lang::cplus::sem::ss_id_label:

lestes::lang::cplus::sem::ss_label lestes::intercode::ss_base_with_location lestes::intercode::ss_base lestes::intercode::intercode lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ucn_string name_get () const
 The method name_get returns the value of the field ss_id_label::name.
void name_set (ucn_string)
 The method name_set sets the field ss_id_label::name to the given value.
ptr< ss_function_declarationfunction_get () const
 The method function_get returns the value of the field ss_id_label::function.
void function_set (const ptr< ss_function_declaration > &)
 The method function_set sets the field ss_id_label::function to the given value.
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Static Public Member Functions

static ptr< ss_id_labelcreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ucn_string a__ss_id_label__name, ptr< ss_function_declaration > a__ss_id_label__function)
 First generated factory method for class ss_id_label.

Protected Member Functions

 ss_id_label (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ucn_string a__ss_id_label__name, ptr< ss_function_declaration > a__ss_id_label__function)
 Generated constructor for class ss_id_label.
virtual void gc_mark ()
 Marking routine for class ss_id_label.

Private Attributes

ucn_string name
srp< ss_function_declarationfunction
 Reference to function containing this label.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for label associated with identifier (from goto).

Definition at line 534 of file ss_misc.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_id_label::ss_id_label ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ucn_string  a__ss_id_label__name,
ptr< ss_function_declaration a__ss_id_label__function 
) [protected]

Generated constructor for class ss_id_label.

Generated constructor for class ss_id_label.

Author:
lsg

Definition at line 863 of file ss_misc.g.cc.

Referenced by create().

00866         : ss_label(a__ss_base_with_location__location), name(a__ss_id_label__name), function(checked(a__ss_id_label__function))
00867 {}


Member Function Documentation

ucn_string lestes::lang::cplus::sem::ss_id_label::name_get ( void   )  const

The method name_get returns the value of the field ss_id_label::name.

Returns:
The value of ss_id_label::name.
Author:
lsg

Definition at line 814 of file ss_misc.g.cc.

References name.

00815 {
00816         return name;
00817 }

void lestes::lang::cplus::sem::ss_id_label::name_set ( ucn_string  x  ) 

The method name_set sets the field ss_id_label::name to the given value.

Parameters:
[in] x The new value to set ss_id_label::name to.
Author:
lsg

Definition at line 823 of file ss_misc.g.cc.

References name.

00824 {
00825         ss_id_label::name = x;
00826 }

ptr< ss_function_declaration > lestes::lang::cplus::sem::ss_id_label::function_get (  )  const

The method function_get returns the value of the field ss_id_label::function.

Returns:
The value of ss_id_label::function.
Author:
lsg

Definition at line 832 of file ss_misc.g.cc.

References function.

00833 {
00834         return function;
00835 }

void lestes::lang::cplus::sem::ss_id_label::function_set ( const ptr< ss_function_declaration > &  x  ) 

The method function_set sets the field ss_id_label::function to the given value.

Parameters:
[in] x The new value to set ss_id_label::function to.
Author:
lsg

Definition at line 841 of file ss_misc.g.cc.

References function.

00842 {
00843         ss_id_label::function = x;
00844 }

ptr< ss_id_label > lestes::lang::cplus::sem::ss_id_label::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ucn_string  a__ss_id_label__name,
ptr< ss_function_declaration a__ss_id_label__function 
) [static]

First generated factory method for class ss_id_label.

This factory method for class ss_id_label takes values of all fields as arguments.

Author:
lsg

Definition at line 850 of file ss_misc.g.cc.

References ss_id_label().

00853 {
00854         return ptr< ss_id_label > ( new ss_id_label(a__ss_base_with_location__location,
00855                 a__ss_id_label__name,
00856                 a__ss_id_label__function) );
00857 }

ptr< object::reflection_list > lestes::lang::cplus::sem::ss_id_label::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::ss_label.

Definition at line 869 of file ss_misc.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::lang::cplus::sem::ss_label::reflection_get().

00870 {
00871         if (!reflection) {
00872                 typedef class_reflection::field_metadata md;
00873                 typedef class_reflection::field_metadata_list mdlist;
00874                 ptr<mdlist> mdl = mdlist::create();
00875                 mdl->push_back( md::create( "name", "ucn_string" ) );
00876                 mdl->push_back( md::create( "function", "ss_function_declaration" ) );
00877                 reflection = reflection_list::create( ss_label::reflection_get() );
00878                 reflection->push_back( class_reflection::create( "ss_id_label", mdl ) );
00879         }
00880         return reflection;
00881 }

ptr< object::field_list_list > lestes::lang::cplus::sem::ss_id_label::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::ss_label.

Definition at line 883 of file ss_misc.g.cc.

References lestes::std::list< T >::create(), and lestes::lang::cplus::sem::ss_label::field_values_get().

00884 {
00885         ptr < field_list_list > result = ss_label::field_values_get();
00886         result->push_back( value_list::create() );
00887         result->back()->push_back( objectize< ucn_string > ::create( this->name ) );
00888         result->push_back( value_list::create() );
00889         result->back()->push_back( this->function );
00890         return result;
00891 }

void lestes::lang::cplus::sem::ss_id_label::gc_mark ( void   )  [protected, virtual]

Marking routine for class ss_id_label.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::lang::cplus::sem::ss_label.

Definition at line 898 of file ss_misc.g.cc.

References lestes::lang::cplus::sem::ss_label::gc_mark().

00899 {
00900         ss_label::gc_mark();
00901 }


Member Data Documentation

ucn_string lestes::lang::cplus::sem::ss_id_label::name [private]

Definition at line 573 of file ss_misc.g.hh.

Referenced by name_get(), and name_set().

srp< ss_function_declaration > lestes::lang::cplus::sem::ss_id_label::function [private]

Reference to function containing this label.

Definition at line 575 of file ss_misc.g.hh.

Referenced by function_get(), and function_set().

ptr< object::reflection_list > lestes::lang::cplus::sem::ss_id_label::reflection = reflection [static, private]

Reimplemented from lestes::lang::cplus::sem::ss_label.

Definition at line 576 of file ss_misc.g.hh.

Referenced by reflection_get().


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:25:25 2007 for lestes by doxygen 1.5.1-20070107