lestes::md::mem::local_variable_allocator_base Class Reference

Manager for local variable allocation. More...

#include <memory_allocator_bases.g.hh>

Inheritance diagram for lestes::md::mem::local_variable_allocator_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::lang::cplus::sem::ss_function_declarationfunction_get () const
 The method function_get returns the value of the field local_variable_allocator_base::function.
void function_set (const ptr< ::lestes::lang::cplus::sem::ss_function_declaration > &)
 The method function_set sets the field local_variable_allocator_base::function to the given value.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryallocate (ptr< ::lestes::lang::cplus::sem::ss_object_declaration > decl) override
 Allocates space for variable on the local stack.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryallocate_tmp (ptr< ::lestes::md::types::tm_data_type_base > type) override
 Allocates space for variable on the local stack.
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) override
 Deallocates space occupied by variable.
virtual void calculate_placement () override
 Calculates placement of local variables and parameters in memory.
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Protected Member Functions

 local_variable_allocator_base (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > a__local_variable_allocator_base__function)
 Generated constructor for class local_variable_allocator_base.
virtual void gc_mark ()
 Marking routine for class local_variable_allocator_base.

Private Attributes

srp< ::lestes::lang::cplus::sem::ss_function_declarationfunction
 Declaration of the function in which's body the allocation is performed.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Manager for local variable allocation.

Note: A concrete implementation is target machine-dependent and it is placed in /target/machine/${TARGET_CPU}/lestes/md/memory/ directory.


Constructor & Destructor Documentation

lestes::md::mem::local_variable_allocator_base::local_variable_allocator_base ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration a__local_variable_allocator_base__function  )  [protected]

Generated constructor for class local_variable_allocator_base.

Generated constructor for class local_variable_allocator_base.

Author:
lsg


Member Function Documentation

ptr<::lestes::lang::cplus::sem::ss_function_declaration > lestes::md::mem::local_variable_allocator_base::function_get (  )  const

The method function_get returns the value of the field local_variable_allocator_base::function.

Returns:
The value of local_variable_allocator_base::function.
Author:
lsg

void lestes::md::mem::local_variable_allocator_base::function_set ( const ptr< ::lestes::lang::cplus::sem::ss_function_declaration > &  x  ) 

The method function_set sets the field local_variable_allocator_base::function to the given value.

Parameters:
[in] x The new value to set local_variable_allocator_base::function to.
Author:
lsg

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

Allocates space for variable on the local stack.

Implemented in lestes::md::mem::local_variable_allocator.

virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::mem::local_variable_allocator_base::allocate_tmp ( ptr< ::lestes::md::types::tm_data_type_base type  )  [pure virtual]

Allocates space for variable on the local stack.

Implemented in lestes::md::mem::local_variable_allocator.

virtual void lestes::md::mem::local_variable_allocator_base::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 
) [pure virtual]

Deallocates space occupied by variable.

Implements lestes::md::mem::allocator_base.

Implemented in lestes::md::mem::local_variable_allocator.

virtual void lestes::md::mem::local_variable_allocator_base::calculate_placement (  )  [pure virtual]

Calculates placement of local variables and parameters in memory.

Implements lestes::md::mem::allocator_base.

Implemented in lestes::md::mem::local_variable_allocator.

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

for purposes of dumping

Reimplemented from lestes::md::mem::allocator_base.

Reimplemented in lestes::md::mem::local_variable_allocator.

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

for purposes of dumping

Reimplemented from lestes::md::mem::allocator_base.

Reimplemented in lestes::md::mem::local_variable_allocator.

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

Marking routine for class local_variable_allocator_base.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::md::mem::allocator_base.

Reimplemented in lestes::md::mem::local_variable_allocator.


Member Data Documentation

srp< ::lestes::lang::cplus::sem::ss_function_declaration > lestes::md::mem::local_variable_allocator_base::function [private]

Declaration of the function in which's body the allocation is performed.

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

Reimplemented from lestes::md::mem::allocator_base.

Reimplemented in lestes::md::mem::local_variable_allocator.


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