lestes::lang::cplus::sem::as_enumerator_definition Class Reference

#include <as_decl.g.hh>

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

lestes::intercode::as_base lestes::intercode::intercode lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< as_identifierenumerator_get () const
 The method enumerator_get returns the value of the field as_enumerator_definition::enumerator.
void enumerator_set (const ptr< as_identifier > &)
 The method enumerator_set sets the field as_enumerator_definition::enumerator to the given value.
ptr< as_constant_expressionvalue_get () const
 The method value_get returns the value of the field as_enumerator_definition::value.
void value_set (const ptr< as_constant_expression > &)
 The method value_set sets the field as_enumerator_definition::value 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< as_enumerator_definitioncreate (ptr< ::lestes::std::source_location > a__as_base__location, ptr< as_identifier > a__as_enumerator_definition__enumerator, ptr< as_constant_expression > a__as_enumerator_definition__value)
 First generated factory method for class as_enumerator_definition.

Protected Member Functions

 as_enumerator_definition (ptr< ::lestes::std::source_location > a__as_base__location, ptr< as_identifier > a__as_enumerator_definition__enumerator, ptr< as_constant_expression > a__as_enumerator_definition__value)
 Generated constructor for class as_enumerator_definition.
virtual void gc_mark ()
 Marking routine for class as_enumerator_definition.

Private Attributes

srp< as_identifierenumerator
srp< as_constant_expressionvalue

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Definition at line 1963 of file as_decl.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::as_enumerator_definition::as_enumerator_definition ( ptr< ::lestes::std::source_location a__as_base__location,
ptr< as_identifier a__as_enumerator_definition__enumerator,
ptr< as_constant_expression a__as_enumerator_definition__value 
) [protected]

Generated constructor for class as_enumerator_definition.

Generated constructor for class as_enumerator_definition.

Author:
lsg

Definition at line 3595 of file as_decl.g.cc.

Referenced by create().

03598         : as_base(a__as_base__location), enumerator(checked(a__as_enumerator_definition__enumerator)), value(checked(a__as_enumerator_definition__value))
03599 {}


Member Function Documentation

ptr< as_identifier > lestes::lang::cplus::sem::as_enumerator_definition::enumerator_get (  )  const

The method enumerator_get returns the value of the field as_enumerator_definition::enumerator.

Returns:
The value of as_enumerator_definition::enumerator.
Author:
lsg

Definition at line 3546 of file as_decl.g.cc.

References enumerator.

03547 {
03548         return enumerator;
03549 }

void lestes::lang::cplus::sem::as_enumerator_definition::enumerator_set ( const ptr< as_identifier > &  x  ) 

The method enumerator_set sets the field as_enumerator_definition::enumerator to the given value.

Parameters:
[in] x The new value to set as_enumerator_definition::enumerator to.
Author:
lsg

Definition at line 3555 of file as_decl.g.cc.

References enumerator.

03556 {
03557         as_enumerator_definition::enumerator = x;
03558 }

ptr< as_constant_expression > lestes::lang::cplus::sem::as_enumerator_definition::value_get ( void   )  const

The method value_get returns the value of the field as_enumerator_definition::value.

Returns:
The value of as_enumerator_definition::value.
Author:
lsg

Definition at line 3564 of file as_decl.g.cc.

References value.

03565 {
03566         return value;
03567 }

void lestes::lang::cplus::sem::as_enumerator_definition::value_set ( const ptr< as_constant_expression > &  x  ) 

The method value_set sets the field as_enumerator_definition::value to the given value.

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

Definition at line 3573 of file as_decl.g.cc.

References value.

03574 {
03575         as_enumerator_definition::value = x;
03576 }

ptr< as_enumerator_definition > lestes::lang::cplus::sem::as_enumerator_definition::create ( ptr< ::lestes::std::source_location a__as_base__location,
ptr< as_identifier a__as_enumerator_definition__enumerator,
ptr< as_constant_expression a__as_enumerator_definition__value 
) [static]

First generated factory method for class as_enumerator_definition.

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

Author:
lsg

Definition at line 3582 of file as_decl.g.cc.

References as_enumerator_definition().

03585 {
03586         return ptr< as_enumerator_definition > ( new as_enumerator_definition(a__as_base__location,
03587                 a__as_enumerator_definition__enumerator,
03588                 a__as_enumerator_definition__value) );
03589 }

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

for purposes of dumping

Reimplemented from lestes::intercode::as_base.

Definition at line 3601 of file as_decl.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::intercode::as_base::reflection_get().

03602 {
03603         if (!reflection) {
03604                 typedef class_reflection::field_metadata md;
03605                 typedef class_reflection::field_metadata_list mdlist;
03606                 ptr<mdlist> mdl = mdlist::create();
03607                 mdl->push_back( md::create( "enumerator", "as_identifier" ) );
03608                 mdl->push_back( md::create( "value", "as_constant_expression" ) );
03609                 reflection = reflection_list::create( ::lestes::intercode::as_base::reflection_get() );
03610                 reflection->push_back( class_reflection::create( "as_enumerator_definition", mdl ) );
03611         }
03612         return reflection;
03613 }

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

for purposes of dumping

Reimplemented from lestes::intercode::as_base.

Definition at line 3615 of file as_decl.g.cc.

References lestes::std::list< T >::create(), and lestes::intercode::as_base::field_values_get().

03616 {
03617         ptr < field_list_list > result = ::lestes::intercode::as_base::field_values_get();
03618         result->push_back( value_list::create() );
03619         result->back()->push_back( this->enumerator );
03620         result->push_back( value_list::create() );
03621         result->back()->push_back( this->value );
03622         return result;
03623 }

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

Marking routine for class as_enumerator_definition.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::intercode::as_base.

Definition at line 3630 of file as_decl.g.cc.

References lestes::intercode::as_base::gc_mark().


Member Data Documentation

srp< as_identifier > lestes::lang::cplus::sem::as_enumerator_definition::enumerator [private]

Definition at line 2002 of file as_decl.g.hh.

Referenced by enumerator_get(), and enumerator_set().

srp< as_constant_expression > lestes::lang::cplus::sem::as_enumerator_definition::value [private]

Definition at line 2003 of file as_decl.g.hh.

Referenced by value_get(), and value_set().

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

Reimplemented from lestes::intercode::as_base.

Definition at line 2004 of file as_decl.g.hh.

Referenced by reflection_get().


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