lestes::lang::cplus::sem::sa_statements Class Reference

Main visitor for statements SA. More...

#include <sa_statements.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ss_function_declarationcurrent_function_get () const
 The method current_function_get returns the value of the field sa_statements::current_function.
void current_function_set (const ptr< ss_function_declaration > &)
 The method current_function_set sets the field sa_statements::current_function to the given value.
ptr< ss_declarationlast_declaration_get () const
 The method last_declaration_get returns the value of the field sa_statements::last_declaration.
void last_declaration_set (const ptr< ss_declaration > &)
 The method last_declaration_set sets the field sa_statements::last_declaration to the given value.
void declarator_simple (ptr< ::lestes::std::source_location > loc)
void declarator_init (ptr< ::lestes::std::source_location > loc, ptr< as_initializer_clause > inizer)
void declarator_ctor (ptr< ::lestes::std::source_location > loc, ptr< as_expression_list > inizer)
void enter_function (ptr< ::lestes::std::source_location > loc, ptr< as_function_definition > as_func)
 Create new function scope, switch context into it.
void leave_function ()
 Leave function created using enter_function.
void enter_scope (ptr< ::lestes::std::source_location > loc)
 Create new ss_compound_stmt with all the stuff and switch context into it.
void leave_scope ()
 Leave scope created using enter_scope.
void insert_fake_declaration (ptr< ss_declaration > decl)
 Given declaration should have a fake in current scope.
void expression_stmt (ptr< as_expression > as)
 Make ss_expr_stmt from as_expression_statement.
void return_stmt (ptr< as_return_statement > as)
 Make ss_return from as_return_statement.
void if_head (ptr< ::lestes::std::source_location > loc, ptr< as_condition > cond)
void while_head (ptr< ::lestes::std::source_location > loc, ptr< as_condition > cond)
void for_head (ptr< ::lestes::std::source_location > loc, ptr< as_condition > cond, ptr< as_expression > iter)
void for_inner_action (ptr< ::lestes::std::source_location > loc)
void condition_decl (ptr< ::lestes::std::source_location > loc, ptr< as_expression > inizer)
void enter_subcompound (ptr< ss_compound_stmt > scope)
 Switch context into given subscope and optionally insert a fake declaration.
void enter_else ()
ptr< ss_compound_stmtnew_compound (ptr< ::lestes::std::source_location > loc)
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< sa_statementsinstance ()
 Generated instance() method for singleton class sa_statements.

Protected Member Functions

 sa_statements (ptr< ss_function_declaration > a__sa_statements__current_function, ptr< ss_declaration > a__sa_statements__last_declaration)
 Generated constructor for class sa_statements.
virtual void gc_mark ()
 Marking routine for class sa_statements.

Private Attributes

srp< ss_function_declarationcurrent_function
srp< ss_declarationlast_declaration

Static Private Attributes

static ptr< reflection_listreflection = reflection
static ptr< sa_statementsthe_instance = the_instance

Detailed Description

Main visitor for statements SA.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::sa_statements::sa_statements ( ptr< ss_function_declaration a__sa_statements__current_function,
ptr< ss_declaration a__sa_statements__last_declaration 
) [protected]

Generated constructor for class sa_statements.

Generated constructor for class sa_statements.

Author:
lsg


Member Function Documentation

ptr< ss_function_declaration > lestes::lang::cplus::sem::sa_statements::current_function_get (  )  const

The method current_function_get returns the value of the field sa_statements::current_function.

Returns:
The value of sa_statements::current_function.
Author:
lsg

void lestes::lang::cplus::sem::sa_statements::current_function_set ( const ptr< ss_function_declaration > &  x  ) 

The method current_function_set sets the field sa_statements::current_function to the given value.

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

ptr< ss_declaration > lestes::lang::cplus::sem::sa_statements::last_declaration_get (  )  const

The method last_declaration_get returns the value of the field sa_statements::last_declaration.

Returns:
The value of sa_statements::last_declaration.
Author:
lsg

void lestes::lang::cplus::sem::sa_statements::last_declaration_set ( const ptr< ss_declaration > &  x  ) 

The method last_declaration_set sets the field sa_statements::last_declaration to the given value.

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

void lestes::lang::cplus::sem::sa_statements::declarator_simple ( ptr< ::lestes::std::source_location loc  ) 

void lestes::lang::cplus::sem::sa_statements::declarator_init ( ptr< ::lestes::std::source_location loc,
ptr< as_initializer_clause inizer 
)

void lestes::lang::cplus::sem::sa_statements::declarator_ctor ( ptr< ::lestes::std::source_location loc,
ptr< as_expression_list inizer 
)

void lestes::lang::cplus::sem::sa_statements::enter_function ( ptr< ::lestes::std::source_location loc,
ptr< as_function_definition as_func 
)

Create new function scope, switch context into it.

void lestes::lang::cplus::sem::sa_statements::leave_function (  ) 

Leave function created using enter_function.

void lestes::lang::cplus::sem::sa_statements::enter_scope ( ptr< ::lestes::std::source_location loc  ) 

Create new ss_compound_stmt with all the stuff and switch context into it.

void lestes::lang::cplus::sem::sa_statements::leave_scope (  ) 

Leave scope created using enter_scope.

void lestes::lang::cplus::sem::sa_statements::insert_fake_declaration ( ptr< ss_declaration decl  ) 

Given declaration should have a fake in current scope.

void lestes::lang::cplus::sem::sa_statements::expression_stmt ( ptr< as_expression as  ) 

Make ss_expr_stmt from as_expression_statement.

void lestes::lang::cplus::sem::sa_statements::return_stmt ( ptr< as_return_statement as  ) 

Make ss_return from as_return_statement.

void lestes::lang::cplus::sem::sa_statements::if_head ( ptr< ::lestes::std::source_location loc,
ptr< as_condition cond 
)

void lestes::lang::cplus::sem::sa_statements::while_head ( ptr< ::lestes::std::source_location loc,
ptr< as_condition cond 
)

void lestes::lang::cplus::sem::sa_statements::for_head ( ptr< ::lestes::std::source_location loc,
ptr< as_condition cond,
ptr< as_expression iter 
)

void lestes::lang::cplus::sem::sa_statements::for_inner_action ( ptr< ::lestes::std::source_location loc  ) 

void lestes::lang::cplus::sem::sa_statements::condition_decl ( ptr< ::lestes::std::source_location loc,
ptr< as_expression inizer 
)

void lestes::lang::cplus::sem::sa_statements::enter_subcompound ( ptr< ss_compound_stmt scope  ) 

Switch context into given subscope and optionally insert a fake declaration.

void lestes::lang::cplus::sem::sa_statements::enter_else (  ) 

ptr< ss_compound_stmt > lestes::lang::cplus::sem::sa_statements::new_compound ( ptr< ::lestes::std::source_location loc  ) 

ptr< sa_statements > lestes::lang::cplus::sem::sa_statements::instance (  )  [static]

Generated instance() method for singleton class sa_statements.

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

for purposes of dumping

Reimplemented from lestes::std::object.

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

for purposes of dumping

Reimplemented from lestes::std::object.

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

Marking routine for class sa_statements.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::std::mem::keystone.


Member Data Documentation

srp< ss_function_declaration > lestes::lang::cplus::sem::sa_statements::current_function [private]

srp< ss_declaration > lestes::lang::cplus::sem::sa_statements::last_declaration [private]

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

Reimplemented from lestes::std::object.

ptr< sa_statements > lestes::lang::cplus::sem::sa_statements::the_instance = the_instance [static, private]


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