lestes::md::mem::global_variable_allocator Class Reference

Manager for global variable allocation. More...

#include <memory_allocators.g.hh>

Inheritance diagram for lestes::md::mem::global_variable_allocator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::std::map< srp<
::lestes::lang::cplus::sem::ss_object_declaration >,
srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > 
variables_get () const
 The method variables_get returns the value of the field global_variable_allocator::variables.
void variables_set (const ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > &)
 The method variables_set sets the field global_variable_allocator::variables to the given value.
ptr< ::lestes::std::map< srp<
::lestes::backend_v2::intercode::pi_mem_factory >,
srp< ::lestes::md::literals::literal_info_base > > > 
values_get () const
 The method values_get returns the value of the field global_variable_allocator::values.
void values_set (const ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > > &)
 The method values_set sets the field global_variable_allocator::values to the given value.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryallocate (ptr< ::lestes::lang::cplus::sem::ss_object_declaration > decl)
 Allocates space for variable in global data storage.
virtual void init_variable (ptr< ::lestes::backend_v2::intercode::pi_mem_factory > mem, ptr< ::lestes::md::literals::literal_info_base > value)
 Initialiaze memory space in global data storage with given value.
virtual void deallocate (ptr< ::lestes::backend_v2::intercode::pi_mem_factory > mem, ptr< ::lestes::backend_v2::intercode::pi_sp > psp, ptr< ::lestes::backend_v2::intercode::pi_sp > nsp)
 Deallocates space for variable.
void emit_asm_declarations_for_initialized (::std::ostream &output)
 Generates asm declarations for initialized global variables.
void emit_asm_declarations_for_uninitialized (::std::ostream &output)
 Generates asm declarations for uninitialized global variables.
virtual void calculate_placement ()
 Calculates placement of allocated variables in memory.
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< global_variable_allocatorsingleton_instance_get ()
 The method singleton_instance_get returns the value of the field global_variable_allocator::singleton_instance.
static void singleton_instance_set (const ptr< global_variable_allocator > &)
 The method singleton_instance_set sets the field global_variable_allocator::singleton_instance to the given value.
static ptr< global_variable_allocatorinstance ()
static ptr< global_variable_allocatorcreate (ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > a__global_variable_allocator__variables, ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > > a__global_variable_allocator__values)
 First generated factory method for class global_variable_allocator.
static ptr< global_variable_allocatorcreate ()
 Second generated factory method for class global_variable_allocator.

Protected Member Functions

 global_variable_allocator (ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > a__global_variable_allocator__variables, ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > > a__global_variable_allocator__values)
 Generated constructor for class global_variable_allocator.
virtual void gc_mark ()
 Marking routine for class global_variable_allocator.

Private Attributes

srp< ::lestes::std::map< srp<
::lestes::lang::cplus::sem::ss_object_declaration >,
srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > 
variables
 Global variables that has benn alocated by the allocator.
srp< ::lestes::std::map< srp<
::lestes::backend_v2::intercode::pi_mem_factory >,
srp< ::lestes::md::literals::literal_info_base > > > 
values
 Initial values for initialized global variables.

Static Private Attributes

static ptr< global_variable_allocatorsingleton_instance = singleton_instance
static ptr< reflection_listreflection = reflection

Detailed Description

Manager for global variable allocation.


Constructor & Destructor Documentation

lestes::md::mem::global_variable_allocator::global_variable_allocator ( ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > >  a__global_variable_allocator__variables,
ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > >  a__global_variable_allocator__values 
) [protected]

Generated constructor for class global_variable_allocator.

Generated constructor for class global_variable_allocator.

Author:
lsg


Member Function Documentation

ptr< global_variable_allocator > lestes::md::mem::global_variable_allocator::singleton_instance_get (  )  [static]

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

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

void lestes::md::mem::global_variable_allocator::singleton_instance_set ( const ptr< global_variable_allocator > &  x  )  [static]

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

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

ptr<::lestes::std::map< srp<::lestes::lang::cplus::sem::ss_object_declaration >, srp<::lestes::backend_v2::intercode::pi_mf_decl > > > lestes::md::mem::global_variable_allocator::variables_get (  )  const

The method variables_get returns the value of the field global_variable_allocator::variables.

Returns:
The value of global_variable_allocator::variables.
Author:
lsg

void lestes::md::mem::global_variable_allocator::variables_set ( const ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > &  x  ) 

The method variables_set sets the field global_variable_allocator::variables to the given value.

Parameters:
[in] x The new value to set global_variable_allocator::variables to.
Author:
lsg

ptr<::lestes::std::map< srp<::lestes::backend_v2::intercode::pi_mem_factory >, srp<::lestes::md::literals::literal_info_base > > > lestes::md::mem::global_variable_allocator::values_get (  )  const

The method values_get returns the value of the field global_variable_allocator::values.

Returns:
The value of global_variable_allocator::values.
Author:
lsg

void lestes::md::mem::global_variable_allocator::values_set ( const ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > > &  x  ) 

The method values_set sets the field global_variable_allocator::values to the given value.

Parameters:
[in] x The new value to set global_variable_allocator::values to.
Author:
lsg

virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::mem::global_variable_allocator::allocate ( ptr< ::lestes::lang::cplus::sem::ss_object_declaration decl  )  [virtual]

Allocates space for variable in global data storage.

Implements lestes::md::mem::global_variable_allocator_base.

virtual void lestes::md::mem::global_variable_allocator::init_variable ( ptr< ::lestes::backend_v2::intercode::pi_mem_factory mem,
ptr< ::lestes::md::literals::literal_info_base value 
) [virtual]

Initialiaze memory space in global data storage with given value.

Implements lestes::md::mem::global_variable_allocator_base.

virtual void lestes::md::mem::global_variable_allocator::deallocate ( ptr< ::lestes::backend_v2::intercode::pi_mem_factory mem,
ptr< ::lestes::backend_v2::intercode::pi_sp psp,
ptr< ::lestes::backend_v2::intercode::pi_sp nsp 
) [virtual]

Deallocates space for variable.

Implements lestes::md::mem::global_variable_allocator_base.

void lestes::md::mem::global_variable_allocator::emit_asm_declarations_for_initialized ( ::std::ostream &  output  ) 

Generates asm declarations for initialized global variables.

Parameters:
output Output stream.

void lestes::md::mem::global_variable_allocator::emit_asm_declarations_for_uninitialized ( ::std::ostream &  output  ) 

Generates asm declarations for uninitialized global variables.

Parameters:
output Output stream.

void lestes::md::mem::global_variable_allocator::calculate_placement (  )  [virtual]

Calculates placement of allocated variables in memory.

Implements lestes::md::mem::global_variable_allocator_base.

ptr< global_variable_allocator > lestes::md::mem::global_variable_allocator::instance (  )  [static]

ptr< global_variable_allocator > lestes::md::mem::global_variable_allocator::create ( ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > >  a__global_variable_allocator__variables,
ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > >  a__global_variable_allocator__values 
) [static]

First generated factory method for class global_variable_allocator.

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

Author:
lsg

ptr< global_variable_allocator > lestes::md::mem::global_variable_allocator::create ( void   )  [static]

Second generated factory method for class global_variable_allocator.

This factory method for class global_variable_allocator uses initializers.

Author:
lsg

ptr< object::reflection_list > lestes::md::mem::global_variable_allocator::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::mem::global_variable_allocator_base.

ptr< object::field_list_list > lestes::md::mem::global_variable_allocator::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::mem::global_variable_allocator_base.

void lestes::md::mem::global_variable_allocator::gc_mark ( void   )  [protected, virtual]

Marking routine for class global_variable_allocator.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::md::mem::global_variable_allocator_base.


Member Data Documentation

ptr< global_variable_allocator > lestes::md::mem::global_variable_allocator::singleton_instance = singleton_instance [static, private]

srp< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_object_declaration >, srp< ::lestes::backend_v2::intercode::pi_mf_decl > > > lestes::md::mem::global_variable_allocator::variables [private]

Global variables that has benn alocated by the allocator.

srp< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_mem_factory >, srp< ::lestes::md::literals::literal_info_base > > > lestes::md::mem::global_variable_allocator::values [private]

Initial values for initialized global variables.

ptr< object::reflection_list > lestes::md::mem::global_variable_allocator::reflection = reflection [static, private]

Reimplemented from lestes::md::mem::global_variable_allocator_base.


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