lestes::backend_v2::interface::backend_data_builder Class Reference

Interface for passing intercode structures representing translation unit to backend. More...

#include <backend_data_builder.g.hh>

Inheritance diagram for lestes::backend_v2::interface::backend_data_builder:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::std::vector<
srp< builder_func_data > > > 
functions_get () const
 The method functions_get returns the value of the field backend_data_builder::functions.
void functions_set (const ptr< ::lestes::std::vector< srp< builder_func_data > > > &)
 The method functions_set sets the field backend_data_builder::functions to the given value.
ptr< builder_func_datacurrent_function_body_get () const
 The method current_function_body_get returns the value of the field backend_data_builder::current_function_body.
void current_function_body_set (const ptr< builder_func_data > &)
 The method current_function_body_set sets the field backend_data_builder::current_function_body to the given value.
ptr< lestes::std::vector<
srp< ::lestes::backend_v2::interface::builder_func_data > > > 
get_result ()
 Returns builder's result.
void add_pi (ptr< ::lestes::backend_v2::intercode::pi_pi > pi)
 Adds a pseudoinstruction to the currently built function's body.
void add_pis (ptr< lestes::std::list< srp< ::lestes::backend_v2::intercode::pi_pi > > > pis)
 Adds a list of pseudoinstructions to the currently built function's body.
void add_sp (ptr< ::lestes::backend_v2::intercode::pi_sp > sp)
 Adds a sequencepoint to the currently built function's body.
void add_function_start (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > function)
 Initiates processing of another function's body.
void add_function_end ()
 Finishes processing of the current function's body.
void add_rail ()
 Finishes processing of particular sematic structure.
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< backend_data_buildersingleton_instance_get ()
 The method singleton_instance_get returns the value of the field backend_data_builder::singleton_instance.
static void singleton_instance_set (const ptr< backend_data_builder > &)
 The method singleton_instance_set sets the field backend_data_builder::singleton_instance to the given value.
static ptr< backend_data_builderinstance ()
 Returns instance of builder.
static ptr< backend_data_buildercreate (ptr< ::lestes::std::vector< srp< builder_func_data > > > a__backend_data_builder__functions, ptr< builder_func_data > a__backend_data_builder__current_function_body)
 First generated factory method for class backend_data_builder.
static ptr< backend_data_buildercreate ()
 Second generated factory method for class backend_data_builder.

Protected Member Functions

 backend_data_builder (ptr< ::lestes::std::vector< srp< builder_func_data > > > a__backend_data_builder__functions, ptr< builder_func_data > a__backend_data_builder__current_function_body)
 Generated constructor for class backend_data_builder.
virtual void gc_mark ()
 Marking routine for class backend_data_builder.

Private Attributes

srp< ::lestes::std::vector<
srp< builder_func_data > > > 
functions
 Bodies of the functions composing single translation unit.
srp< builder_func_datacurrent_function_body

Static Private Attributes

static ptr< backend_data_buildersingleton_instance = NULL
static ptr< reflection_listreflection = reflection

Detailed Description

Interface for passing intercode structures representing translation unit to backend.


Constructor & Destructor Documentation

lestes::backend_v2::interface::backend_data_builder::backend_data_builder ( ptr< ::lestes::std::vector< srp< builder_func_data > > >  a__backend_data_builder__functions,
ptr< builder_func_data a__backend_data_builder__current_function_body 
) [protected]

Generated constructor for class backend_data_builder.

Generated constructor for class backend_data_builder.

Author:
lsg


Member Function Documentation

ptr< backend_data_builder > lestes::backend_v2::interface::backend_data_builder::singleton_instance_get (  )  [static]

The method singleton_instance_get returns the value of the field backend_data_builder::singleton_instance.

Returns:
The value of backend_data_builder::singleton_instance.
Author:
lsg

void lestes::backend_v2::interface::backend_data_builder::singleton_instance_set ( const ptr< backend_data_builder > &  x  )  [static]

The method singleton_instance_set sets the field backend_data_builder::singleton_instance to the given value.

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

ptr<::lestes::std::vector< srp< builder_func_data > > > lestes::backend_v2::interface::backend_data_builder::functions_get (  )  const

The method functions_get returns the value of the field backend_data_builder::functions.

Returns:
The value of backend_data_builder::functions.
Author:
lsg

void lestes::backend_v2::interface::backend_data_builder::functions_set ( const ptr< ::lestes::std::vector< srp< builder_func_data > > > &  x  ) 

The method functions_set sets the field backend_data_builder::functions to the given value.

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

ptr< builder_func_data > lestes::backend_v2::interface::backend_data_builder::current_function_body_get (  )  const

The method current_function_body_get returns the value of the field backend_data_builder::current_function_body.

Returns:
The value of backend_data_builder::current_function_body.
Author:
lsg

void lestes::backend_v2::interface::backend_data_builder::current_function_body_set ( const ptr< builder_func_data > &  x  ) 

The method current_function_body_set sets the field backend_data_builder::current_function_body to the given value.

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

ptr< backend_data_builder > lestes::backend_v2::interface::backend_data_builder::instance (  )  [static]

Returns instance of builder.

ptr< builder_func_data__vector > lestes::backend_v2::interface::backend_data_builder::get_result (  ) 

Returns builder's result.

void lestes::backend_v2::interface::backend_data_builder::add_pi ( ptr< ::lestes::backend_v2::intercode::pi_pi pi  ) 

Adds a pseudoinstruction to the currently built function's body.

void lestes::backend_v2::interface::backend_data_builder::add_pis ( ptr< lestes::std::list< srp< ::lestes::backend_v2::intercode::pi_pi > > >  pis  ) 

Adds a list of pseudoinstructions to the currently built function's body.

void lestes::backend_v2::interface::backend_data_builder::add_sp ( ptr< ::lestes::backend_v2::intercode::pi_sp sp  ) 

Adds a sequencepoint to the currently built function's body.

void lestes::backend_v2::interface::backend_data_builder::add_function_start ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration function  ) 

Initiates processing of another function's body.

void lestes::backend_v2::interface::backend_data_builder::add_function_end (  ) 

Finishes processing of the current function's body.

void lestes::backend_v2::interface::backend_data_builder::add_rail (  ) 

Finishes processing of particular sematic structure.

For debuging purposes.

ptr< backend_data_builder > lestes::backend_v2::interface::backend_data_builder::create ( ptr< ::lestes::std::vector< srp< builder_func_data > > >  a__backend_data_builder__functions,
ptr< builder_func_data a__backend_data_builder__current_function_body 
) [static]

First generated factory method for class backend_data_builder.

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

Author:
lsg

ptr< backend_data_builder > lestes::backend_v2::interface::backend_data_builder::create (  )  [static]

Second generated factory method for class backend_data_builder.

This factory method for class backend_data_builder uses initializers.

Author:
lsg

ptr< object::reflection_list > lestes::backend_v2::interface::backend_data_builder::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

ptr< object::field_list_list > lestes::backend_v2::interface::backend_data_builder::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

void lestes::backend_v2::interface::backend_data_builder::gc_mark ( void   )  [protected, virtual]

Marking routine for class backend_data_builder.

Marking routine is used for garbage collection.

Author:
lsg

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


Member Data Documentation

ptr< backend_data_builder > lestes::backend_v2::interface::backend_data_builder::singleton_instance = NULL [static, private]

srp< ::lestes::std::vector< srp< builder_func_data > > > lestes::backend_v2::interface::backend_data_builder::functions [private]

Bodies of the functions composing single translation unit.

srp< builder_func_data > lestes::backend_v2::interface::backend_data_builder::current_function_body [private]

ptr< object::reflection_list > lestes::backend_v2::interface::backend_data_builder::reflection = reflection [static, private]

Reimplemented from lestes::std::object.


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