lestes::lang::cplus::sem::ss_pfuncall Class Reference

Class for member pointer call. More...

#include <ss_expr_funcall.g.hh>

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

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_expressionfun_ptr_get () const
 The method fun_ptr_get returns the value of the field ss_pfuncall::fun_ptr.
void fun_ptr_set (const ptr< ss_expression > &)
 The method fun_ptr_set sets the field ss_pfuncall::fun_ptr to the given value.
ptr< ss_expressionobject_get () const
 The method object_get returns the value of the field ss_pfuncall::object.
void object_set (const ptr< ss_expression > &)
 The method object_set sets the field ss_pfuncall::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_pfuncallcreate (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_expression > a__ss_pfuncall__fun_ptr, ptr< ss_expression > a__ss_pfuncall__object)
 First generated factory method for class ss_pfuncall.

Protected Member Functions

 ss_pfuncall (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_expression > a__ss_pfuncall__fun_ptr, ptr< ss_expression > a__ss_pfuncall__object)
 Generated constructor for class ss_pfuncall.
virtual void gc_mark ()
 Marking routine for class ss_pfuncall.

Private Attributes

srp< ss_expressionfun_ptr
srp< ss_expressionobject

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for member pointer call.

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


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_pfuncall::ss_pfuncall ( 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_expression a__ss_pfuncall__fun_ptr,
ptr< ss_expression a__ss_pfuncall__object 
) [protected]

Generated constructor for class ss_pfuncall.

Generated constructor for class ss_pfuncall.

Author:
lsg

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

Referenced by create().

00172         : ss_funcall_abstr(a__ss_base_with_location__location,
00173                 a__ss_expression__type,
00174                 a__ss_expression__psp,
00175                 a__ss_expression__nsp,
00176                 a__ss_funcall_abstr__args), fun_ptr(checked(a__ss_pfuncall__fun_ptr)), object(checked(a__ss_pfuncall__object))
00177 {}


Member Function Documentation

ptr< ss_expression > lestes::lang::cplus::sem::ss_pfuncall::fun_ptr_get (  )  const

The method fun_ptr_get returns the value of the field ss_pfuncall::fun_ptr.

Returns:
The value of ss_pfuncall::fun_ptr.
Author:
lsg

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

References fun_ptr.

00104 {
00105         return fun_ptr;
00106 }

void lestes::lang::cplus::sem::ss_pfuncall::fun_ptr_set ( const ptr< ss_expression > &  x  ) 

The method fun_ptr_set sets the field ss_pfuncall::fun_ptr to the given value.

Parameters:
[in] x The new value to set ss_pfuncall::fun_ptr to.
Author:
lsg

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

References fun_ptr.

00113 {
00114         ss_pfuncall::fun_ptr = x;
00115 }

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

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

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

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

00122 {
00123         return object;
00124 }

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

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

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

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

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

00131 {
00132         ss_pfuncall::object = x;
00133 }

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

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

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

00136 {
00137         return v->visit_ss_pfuncall( this );
00138 }

ptr< ss_pfuncall > lestes::lang::cplus::sem::ss_pfuncall::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_expression a__ss_pfuncall__fun_ptr,
ptr< ss_expression a__ss_pfuncall__object 
) [static]

First generated factory method for class ss_pfuncall.

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

Author:
lsg

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

References ss_pfuncall().

00151 {
00152         return ptr< ss_pfuncall > ( new ss_pfuncall(a__ss_base_with_location__location,
00153                 a__ss_expression__type,
00154                 a__ss_expression__psp,
00155                 a__ss_expression__nsp,
00156                 a__ss_funcall_abstr__args,
00157                 a__ss_pfuncall__fun_ptr,
00158                 a__ss_pfuncall__object) );
00159 }

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

for purposes of dumping

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

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

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

00180 {
00181         if (!reflection) {
00182                 typedef class_reflection::field_metadata md;
00183                 typedef class_reflection::field_metadata_list mdlist;
00184                 ptr<mdlist> mdl = mdlist::create();
00185                 mdl->push_back( md::create( "fun_ptr", "ss_expression" ) );
00186                 mdl->push_back( md::create( "object", "ss_expression" ) );
00187                 reflection = reflection_list::create( ss_funcall_abstr::reflection_get() );
00188                 reflection->push_back( class_reflection::create( "ss_pfuncall", mdl ) );
00189         }
00190         return reflection;
00191 }

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

for purposes of dumping

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

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

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

00194 {
00195         ptr < field_list_list > result = ss_funcall_abstr::field_values_get();
00196         result->push_back( value_list::create() );
00197         result->back()->push_back( this->fun_ptr );
00198         result->push_back( value_list::create() );
00199         result->back()->push_back( this->object );
00200         return result;
00201 }

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

Marking routine for class ss_pfuncall.

Marking routine is used for garbage collection.

Author:
lsg

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

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

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

00209 {
00210         ss_funcall_abstr::gc_mark();
00211 }


Member Data Documentation

srp< ss_expression > lestes::lang::cplus::sem::ss_pfuncall::fun_ptr [private]

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

Referenced by fun_ptr_get(), and fun_ptr_set().

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

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

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

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

Definition at line 122 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