lestes::lang::cplus::sem::ss_try Class Reference

Class for try-block. More...

#include <ss_statement.g.hh>

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

lestes::lang::cplus::sem::ss_statement 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

ptr< ss_compound_stmtblock_get () const
 The method block_get returns the value of the field ss_try::block.
void block_set (const ptr< ss_compound_stmt > &)
 The method block_set sets the field ss_try::block to the given value.
ptr< ::lestes::std::list<
srp< ss_catch > > > 
handlers_get () const
 The method handlers_get returns the value of the field ss_try::handlers.
void handlers_set (const ptr< ::lestes::std::list< srp< ss_catch > > > &)
 The method handlers_set sets the field ss_try::handlers to the given value.
virtual void accept_ss_statement_visitor (ptr< ss_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< ss_trycreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ::lestes::std::list< srp< ss_label > > > a__ss_statement__labels, ptr< ss_compound_stmt > a__ss_statement__parent, ptr< ss_sp > a__ss_statement__psp, ptr< ss_sp > a__ss_statement__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__ss_statement__sequence_points, ptr< ss_compound_stmt > a__ss_try__block, ptr< ::lestes::std::list< srp< ss_catch > > > a__ss_try__handlers)
 First generated factory method for class ss_try.

Protected Member Functions

 ss_try (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ::lestes::std::list< srp< ss_label > > > a__ss_statement__labels, ptr< ss_compound_stmt > a__ss_statement__parent, ptr< ss_sp > a__ss_statement__psp, ptr< ss_sp > a__ss_statement__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__ss_statement__sequence_points, ptr< ss_compound_stmt > a__ss_try__block, ptr< ::lestes::std::list< srp< ss_catch > > > a__ss_try__handlers)
 Generated constructor for class ss_try.
virtual void gc_mark ()
 Marking routine for class ss_try.

Private Attributes

srp< ss_compound_stmtblock
srp< ::lestes::std::list<
srp< ss_catch > > > 
handlers

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for try-block.

Definition at line 313 of file ss_statement.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_try::ss_try ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ::lestes::std::list< srp< ss_label > > >  a__ss_statement__labels,
ptr< ss_compound_stmt a__ss_statement__parent,
ptr< ss_sp a__ss_statement__psp,
ptr< ss_sp a__ss_statement__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__ss_statement__sequence_points,
ptr< ss_compound_stmt a__ss_try__block,
ptr< ::lestes::std::list< srp< ss_catch > > >  a__ss_try__handlers 
) [protected]

Generated constructor for class ss_try.

Generated constructor for class ss_try.

Author:
lsg

Definition at line 542 of file ss_statement.g.cc.

Referenced by create().

00550         : ss_statement(a__ss_base_with_location__location,
00551                 a__ss_statement__labels,
00552                 a__ss_statement__parent,
00553                 a__ss_statement__psp,
00554                 a__ss_statement__nsp,
00555                 a__ss_statement__sequence_points), block(checked(a__ss_try__block)), handlers(checked(a__ss_try__handlers))
00556 {}


Member Function Documentation

ptr< ss_compound_stmt > lestes::lang::cplus::sem::ss_try::block_get (  )  const

The method block_get returns the value of the field ss_try::block.

Returns:
The value of ss_try::block.
Author:
lsg

Definition at line 478 of file ss_statement.g.cc.

References block.

00479 {
00480         return block;
00481 }

void lestes::lang::cplus::sem::ss_try::block_set ( const ptr< ss_compound_stmt > &  x  ) 

The method block_set sets the field ss_try::block to the given value.

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

Definition at line 487 of file ss_statement.g.cc.

References block.

00488 {
00489         ss_try::block = x;
00490 }

ptr<::lestes::std::list< srp< ss_catch > > > lestes::lang::cplus::sem::ss_try::handlers_get (  )  const

The method handlers_get returns the value of the field ss_try::handlers.

Returns:
The value of ss_try::handlers.
Author:
lsg

Definition at line 496 of file ss_statement.g.cc.

References handlers.

00497 {
00498         return handlers;
00499 }

void lestes::lang::cplus::sem::ss_try::handlers_set ( const ptr< ::lestes::std::list< srp< ss_catch > > > &  x  ) 

The method handlers_set sets the field ss_try::handlers to the given value.

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

Definition at line 505 of file ss_statement.g.cc.

References handlers.

00506 {
00507         ss_try::handlers = x;
00508 }

void lestes::lang::cplus::sem::ss_try::accept_ss_statement_visitor ( ptr< ss_statement_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_statement.

Definition at line 510 of file ss_statement.g.cc.

00511 {
00512         return v->visit_ss_try( this );
00513 }

ptr< ss_try > lestes::lang::cplus::sem::ss_try::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ::lestes::std::list< srp< ss_label > > >  a__ss_statement__labels,
ptr< ss_compound_stmt a__ss_statement__parent,
ptr< ss_sp a__ss_statement__psp,
ptr< ss_sp a__ss_statement__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__ss_statement__sequence_points,
ptr< ss_compound_stmt a__ss_try__block,
ptr< ::lestes::std::list< srp< ss_catch > > >  a__ss_try__handlers 
) [static]

First generated factory method for class ss_try.

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

Author:
lsg

Definition at line 519 of file ss_statement.g.cc.

References ss_try().

00527 {
00528         return ptr< ss_try > ( new ss_try(a__ss_base_with_location__location,
00529                 a__ss_statement__labels,
00530                 a__ss_statement__parent,
00531                 a__ss_statement__psp,
00532                 a__ss_statement__nsp,
00533                 a__ss_statement__sequence_points,
00534                 a__ss_try__block,
00535                 a__ss_try__handlers) );
00536 }

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

for purposes of dumping

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

Definition at line 558 of file ss_statement.g.cc.

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

00559 {
00560         if (!reflection) {
00561                 typedef class_reflection::field_metadata md;
00562                 typedef class_reflection::field_metadata_list mdlist;
00563                 ptr<mdlist> mdl = mdlist::create();
00564                 mdl->push_back( md::create( "block", "ss_compound_stmt" ) );
00565                 mdl->push_back( md::create( "handlers", "list&lt; srp&lt; ss_catch &gt; &gt;" ) );
00566                 reflection = reflection_list::create( ss_statement::reflection_get() );
00567                 reflection->push_back( class_reflection::create( "ss_try", mdl ) );
00568         }
00569         return reflection;
00570 }

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

for purposes of dumping

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

Definition at line 572 of file ss_statement.g.cc.

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

00573 {
00574         ptr < field_list_list > result = ss_statement::field_values_get();
00575         result->push_back( value_list::create() );
00576         result->back()->push_back( this->block );
00577         result->push_back( value_list::create() );
00578         result->back()->push_back( this->handlers );
00579         return result;
00580 }

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

Marking routine for class ss_try.

Marking routine is used for garbage collection.

Author:
lsg

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

Definition at line 587 of file ss_statement.g.cc.

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

00588 {
00589         ss_statement::gc_mark();
00590 }


Member Data Documentation

srp< ss_compound_stmt > lestes::lang::cplus::sem::ss_try::block [private]

Definition at line 363 of file ss_statement.g.hh.

Referenced by block_get(), and block_set().

srp< ::lestes::std::list< srp< ss_catch > > > lestes::lang::cplus::sem::ss_try::handlers [private]

Definition at line 364 of file ss_statement.g.hh.

Referenced by handlers_get(), and handlers_set().

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

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

Definition at line 365 of file ss_statement.g.hh.

Referenced by reflection_get().


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