lestes::lang::cplus::sem::condition_to_expression Class Reference

#include <sa_statements.g.hh>

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

lestes::lang::cplus::sem::as_condition_visitor lestes::std::visitor_base lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< ss_sppsp_get () const
 The method psp_get returns the value of the field condition_to_expression::psp.
void psp_set (const ptr< ss_sp > &)
 The method psp_set sets the field condition_to_expression::psp to the given value.
ptr< ss_spnsp_get () const
 The method nsp_get returns the value of the field condition_to_expression::nsp.
void nsp_set (const ptr< ss_sp > &)
 The method nsp_set sets the field condition_to_expression::nsp to the given value.
ptr< ::lestes::std::list<
srp< ss_sp > > > 
sps_get () const
 The method sps_get returns the value of the field condition_to_expression::sps.
void sps_set (const ptr< ::lestes::std::list< srp< ss_sp > > > &)
 The method sps_set sets the field condition_to_expression::sps to the given value.
ptr< ss_expressionresult_get () const
 The method result_get returns the value of the field condition_to_expression::result.
void result_set (const ptr< ss_expression > &)
 The method result_set sets the field condition_to_expression::result to the given value.
virtual void visit_as_empty_condition (ptr< ::lestes::lang::cplus::sem::as_empty_condition >)
virtual void visit_as_condition_expression (ptr< ::lestes::lang::cplus::sem::as_condition_expression >)
virtual void visit_as_condition_declaration (ptr< ::lestes::lang::cplus::sem::as_condition_declaration >)
ptr< ss_expressionprocess (const ptr< ::lestes::lang::cplus::sem::as_condition > &)
 "visit-return" method
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< condition_to_expressioncreate (ptr< ss_sp > a__condition_to_expression__psp, ptr< ss_sp > a__condition_to_expression__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__condition_to_expression__sps, ptr< ss_expression > a__condition_to_expression__result)
 First generated factory method for class condition_to_expression.
static ptr< condition_to_expressioncreate (ptr< ss_sp > a__condition_to_expression__psp, ptr< ss_sp > a__condition_to_expression__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__condition_to_expression__sps)
 Second generated factory method for class condition_to_expression.

Protected Member Functions

 condition_to_expression (ptr< ss_sp > a__condition_to_expression__psp, ptr< ss_sp > a__condition_to_expression__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__condition_to_expression__sps, ptr< ss_expression > a__condition_to_expression__result)
 Generated constructor for class condition_to_expression.
virtual void gc_mark ()
 Marking routine for class condition_to_expression.

Private Attributes

srp< ss_sppsp
srp< ss_spnsp
srp< ::lestes::std::list<
srp< ss_sp > > > 
sps
srp< ss_expressionresult

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Definition at line 308 of file sa_statements.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::condition_to_expression::condition_to_expression ( ptr< ss_sp a__condition_to_expression__psp,
ptr< ss_sp a__condition_to_expression__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__condition_to_expression__sps,
ptr< ss_expression a__condition_to_expression__result 
) [protected]

Generated constructor for class condition_to_expression.

Generated constructor for class condition_to_expression.

Author:
lsg

Definition at line 507 of file sa_statements.g.cc.

Referenced by create().

00511         : as_condition_visitor(), psp(checked(a__condition_to_expression__psp)), nsp(checked(a__condition_to_expression__nsp)), sps(checked(a__condition_to_expression__sps)), result(a__condition_to_expression__result)
00512 {}


Member Function Documentation

ptr< ss_sp > lestes::lang::cplus::sem::condition_to_expression::psp_get (  )  const

The method psp_get returns the value of the field condition_to_expression::psp.

Returns:
The value of condition_to_expression::psp.
Author:
lsg

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

References psp.

00410 {
00411         return psp;
00412 }

void lestes::lang::cplus::sem::condition_to_expression::psp_set ( const ptr< ss_sp > &  x  ) 

The method psp_set sets the field condition_to_expression::psp to the given value.

Parameters:
[in] x The new value to set condition_to_expression::psp to.
Author:
lsg

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

References psp.

00419 {
00420         condition_to_expression::psp = x;
00421 }

ptr< ss_sp > lestes::lang::cplus::sem::condition_to_expression::nsp_get (  )  const

The method nsp_get returns the value of the field condition_to_expression::nsp.

Returns:
The value of condition_to_expression::nsp.
Author:
lsg

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

References nsp.

00428 {
00429         return nsp;
00430 }

void lestes::lang::cplus::sem::condition_to_expression::nsp_set ( const ptr< ss_sp > &  x  ) 

The method nsp_set sets the field condition_to_expression::nsp to the given value.

Parameters:
[in] x The new value to set condition_to_expression::nsp to.
Author:
lsg

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

References nsp.

00437 {
00438         condition_to_expression::nsp = x;
00439 }

ptr<::lestes::std::list< srp< ss_sp > > > lestes::lang::cplus::sem::condition_to_expression::sps_get (  )  const

The method sps_get returns the value of the field condition_to_expression::sps.

Returns:
The value of condition_to_expression::sps.
Author:
lsg

Definition at line 445 of file sa_statements.g.cc.

References sps.

00446 {
00447         return sps;
00448 }

void lestes::lang::cplus::sem::condition_to_expression::sps_set ( const ptr< ::lestes::std::list< srp< ss_sp > > > &  x  ) 

The method sps_set sets the field condition_to_expression::sps to the given value.

Parameters:
[in] x The new value to set condition_to_expression::sps to.
Author:
lsg

Definition at line 454 of file sa_statements.g.cc.

References sps.

00455 {
00456         condition_to_expression::sps = x;
00457 }

ptr< ss_expression > lestes::lang::cplus::sem::condition_to_expression::result_get (  )  const

The method result_get returns the value of the field condition_to_expression::result.

Returns:
The value of condition_to_expression::result.
Author:
lsg

Definition at line 463 of file sa_statements.g.cc.

References result.

Referenced by process().

00464 {
00465         return result;
00466 }

void lestes::lang::cplus::sem::condition_to_expression::result_set ( const ptr< ss_expression > &  x  ) 

The method result_set sets the field condition_to_expression::result to the given value.

Parameters:
[in] x The new value to set condition_to_expression::result to.
Author:
lsg

Definition at line 472 of file sa_statements.g.cc.

References result.

00473 {
00474         condition_to_expression::result = x;
00475 }

virtual void lestes::lang::cplus::sem::condition_to_expression::visit_as_empty_condition ( ptr< ::lestes::lang::cplus::sem::as_empty_condition  )  [virtual]

Implements lestes::lang::cplus::sem::as_condition_visitor.

virtual void lestes::lang::cplus::sem::condition_to_expression::visit_as_condition_expression ( ptr< ::lestes::lang::cplus::sem::as_condition_expression  )  [virtual]

Implements lestes::lang::cplus::sem::as_condition_visitor.

virtual void lestes::lang::cplus::sem::condition_to_expression::visit_as_condition_declaration ( ptr< ::lestes::lang::cplus::sem::as_condition_declaration  )  [virtual]

Implements lestes::lang::cplus::sem::as_condition_visitor.

ptr< condition_to_expression > lestes::lang::cplus::sem::condition_to_expression::create ( ptr< ss_sp a__condition_to_expression__psp,
ptr< ss_sp a__condition_to_expression__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__condition_to_expression__sps,
ptr< ss_expression a__condition_to_expression__result 
) [static]

First generated factory method for class condition_to_expression.

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

Author:
lsg

Definition at line 481 of file sa_statements.g.cc.

References condition_to_expression().

00485 {
00486         return ptr< condition_to_expression > ( new condition_to_expression(a__condition_to_expression__psp,
00487                 a__condition_to_expression__nsp,
00488                 a__condition_to_expression__sps,
00489                 a__condition_to_expression__result) );
00490 }

ptr< condition_to_expression > lestes::lang::cplus::sem::condition_to_expression::create ( ptr< ss_sp a__condition_to_expression__psp,
ptr< ss_sp a__condition_to_expression__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__condition_to_expression__sps 
) [static]

Second generated factory method for class condition_to_expression.

This factory method for class condition_to_expression uses initializers.

Author:
lsg

Definition at line 496 of file sa_statements.g.cc.

References condition_to_expression().

00499 {
00500         return ptr< condition_to_expression > ( new condition_to_expression(a__condition_to_expression__psp, a__condition_to_expression__nsp, a__condition_to_expression__sps, NULL) );
00501 }

ptr< ss_expression > lestes::lang::cplus::sem::condition_to_expression::process ( const ptr< ::lestes::lang::cplus::sem::as_condition > &   ) 

"visit-return" method

Definition at line 544 of file sa_statements.g.cc.

References lassert2, and result_get().

00545 {
00546         lassert2( o, "Cannot visit NULL object." );
00547         o->accept_as_condition_visitor( ptr< as_condition_visitor >(this) );
00548         return result_get();
00549 }

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

for purposes of dumping

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

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

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

00515 {
00516         if (!reflection) {
00517                 typedef class_reflection::field_metadata md;
00518                 typedef class_reflection::field_metadata_list mdlist;
00519                 ptr<mdlist> mdl = mdlist::create();
00520                 mdl->push_back( md::create( "psp", "ss_sp" ) );
00521                 mdl->push_back( md::create( "nsp", "ss_sp" ) );
00522                 mdl->push_back( md::create( "sps", "list&lt; srp&lt; ss_sp &gt; &gt;" ) );
00523                 mdl->push_back( md::create( "result", "ss_expression" ) );
00524                 reflection = reflection_list::create( as_condition_visitor::reflection_get() );
00525                 reflection->push_back( class_reflection::create( "condition_to_expression", mdl ) );
00526         }
00527         return reflection;
00528 }

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

for purposes of dumping

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

Definition at line 530 of file sa_statements.g.cc.

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

00531 {
00532         ptr < field_list_list > result = as_condition_visitor::field_values_get();
00533         result->push_back( value_list::create() );
00534         result->back()->push_back( this->psp );
00535         result->push_back( value_list::create() );
00536         result->back()->push_back( this->nsp );
00537         result->push_back( value_list::create() );
00538         result->back()->push_back( this->sps );
00539         result->push_back( value_list::create() );
00540         result->back()->push_back( this->result );
00541         return result;
00542 }

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

Marking routine for class condition_to_expression.

Marking routine is used for garbage collection.

Author:
lsg

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

Definition at line 556 of file sa_statements.g.cc.

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

00557 {
00558         as_condition_visitor::gc_mark();
00559 }


Member Data Documentation

srp< ss_sp > lestes::lang::cplus::sem::condition_to_expression::psp [private]

Definition at line 375 of file sa_statements.g.hh.

Referenced by psp_get(), and psp_set().

srp< ss_sp > lestes::lang::cplus::sem::condition_to_expression::nsp [private]

Definition at line 376 of file sa_statements.g.hh.

Referenced by nsp_get(), and nsp_set().

srp< ::lestes::std::list< srp< ss_sp > > > lestes::lang::cplus::sem::condition_to_expression::sps [private]

Definition at line 377 of file sa_statements.g.hh.

Referenced by sps_get(), and sps_set().

srp< ss_expression > lestes::lang::cplus::sem::condition_to_expression::result [private]

Definition at line 378 of file sa_statements.g.hh.

Referenced by field_values_get(), result_get(), and result_set().

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

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

Definition at line 379 of file sa_statements.g.hh.

Referenced by reflection_get().


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