lestes::md::literals::literal_loader Class Reference

#include <literal_loader.g.hh>

Inheritance diagram for lestes::md::literals::literal_loader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::std::map< srp<
::lestes::backend_v2::intercode::pi_lit >,
ulint > > 
managed_literals_get () const
 The method managed_literals_get returns the value of the field literal_loader::managed_literals.
void managed_literals_set (const ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > > &)
 The method managed_literals_set sets the field literal_loader::managed_literals to the given value.
virtual ptr< list< srp<
::lestes::backend_v2::intercode::pi_pi > > > 
generate_load (ptr< ::lestes::backend_v2::intercode::pi_preg > preg, ptr< ::lestes::backend_v2::intercode::pi_lit > lit, ptr< ::lestes::backend_v2::intercode::pi_sp > psp, ptr< ::lestes::backend_v2::intercode::pi_sp > nsp)
 Generates list of pseudoinstructions that loads literal to a pseudoregister.
void emit_global_declarations (::std::ostream &output)
 Emits declarations for managed literals to a stream.
bool is_managed (ptr< ::lestes::backend_v2::intercode::pi_lit > lit)
 Tells whether a literal is managed.
lstring get_id_for_managed_literal (ptr< ::lestes::backend_v2::intercode::pi_lit > lit)
 Returns id of managed literal.
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< literal_loadersingleton_instance_get ()
 The method singleton_instance_get returns the value of the field literal_loader::singleton_instance.
static void singleton_instance_set (const ptr< literal_loader > &)
 The method singleton_instance_set sets the field literal_loader::singleton_instance to the given value.
static ptr< literal_loaderinstance ()
 Returns instance.
static ptr< literal_loadercreate (ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > > a__literal_loader__managed_literals)
 First generated factory method for class literal_loader.
static ptr< literal_loadercreate ()
 Second generated factory method for class literal_loader.

Protected Member Functions

 literal_loader (ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > > a__literal_loader__managed_literals)
 Generated constructor for class literal_loader.
virtual void gc_mark ()
 Marking routine for class literal_loader.

Private Attributes

srp< ::lestes::std::map< srp<
::lestes::backend_v2::intercode::pi_lit >,
ulint > > 
managed_literals
 Registered literals.

Static Private Attributes

static ptr< literal_loadersingleton_instance = NULL
static ptr< reflection_listreflection = reflection

Constructor & Destructor Documentation

lestes::md::literals::literal_loader::literal_loader ( ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > >  a__literal_loader__managed_literals  )  [protected]

Generated constructor for class literal_loader.

Generated constructor for class literal_loader.

Author:
lsg


Member Function Documentation

ptr<::lestes::std::map< srp<::lestes::backend_v2::intercode::pi_lit >, ulint > > lestes::md::literals::literal_loader::managed_literals_get (  )  const

The method managed_literals_get returns the value of the field literal_loader::managed_literals.

Returns:
The value of literal_loader::managed_literals.
Author:
lsg

void lestes::md::literals::literal_loader::managed_literals_set ( const ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > > &  x  ) 

The method managed_literals_set sets the field literal_loader::managed_literals to the given value.

Parameters:
[in] x The new value to set literal_loader::managed_literals to.
Author:
lsg

ptr< literal_loader > lestes::md::literals::literal_loader::singleton_instance_get (  )  [static]

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

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

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

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

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

virtual ptr<list<srp< ::lestes::backend_v2::intercode::pi_pi> > > lestes::md::literals::literal_loader::generate_load ( ptr< ::lestes::backend_v2::intercode::pi_preg preg,
ptr< ::lestes::backend_v2::intercode::pi_lit lit,
ptr< ::lestes::backend_v2::intercode::pi_sp psp,
ptr< ::lestes::backend_v2::intercode::pi_sp nsp 
) [virtual]

Generates list of pseudoinstructions that loads literal to a pseudoregister.

Implements lestes::md::literals::literal_loader_base.

void lestes::md::literals::literal_loader::emit_global_declarations ( ::std::ostream &  output  ) 

Emits declarations for managed literals to a stream.

Parameters:
output The stream.

bool lestes::md::literals::literal_loader::is_managed ( ptr< ::lestes::backend_v2::intercode::pi_lit lit  ) 

Tells whether a literal is managed.

lstring lestes::md::literals::literal_loader::get_id_for_managed_literal ( ptr< ::lestes::backend_v2::intercode::pi_lit lit  ) 

Returns id of managed literal.

ptr< literal_loader > lestes::md::literals::literal_loader::instance (  )  [static]

Returns instance.

ptr< literal_loader > lestes::md::literals::literal_loader::create ( ptr< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > >  a__literal_loader__managed_literals  )  [static]

First generated factory method for class literal_loader.

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

Author:
lsg

ptr< literal_loader > lestes::md::literals::literal_loader::create ( void   )  [static]

Second generated factory method for class literal_loader.

This factory method for class literal_loader uses initializers.

Author:
lsg

ptr< object::reflection_list > lestes::md::literals::literal_loader::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::literals::literal_loader_base.

ptr< object::field_list_list > lestes::md::literals::literal_loader::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::literals::literal_loader_base.

void lestes::md::literals::literal_loader::gc_mark ( void   )  [protected, virtual]

Marking routine for class literal_loader.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::md::literals::literal_loader_base.


Member Data Documentation

srp< ::lestes::std::map< srp< ::lestes::backend_v2::intercode::pi_lit >, ulint > > lestes::md::literals::literal_loader::managed_literals [private]

Registered literals.

ptr< literal_loader > lestes::md::literals::literal_loader::singleton_instance = NULL [static, private]

ptr< object::reflection_list > lestes::md::literals::literal_loader::reflection = reflection [static, private]

Reimplemented from lestes::md::literals::literal_loader_base.


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