lestes::lang::cplus::sem::ss_switch_stmt Class Reference

Class for switch block. More...

#include <ss_statement.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::std::list<
srp< ss_case_label > > > 
case_labels_get () const
 The method case_labels_get returns the value of the field ss_switch_stmt::case_labels.
void case_labels_set (const ptr< ::lestes::std::list< srp< ss_case_label > > > &)
 The method case_labels_set sets the field ss_switch_stmt::case_labels to the given value.
ptr< ss_default_labeldefault_label_get () const
 The method default_label_get returns the value of the field ss_switch_stmt::default_label.
void default_label_set (const ptr< ss_default_label > &)
 The method default_label_set sets the field ss_switch_stmt::default_label 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_switch_stmtcreate (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_breakable_stmt__body, ptr< ss_expression > a__ss_breakable_stmt__condition, ptr< ::lestes::std::list< srp< ss_case_label > > > a__ss_switch_stmt__case_labels, ptr< ss_default_label > a__ss_switch_stmt__default_label)
 First generated factory method for class ss_switch_stmt.

Protected Member Functions

 ss_switch_stmt (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_breakable_stmt__body, ptr< ss_expression > a__ss_breakable_stmt__condition, ptr< ::lestes::std::list< srp< ss_case_label > > > a__ss_switch_stmt__case_labels, ptr< ss_default_label > a__ss_switch_stmt__default_label)
 Generated constructor for class ss_switch_stmt.
virtual void gc_mark ()
 Marking routine for class ss_switch_stmt.

Private Attributes

srp< ::lestes::std::list<
srp< ss_case_label > > > 
case_labels
 All switch branches, except for default.
srp< ss_default_labeldefault_label

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for switch block.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_switch_stmt::ss_switch_stmt ( 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_breakable_stmt__body,
ptr< ss_expression a__ss_breakable_stmt__condition,
ptr< ::lestes::std::list< srp< ss_case_label > > >  a__ss_switch_stmt__case_labels,
ptr< ss_default_label a__ss_switch_stmt__default_label 
) [protected]

Generated constructor for class ss_switch_stmt.

Generated constructor for class ss_switch_stmt.

Author:
lsg


Member Function Documentation

ptr<::lestes::std::list< srp< ss_case_label > > > lestes::lang::cplus::sem::ss_switch_stmt::case_labels_get (  )  const

The method case_labels_get returns the value of the field ss_switch_stmt::case_labels.

Returns:
The value of ss_switch_stmt::case_labels.
Author:
lsg

void lestes::lang::cplus::sem::ss_switch_stmt::case_labels_set ( const ptr< ::lestes::std::list< srp< ss_case_label > > > &  x  ) 

The method case_labels_set sets the field ss_switch_stmt::case_labels to the given value.

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

ptr< ss_default_label > lestes::lang::cplus::sem::ss_switch_stmt::default_label_get (  )  const

The method default_label_get returns the value of the field ss_switch_stmt::default_label.

Returns:
The value of ss_switch_stmt::default_label.
Author:
lsg

void lestes::lang::cplus::sem::ss_switch_stmt::default_label_set ( const ptr< ss_default_label > &  x  ) 

The method default_label_set sets the field ss_switch_stmt::default_label to the given value.

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

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

Implements lestes::lang::cplus::sem::ss_breakable_stmt.

ptr< ss_switch_stmt > lestes::lang::cplus::sem::ss_switch_stmt::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_breakable_stmt__body,
ptr< ss_expression a__ss_breakable_stmt__condition,
ptr< ::lestes::std::list< srp< ss_case_label > > >  a__ss_switch_stmt__case_labels,
ptr< ss_default_label a__ss_switch_stmt__default_label 
) [static]

First generated factory method for class ss_switch_stmt.

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

Author:
lsg

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

for purposes of dumping

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

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

for purposes of dumping

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

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

Marking routine for class ss_switch_stmt.

Marking routine is used for garbage collection.

Author:
lsg

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


Member Data Documentation

srp< ::lestes::std::list< srp< ss_case_label > > > lestes::lang::cplus::sem::ss_switch_stmt::case_labels [private]

All switch branches, except for default.

srp< ss_default_label > lestes::lang::cplus::sem::ss_switch_stmt::default_label [private]

This is the target of case denominated by the keyword "default" in this switch statement break encountered in the program area (which amounts to some nested function block-scopes) "governed by" this ss_breakable_stmt.

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

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


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