lestes::lang::cplus::sem::ss_mfuncall Class Reference

Class for method call. More...

#include <ss_expr_funcall.g.hh>

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

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_mfuncall::function.
void function_set (const ptr< ss_function_declaration > &)
 The method function_set sets the field ss_mfuncall::function to the given value.
ptr< ss_expressionobject_get () const
 The method object_get returns the value of the field ss_mfuncall::object.
void object_set (const ptr< ss_expression > &)
 The method object_set sets the field ss_mfuncall::object 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_mfuncallcreate (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_mfuncall__function, ptr< ss_expression > a__ss_mfuncall__object)
 First generated factory method for class ss_mfuncall.

Protected Member Functions

 ss_mfuncall (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_mfuncall__function, ptr< ss_expression > a__ss_mfuncall__object)
 Generated constructor for class ss_mfuncall.
virtual void gc_mark ()
 Marking routine for class ss_mfuncall.

Private Attributes

srp< ss_function_declarationfunction
srp< ss_expressionobject

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for method call.

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


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_mfuncall::ss_mfuncall ( 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_mfuncall__function,
ptr< ss_expression a__ss_mfuncall__object 
) [protected]

Generated constructor for class ss_mfuncall.

Generated constructor for class ss_mfuncall.

Author:
lsg

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

Referenced by create().

00478         : ss_funcall_abstr(a__ss_base_with_location__location,
00479                 a__ss_expression__type,
00480                 a__ss_expression__psp,
00481                 a__ss_expression__nsp,
00482                 a__ss_funcall_abstr__args), function(checked(a__ss_mfuncall__function)), object(checked(a__ss_mfuncall__object))
00483 {}


Member Function Documentation

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

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

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

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

References function.

00410 {
00411         return function;
00412 }

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

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

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

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

References function.

00419 {
00420         ss_mfuncall::function = x;
00421 }

ptr< ss_expression > lestes::lang::cplus::sem::ss_mfuncall::object_get (  )  const

The method object_get returns the value of the field ss_mfuncall::object.

Returns:
The value of ss_mfuncall::object.
Author:
lsg

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

00428 {
00429         return object;
00430 }

void lestes::lang::cplus::sem::ss_mfuncall::object_set ( const ptr< ss_expression > &  x  ) 

The method object_set sets the field ss_mfuncall::object to the given value.

Parameters:
[in] x The new value to set ss_mfuncall::object to.
Author:
lsg

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

References lestes::std::object::object().

00437 {
00438         ss_mfuncall::object = x;
00439 }

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

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

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

00442 {
00443         return v->visit_ss_mfuncall( this );
00444 }

ptr< ss_mfuncall > lestes::lang::cplus::sem::ss_mfuncall::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_mfuncall__function,
ptr< ss_expression a__ss_mfuncall__object 
) [static]

First generated factory method for class ss_mfuncall.

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

Author:
lsg

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

References ss_mfuncall().

00457 {
00458         return ptr< ss_mfuncall > ( new ss_mfuncall(a__ss_base_with_location__location,
00459                 a__ss_expression__type,
00460                 a__ss_expression__psp,
00461                 a__ss_expression__nsp,
00462                 a__ss_funcall_abstr__args,
00463                 a__ss_mfuncall__function,
00464                 a__ss_mfuncall__object) );
00465 }

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

for purposes of dumping

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

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

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

00486 {
00487         if (!reflection) {
00488                 typedef class_reflection::field_metadata md;
00489                 typedef class_reflection::field_metadata_list mdlist;
00490                 ptr<mdlist> mdl = mdlist::create();
00491                 mdl->push_back( md::create( "function", "ss_function_declaration" ) );
00492                 mdl->push_back( md::create( "object", "ss_expression" ) );
00493                 reflection = reflection_list::create( ss_funcall_abstr::reflection_get() );
00494                 reflection->push_back( class_reflection::create( "ss_mfuncall", mdl ) );
00495         }
00496         return reflection;
00497 }

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

for purposes of dumping

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

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

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

00500 {
00501         ptr < field_list_list > result = ss_funcall_abstr::field_values_get();
00502         result->push_back( value_list::create() );
00503         result->back()->push_back( this->function );
00504         result->push_back( value_list::create() );
00505         result->back()->push_back( this->object );
00506         return result;
00507 }

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

Marking routine for class ss_mfuncall.

Marking routine is used for garbage collection.

Author:
lsg

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

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

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

00515 {
00516         ss_funcall_abstr::gc_mark();
00517 }


Member Data Documentation

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

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

Referenced by function_get(), and function_set().

srp< ss_expression > lestes::lang::cplus::sem::ss_mfuncall::object [private]

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

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

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

Definition at line 272 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:19 2007 for lestes by doxygen 1.5.1-20070107