lestes::lang::cplus::sem::as_for_statement Class Reference

#include <as_statements.g.hh>

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

lestes::lang::cplus::sem::as_iteration_statement lestes::lang::cplus::sem::as_statement lestes::intercode::as_base lestes::intercode::intercode lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< as_for_init_statementfor_init_get () const
 The method for_init_get returns the value of the field as_for_statement::for_init.
void for_init_set (const ptr< as_for_init_statement > &)
 The method for_init_set sets the field as_for_statement::for_init to the given value.
ptr< as_conditioncondition_get () const
 The method condition_get returns the value of the field as_for_statement::condition.
void condition_set (const ptr< as_condition > &)
 The method condition_set sets the field as_for_statement::condition to the given value.
ptr< as_expressionincrement_get () const
 The method increment_get returns the value of the field as_for_statement::increment.
void increment_set (const ptr< as_expression > &)
 The method increment_set sets the field as_for_statement::increment to the given value.
virtual void accept_as_statement_visitor (ptr< as_statement_visitor > v)
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_for_statementcreate (ptr< ::lestes::std::source_location > a__as_base__location, ptr< as_statement > a__as_iteration_statement__controlled_statement, ptr< as_for_init_statement > a__as_for_statement__for_init, ptr< as_condition > a__as_for_statement__condition, ptr< as_expression > a__as_for_statement__increment)
 First generated factory method for class as_for_statement.

Protected Member Functions

 as_for_statement (ptr< ::lestes::std::source_location > a__as_base__location, ptr< as_statement > a__as_iteration_statement__controlled_statement, ptr< as_for_init_statement > a__as_for_statement__for_init, ptr< as_condition > a__as_for_statement__condition, ptr< as_expression > a__as_for_statement__increment)
 Generated constructor for class as_for_statement.
virtual void gc_mark ()
 Marking routine for class as_for_statement.

Private Attributes

srp< as_for_init_statementfor_init
srp< as_conditioncondition
srp< as_expressionincrement

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Definition at line 567 of file as_statements.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::as_for_statement::as_for_statement ( ptr< ::lestes::std::source_location a__as_base__location,
ptr< as_statement a__as_iteration_statement__controlled_statement,
ptr< as_for_init_statement a__as_for_statement__for_init,
ptr< as_condition a__as_for_statement__condition,
ptr< as_expression a__as_for_statement__increment 
) [protected]

Generated constructor for class as_for_statement.

Generated constructor for class as_for_statement.

Author:
lsg

Definition at line 1111 of file as_statements.g.cc.

Referenced by create().

01116         : as_iteration_statement(a__as_base__location,
01117                 a__as_iteration_statement__controlled_statement), for_init(checked(a__as_for_statement__for_init)), condition(checked(a__as_for_statement__condition)), increment(checked(a__as_for_statement__increment))
01118 {}


Member Function Documentation

ptr< as_for_init_statement > lestes::lang::cplus::sem::as_for_statement::for_init_get (  )  const

The method for_init_get returns the value of the field as_for_statement::for_init.

Returns:
The value of as_for_statement::for_init.
Author:
lsg

Definition at line 1035 of file as_statements.g.cc.

References for_init.

01036 {
01037         return for_init;
01038 }

void lestes::lang::cplus::sem::as_for_statement::for_init_set ( const ptr< as_for_init_statement > &  x  ) 

The method for_init_set sets the field as_for_statement::for_init to the given value.

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

Definition at line 1044 of file as_statements.g.cc.

References for_init.

01045 {
01046         as_for_statement::for_init = x;
01047 }

ptr< as_condition > lestes::lang::cplus::sem::as_for_statement::condition_get (  )  const

The method condition_get returns the value of the field as_for_statement::condition.

Returns:
The value of as_for_statement::condition.
Author:
lsg

Definition at line 1053 of file as_statements.g.cc.

References condition.

01054 {
01055         return condition;
01056 }

void lestes::lang::cplus::sem::as_for_statement::condition_set ( const ptr< as_condition > &  x  ) 

The method condition_set sets the field as_for_statement::condition to the given value.

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

Definition at line 1062 of file as_statements.g.cc.

References condition.

01063 {
01064         as_for_statement::condition = x;
01065 }

ptr< as_expression > lestes::lang::cplus::sem::as_for_statement::increment_get (  )  const

The method increment_get returns the value of the field as_for_statement::increment.

Returns:
The value of as_for_statement::increment.
Author:
lsg

Definition at line 1071 of file as_statements.g.cc.

References increment.

01072 {
01073         return increment;
01074 }

void lestes::lang::cplus::sem::as_for_statement::increment_set ( const ptr< as_expression > &  x  ) 

The method increment_set sets the field as_for_statement::increment to the given value.

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

Definition at line 1080 of file as_statements.g.cc.

References increment.

01081 {
01082         as_for_statement::increment = x;
01083 }

void lestes::lang::cplus::sem::as_for_statement::accept_as_statement_visitor ( ptr< as_statement_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::as_iteration_statement.

Definition at line 1085 of file as_statements.g.cc.

01086 {
01087         return v->visit_as_for_statement( this );
01088 }

ptr< as_for_statement > lestes::lang::cplus::sem::as_for_statement::create ( ptr< ::lestes::std::source_location a__as_base__location,
ptr< as_statement a__as_iteration_statement__controlled_statement,
ptr< as_for_init_statement a__as_for_statement__for_init,
ptr< as_condition a__as_for_statement__condition,
ptr< as_expression a__as_for_statement__increment 
) [static]

First generated factory method for class as_for_statement.

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

Author:
lsg

Definition at line 1094 of file as_statements.g.cc.

References as_for_statement().

01099 {
01100         return ptr< as_for_statement > ( new as_for_statement(a__as_base__location,
01101                 a__as_iteration_statement__controlled_statement,
01102                 a__as_for_statement__for_init,
01103                 a__as_for_statement__condition,
01104                 a__as_for_statement__increment) );
01105 }

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

for purposes of dumping

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

Definition at line 1120 of file as_statements.g.cc.

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

01121 {
01122         if (!reflection) {
01123                 typedef class_reflection::field_metadata md;
01124                 typedef class_reflection::field_metadata_list mdlist;
01125                 ptr<mdlist> mdl = mdlist::create();
01126                 mdl->push_back( md::create( "for_init", "as_for_init_statement" ) );
01127                 mdl->push_back( md::create( "condition", "as_condition" ) );
01128                 mdl->push_back( md::create( "increment", "as_expression" ) );
01129                 reflection = reflection_list::create( as_iteration_statement::reflection_get() );
01130                 reflection->push_back( class_reflection::create( "as_for_statement", mdl ) );
01131         }
01132         return reflection;
01133 }

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

for purposes of dumping

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

Definition at line 1135 of file as_statements.g.cc.

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

01136 {
01137         ptr < field_list_list > result = as_iteration_statement::field_values_get();
01138         result->push_back( value_list::create() );
01139         result->back()->push_back( this->for_init );
01140         result->push_back( value_list::create() );
01141         result->back()->push_back( this->condition );
01142         result->push_back( value_list::create() );
01143         result->back()->push_back( this->increment );
01144         return result;
01145 }

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

Marking routine for class as_for_statement.

Marking routine is used for garbage collection.

Author:
lsg

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

Definition at line 1152 of file as_statements.g.cc.

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

01153 {
01154         as_iteration_statement::gc_mark();
01155 }


Member Data Documentation

srp< as_for_init_statement > lestes::lang::cplus::sem::as_for_statement::for_init [private]

Definition at line 617 of file as_statements.g.hh.

Referenced by for_init_get(), and for_init_set().

srp< as_condition > lestes::lang::cplus::sem::as_for_statement::condition [private]

Definition at line 618 of file as_statements.g.hh.

Referenced by condition_get(), and condition_set().

srp< as_expression > lestes::lang::cplus::sem::as_for_statement::increment [private]

Definition at line 619 of file as_statements.g.hh.

Referenced by increment_get(), and increment_set().

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

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

Definition at line 620 of file as_statements.g.hh.

Referenced by reflection_get().


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