lestes::md::mem::global_variable_allocator_base Class Reference

Manager for global variable allocation. More...

#include <memory_allocator_bases.g.hh>

Inheritance diagram for lestes::md::mem::global_variable_allocator_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryallocate (ptr< ::lestes::lang::cplus::sem::ss_object_declaration > decl) override
 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) override
 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) 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

 global_variable_allocator_base ()
 Generated constructor for class global_variable_allocator_base.
virtual void gc_mark ()
 Marking routine for class global_variable_allocator_base.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Manager for global 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::global_variable_allocator_base::global_variable_allocator_base (  )  [protected]

Generated constructor for class global_variable_allocator_base.

Generated constructor for class global_variable_allocator_base.

Author:
lsg


Member Function Documentation

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

Allocates space for variable in global data storage.

Implemented in lestes::md::mem::global_variable_allocator.

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

Initialiaze memory space in global data storage with given value.

Implemented in lestes::md::mem::global_variable_allocator.

virtual void lestes::md::mem::global_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::global_variable_allocator.

virtual void lestes::md::mem::global_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::global_variable_allocator.

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

for purposes of dumping

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

Reimplemented in lestes::md::mem::global_variable_allocator.

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

for purposes of dumping

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

Reimplemented in lestes::md::mem::global_variable_allocator.

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

Marking routine for class global_variable_allocator_base.

Marking routine is used for garbage collection.

Author:
lsg

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

Reimplemented in lestes::md::mem::global_variable_allocator.


Member Data Documentation

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

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

Reimplemented in lestes::md::mem::global_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