lestes::lang::cplus::sem::ss_funcall Class Reference

Class for ordinary function call. More...

#include <ss_expr_funcall.g.hh>

Inheritance diagram for lestes::lang::cplus::sem::ss_funcall:

lestes::lang::cplus::sem::ss_funcall_abstr lestes::lang::cplus::sem::ss_expression lestes::intercode::ss_base_with_location lestes::intercode::ss_base lestes::intercode::intercode lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< ss_function_declarationfunction_get () const
 The method function_get returns the value of the field ss_funcall::function.
void function_set (const ptr< ss_function_declaration > &)
 The method function_set sets the field ss_funcall::function to the given value.
virtual void accept_ss_expression_visitor (ptr< ss_expression_visitor > v)
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< ss_funcallcreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ss_type > a__ss_expression__type, ptr< ss_sp > a__ss_expression__psp, ptr< ss_sp > a__ss_expression__nsp, ptr< ::lestes::std::list< srp< ss_expression > > > a__ss_funcall_abstr__args, ptr< ss_function_declaration > a__ss_funcall__function)
 First generated factory method for class ss_funcall.

Protected Member Functions

 ss_funcall (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ss_type > a__ss_expression__type, ptr< ss_sp > a__ss_expression__psp, ptr< ss_sp > a__ss_expression__nsp, ptr< ::lestes::std::list< srp< ss_expression > > > a__ss_funcall_abstr__args, ptr< ss_function_declaration > a__ss_funcall__function)
 Generated constructor for class ss_funcall.
virtual void gc_mark ()
 Marking routine for class ss_funcall.

Private Attributes

srp< ss_function_declarationfunction

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for ordinary function call.

Definition at line 128 of file ss_expr_funcall.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_funcall::ss_funcall ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ss_type a__ss_expression__type,
ptr< ss_sp a__ss_expression__psp,
ptr< ss_sp a__ss_expression__nsp,
ptr< ::lestes::std::list< srp< ss_expression > > >  a__ss_funcall_abstr__args,
ptr< ss_function_declaration a__ss_funcall__function 
) [protected]

Generated constructor for class ss_funcall.

Generated constructor for class ss_funcall.

Author:
lsg

Definition at line 263 of file ss_expr_funcall.g.cc.

Referenced by create().

00269         : ss_funcall_abstr(a__ss_base_with_location__location,
00270                 a__ss_expression__type,
00271                 a__ss_expression__psp,
00272                 a__ss_expression__nsp,
00273                 a__ss_funcall_abstr__args), function(checked(a__ss_funcall__function))
00274 {}


Member Function Documentation

ptr< ss_function_declaration > lestes::lang::cplus::sem::ss_funcall::function_get (  )  const

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

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

Definition at line 221 of file ss_expr_funcall.g.cc.

References function.

00222 {
00223         return function;
00224 }

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

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

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

Definition at line 230 of file ss_expr_funcall.g.cc.

References function.

00231 {
00232         ss_funcall::function = x;
00233 }

void lestes::lang::cplus::sem::ss_funcall::accept_ss_expression_visitor ( ptr< ss_expression_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_funcall_abstr.

Definition at line 235 of file ss_expr_funcall.g.cc.

00236 {
00237         return v->visit_ss_funcall( this );
00238 }

ptr< ss_funcall > lestes::lang::cplus::sem::ss_funcall::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ss_type a__ss_expression__type,
ptr< ss_sp a__ss_expression__psp,
ptr< ss_sp a__ss_expression__nsp,
ptr< ::lestes::std::list< srp< ss_expression > > >  a__ss_funcall_abstr__args,
ptr< ss_function_declaration a__ss_funcall__function 
) [static]

First generated factory method for class ss_funcall.

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

Author:
lsg

Definition at line 244 of file ss_expr_funcall.g.cc.

References ss_funcall().

00250 {
00251         return ptr< ss_funcall > ( new ss_funcall(a__ss_base_with_location__location,
00252                 a__ss_expression__type,
00253                 a__ss_expression__psp,
00254                 a__ss_expression__nsp,
00255                 a__ss_funcall_abstr__args,
00256                 a__ss_funcall__function) );
00257 }

ptr< object::reflection_list > lestes::lang::cplus::sem::ss_funcall::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::ss_funcall_abstr.

Definition at line 276 of file ss_expr_funcall.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::lang::cplus::sem::ss_funcall_abstr::reflection_get().

00277 {
00278         if (!reflection) {
00279                 typedef class_reflection::field_metadata md;
00280                 typedef class_reflection::field_metadata_list mdlist;
00281                 ptr<mdlist> mdl = mdlist::create();
00282                 mdl->push_back( md::create( "function", "ss_function_declaration" ) );
00283                 reflection = reflection_list::create( ss_funcall_abstr::reflection_get() );
00284                 reflection->push_back( class_reflection::create( "ss_funcall", mdl ) );
00285         }
00286         return reflection;
00287 }

ptr< object::field_list_list > lestes::lang::cplus::sem::ss_funcall::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::ss_funcall_abstr.

Definition at line 289 of file ss_expr_funcall.g.cc.

References lestes::std::list< T >::create(), and lestes::lang::cplus::sem::ss_funcall_abstr::field_values_get().

00290 {
00291         ptr < field_list_list > result = ss_funcall_abstr::field_values_get();
00292         result->push_back( value_list::create() );
00293         result->back()->push_back( this->function );
00294         return result;
00295 }

void lestes::lang::cplus::sem::ss_funcall::gc_mark ( void   )  [protected, virtual]

Marking routine for class ss_funcall.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::lang::cplus::sem::ss_funcall_abstr.

Definition at line 302 of file ss_expr_funcall.g.cc.

References lestes::lang::cplus::sem::ss_funcall_abstr::gc_mark().

00303 {
00304         ss_funcall_abstr::gc_mark();
00305 }


Member Data Documentation

srp< ss_function_declaration > lestes::lang::cplus::sem::ss_funcall::function [private]

Definition at line 168 of file ss_expr_funcall.g.hh.

Referenced by function_get(), and function_set().

ptr< object::reflection_list > lestes::lang::cplus::sem::ss_funcall::reflection = reflection [static, private]

Reimplemented from lestes::lang::cplus::sem::ss_funcall_abstr.

Definition at line 169 of file ss_expr_funcall.g.hh.

Referenced by reflection_get().


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