lestes::md::functions::function_parameter_accessor Class Reference

Interface used for accessing function's parameters within the function. More...

#include <function_parameter_accessor.g.hh>

Inheritance diagram for lestes::md::functions::function_parameter_accessor:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::backend_v2::intercode::pi_mem_factorythis_par_get () const
 The method this_par_get returns the value of the field function_parameter_accessor::this_par.
void this_par_set (const ptr< ::lestes::backend_v2::intercode::pi_mem_factory > &)
 The method this_par_set sets the field function_parameter_accessor::this_par to the given value.
ptr< ::lestes::backend_v2::intercode::pi_mem_factoryret_val_par_get () const
 The method ret_val_par_get returns the value of the field function_parameter_accessor::ret_val_par.
void ret_val_par_set (const ptr< ::lestes::backend_v2::intercode::pi_mem_factory > &)
 The method ret_val_par_set sets the field function_parameter_accessor::ret_val_par to the given value.
t_ptrdiff this_end_offset_get () const
 The method this_end_offset_get returns the value of the field function_parameter_accessor::this_end_offset.
void this_end_offset_set (t_ptrdiff)
 The method this_end_offset_set sets the field function_parameter_accessor::this_end_offset to the given value.
t_ptrdiff ret_val_end_offset_get () const
 The method ret_val_end_offset_get returns the value of the field function_parameter_accessor::ret_val_end_offset.
void ret_val_end_offset_set (t_ptrdiff)
 The method ret_val_end_offset_set sets the field function_parameter_accessor::ret_val_end_offset to the given value.
ptr< ::lestes::std::map< ulint,
srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > 
params_get () const
 The method params_get returns the value of the field function_parameter_accessor::params.
void params_set (const ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > &)
 The method params_set sets the field function_parameter_accessor::params to the given value.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryget_parameter (ulint index)
 Gets parameter with given index.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryget_this ()
 Gets secret "this" parameter.
virtual ptr< ::lestes::backend_v2::intercode::pi_mem_factoryget_ret_val ()
 Gets secret parameter with pointer to space for returning value from the function.
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< ::lestes::std::map<
srp< ::lestes::lang::cplus::sem::ss_function_declaration >,
srp< function_parameter_accessor > > > 
singleton_instances_get ()
 The method singleton_instances_get returns the value of the field function_parameter_accessor::singleton_instances.
static void singleton_instances_set (const ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > > &)
 The method singleton_instances_set sets the field function_parameter_accessor::singleton_instances to the given value.
static ptr< function_parameter_accessorinstance (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > function)
static ptr< function_parameter_accessorcreate (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > a__function_parameter_accessor_base__function, ptr< ::lestes::backend_v2::intercode::pi_mem_factory > a__function_parameter_accessor__this_par, ptr< ::lestes::backend_v2::intercode::pi_mem_factory > a__function_parameter_accessor__ret_val_par, t_ptrdiff a__function_parameter_accessor__this_end_offset, t_ptrdiff a__function_parameter_accessor__ret_val_end_offset, ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > a__function_parameter_accessor__params)
 First generated factory method for class function_parameter_accessor.
static ptr< function_parameter_accessorcreate (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > a__function_parameter_accessor_base__function)
 Second generated factory method for class function_parameter_accessor.

Protected Member Functions

 function_parameter_accessor (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > a__function_parameter_accessor_base__function, ptr< ::lestes::backend_v2::intercode::pi_mem_factory > a__function_parameter_accessor__this_par, ptr< ::lestes::backend_v2::intercode::pi_mem_factory > a__function_parameter_accessor__ret_val_par, t_ptrdiff a__function_parameter_accessor__this_end_offset, t_ptrdiff a__function_parameter_accessor__ret_val_end_offset, ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > a__function_parameter_accessor__params)
 Generated constructor for class function_parameter_accessor.
virtual void gc_mark ()
 Marking routine for class function_parameter_accessor.

Private Attributes

srp< ::lestes::backend_v2::intercode::pi_mem_factorythis_par
 "this" parameter.
srp< ::lestes::backend_v2::intercode::pi_mem_factoryret_val_par
 Secret parameter with pointer to space for returning value from the function.
t_ptrdiff this_end_offset
 Stack offset where "this" parameter ends.
t_ptrdiff ret_val_end_offset
 Stack offset where ret_val parameter ends.
srp< ::lestes::std::map< ulint,
srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > 
params
 Mapping from parameter index to parameter.

Static Private Attributes

static ptr< ::lestes::std::map<
srp< ::lestes::lang::cplus::sem::ss_function_declaration >,
srp< function_parameter_accessor > > > 
singleton_instances = ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > ::create()
static ptr< reflection_listreflection = reflection

Detailed Description

Interface used for accessing function's parameters within the function.


Constructor & Destructor Documentation

lestes::md::functions::function_parameter_accessor::function_parameter_accessor ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration a__function_parameter_accessor_base__function,
ptr< ::lestes::backend_v2::intercode::pi_mem_factory a__function_parameter_accessor__this_par,
ptr< ::lestes::backend_v2::intercode::pi_mem_factory a__function_parameter_accessor__ret_val_par,
t_ptrdiff  a__function_parameter_accessor__this_end_offset,
t_ptrdiff  a__function_parameter_accessor__ret_val_end_offset,
ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > >  a__function_parameter_accessor__params 
) [protected]

Generated constructor for class function_parameter_accessor.

Generated constructor for class function_parameter_accessor.

Author:
lsg


Member Function Documentation

ptr<::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::functions::function_parameter_accessor::this_par_get (  )  const

The method this_par_get returns the value of the field function_parameter_accessor::this_par.

Returns:
The value of function_parameter_accessor::this_par.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::this_par_set ( const ptr< ::lestes::backend_v2::intercode::pi_mem_factory > &  x  ) 

The method this_par_set sets the field function_parameter_accessor::this_par to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::this_par to.
Author:
lsg

ptr<::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::functions::function_parameter_accessor::ret_val_par_get (  )  const

The method ret_val_par_get returns the value of the field function_parameter_accessor::ret_val_par.

Returns:
The value of function_parameter_accessor::ret_val_par.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::ret_val_par_set ( const ptr< ::lestes::backend_v2::intercode::pi_mem_factory > &  x  ) 

The method ret_val_par_set sets the field function_parameter_accessor::ret_val_par to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::ret_val_par to.
Author:
lsg

t_ptrdiff lestes::md::functions::function_parameter_accessor::this_end_offset_get (  )  const

The method this_end_offset_get returns the value of the field function_parameter_accessor::this_end_offset.

Returns:
The value of function_parameter_accessor::this_end_offset.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::this_end_offset_set ( t_ptrdiff  x  ) 

The method this_end_offset_set sets the field function_parameter_accessor::this_end_offset to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::this_end_offset to.
Author:
lsg

t_ptrdiff lestes::md::functions::function_parameter_accessor::ret_val_end_offset_get (  )  const

The method ret_val_end_offset_get returns the value of the field function_parameter_accessor::ret_val_end_offset.

Returns:
The value of function_parameter_accessor::ret_val_end_offset.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::ret_val_end_offset_set ( t_ptrdiff  x  ) 

The method ret_val_end_offset_set sets the field function_parameter_accessor::ret_val_end_offset to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::ret_val_end_offset to.
Author:
lsg

ptr<::lestes::std::map< ulint, srp<::lestes::backend_v2::intercode::pi_mem_factory > > > lestes::md::functions::function_parameter_accessor::params_get (  )  const

The method params_get returns the value of the field function_parameter_accessor::params.

Returns:
The value of function_parameter_accessor::params.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::params_set ( const ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > &  x  ) 

The method params_set sets the field function_parameter_accessor::params to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::params to.
Author:
lsg

ptr<::lestes::std::map< srp<::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > > lestes::md::functions::function_parameter_accessor::singleton_instances_get (  )  [static]

The method singleton_instances_get returns the value of the field function_parameter_accessor::singleton_instances.

Returns:
The value of function_parameter_accessor::singleton_instances.
Author:
lsg

void lestes::md::functions::function_parameter_accessor::singleton_instances_set ( const ptr< ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > > &  x  )  [static]

The method singleton_instances_set sets the field function_parameter_accessor::singleton_instances to the given value.

Parameters:
[in] x The new value to set function_parameter_accessor::singleton_instances to.
Author:
lsg

ptr< pi_mem_factory > lestes::md::functions::function_parameter_accessor::get_parameter ( ulint  index  )  [virtual]

Gets parameter with given index.

Note:

Parameters:
index The index.
Returns:
Memory space with parameter.

Implements lestes::md::functions::function_parameter_accessor_base.

ptr< pi_mem_factory > lestes::md::functions::function_parameter_accessor::get_this (  )  [virtual]

Gets secret "this" parameter.

Returns:
If function is member function then it returns memory space with "this" parameter. NULL otherwise.

Implements lestes::md::functions::function_parameter_accessor_base.

ptr< pi_mem_factory > lestes::md::functions::function_parameter_accessor::get_ret_val (  )  [virtual]

Gets secret parameter with pointer to space for returning value from the function.

Returns:
If function returns non-void type then it returns memory space with pointer. NULL otherwise.

Implements lestes::md::functions::function_parameter_accessor_base.

static ptr< function_parameter_accessor > lestes::md::functions::function_parameter_accessor::instance ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration function  )  [static]

ptr< function_parameter_accessor > lestes::md::functions::function_parameter_accessor::create ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration a__function_parameter_accessor_base__function,
ptr< ::lestes::backend_v2::intercode::pi_mem_factory a__function_parameter_accessor__this_par,
ptr< ::lestes::backend_v2::intercode::pi_mem_factory a__function_parameter_accessor__ret_val_par,
t_ptrdiff  a__function_parameter_accessor__this_end_offset,
t_ptrdiff  a__function_parameter_accessor__ret_val_end_offset,
ptr< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > >  a__function_parameter_accessor__params 
) [static]

First generated factory method for class function_parameter_accessor.

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

Author:
lsg

ptr< function_parameter_accessor > lestes::md::functions::function_parameter_accessor::create ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration a__function_parameter_accessor_base__function  )  [static]

Second generated factory method for class function_parameter_accessor.

This factory method for class function_parameter_accessor uses initializers.

Author:
lsg

ptr< object::reflection_list > lestes::md::functions::function_parameter_accessor::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::functions::function_parameter_accessor_base.

ptr< object::field_list_list > lestes::md::functions::function_parameter_accessor::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::functions::function_parameter_accessor_base.

void lestes::md::functions::function_parameter_accessor::gc_mark ( void   )  [protected, virtual]

Marking routine for class function_parameter_accessor.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::md::functions::function_parameter_accessor_base.


Member Data Documentation

srp< ::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::functions::function_parameter_accessor::this_par [private]

"this" parameter.

srp< ::lestes::backend_v2::intercode::pi_mem_factory > lestes::md::functions::function_parameter_accessor::ret_val_par [private]

Secret parameter with pointer to space for returning value from the function.

t_ptrdiff lestes::md::functions::function_parameter_accessor::this_end_offset [private]

Stack offset where "this" parameter ends.

t_ptrdiff lestes::md::functions::function_parameter_accessor::ret_val_end_offset [private]

Stack offset where ret_val parameter ends.

srp< ::lestes::std::map< ulint, srp< ::lestes::backend_v2::intercode::pi_mem_factory > > > lestes::md::functions::function_parameter_accessor::params [private]

Mapping from parameter index to parameter.

ptr<::lestes::std::map< srp<::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > > lestes::md::functions::function_parameter_accessor::singleton_instances = ::lestes::std::map< srp< ::lestes::lang::cplus::sem::ss_function_declaration >, srp< function_parameter_accessor > > ::create() [static, private]

ptr< object::reflection_list > lestes::md::functions::function_parameter_accessor::reflection = reflection [static, private]

Reimplemented from lestes::md::functions::function_parameter_accessor_base.


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