lestes::lang::cplus::sem::ss_ternary Class Reference

Class for ternary ?: operator expression. More...

#include <ss_expression.g.hh>

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

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_expressioncondition_get () const
 The method condition_get returns the value of the field ss_ternary::condition.
void condition_set (const ptr< ss_expression > &)
 The method condition_set sets the field ss_ternary::condition to the given value.
ptr< ss_expressiontrue_expr_get () const
 The method true_expr_get returns the value of the field ss_ternary::true_expr.
void true_expr_set (const ptr< ss_expression > &)
 The method true_expr_set sets the field ss_ternary::true_expr to the given value.
ptr< ss_expressionfalse_expr_get () const
 The method false_expr_get returns the value of the field ss_ternary::false_expr.
void false_expr_set (const ptr< ss_expression > &)
 The method false_expr_set sets the field ss_ternary::false_expr 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_ternarycreate (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< ss_expression > a__ss_ternary__condition, ptr< ss_expression > a__ss_ternary__true_expr, ptr< ss_expression > a__ss_ternary__false_expr)
 First generated factory method for class ss_ternary.

Protected Member Functions

 ss_ternary (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< ss_expression > a__ss_ternary__condition, ptr< ss_expression > a__ss_ternary__true_expr, ptr< ss_expression > a__ss_ternary__false_expr)
 Generated constructor for class ss_ternary.
virtual void gc_mark ()
 Marking routine for class ss_ternary.

Private Attributes

srp< ss_expressioncondition
srp< ss_expressiontrue_expr
srp< ss_expressionfalse_expr

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for ternary ?: operator expression.

Definition at line 218 of file ss_expression.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_ternary::ss_ternary ( 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< ss_expression a__ss_ternary__condition,
ptr< ss_expression a__ss_ternary__true_expr,
ptr< ss_expression a__ss_ternary__false_expr 
) [protected]

Generated constructor for class ss_ternary.

Generated constructor for class ss_ternary.

Author:
lsg

Definition at line 381 of file ss_expression.g.cc.

Referenced by create().

00388         : ss_expression(a__ss_base_with_location__location,
00389                 a__ss_expression__type,
00390                 a__ss_expression__psp,
00391                 a__ss_expression__nsp), condition(checked(a__ss_ternary__condition)), true_expr(checked(a__ss_ternary__true_expr)), false_expr(checked(a__ss_ternary__false_expr))
00392 {}


Member Function Documentation

ptr< ss_expression > lestes::lang::cplus::sem::ss_ternary::condition_get (  )  const

The method condition_get returns the value of the field ss_ternary::condition.

Returns:
The value of ss_ternary::condition.
Author:
lsg

Definition at line 301 of file ss_expression.g.cc.

References condition.

00302 {
00303         return condition;
00304 }

void lestes::lang::cplus::sem::ss_ternary::condition_set ( const ptr< ss_expression > &  x  ) 

The method condition_set sets the field ss_ternary::condition to the given value.

Parameters:
[in] x The new value to set ss_ternary::condition to.
Author:
lsg

Definition at line 310 of file ss_expression.g.cc.

References condition.

00311 {
00312         ss_ternary::condition = x;
00313 }

ptr< ss_expression > lestes::lang::cplus::sem::ss_ternary::true_expr_get (  )  const

The method true_expr_get returns the value of the field ss_ternary::true_expr.

Returns:
The value of ss_ternary::true_expr.
Author:
lsg

Definition at line 319 of file ss_expression.g.cc.

References true_expr.

00320 {
00321         return true_expr;
00322 }

void lestes::lang::cplus::sem::ss_ternary::true_expr_set ( const ptr< ss_expression > &  x  ) 

The method true_expr_set sets the field ss_ternary::true_expr to the given value.

Parameters:
[in] x The new value to set ss_ternary::true_expr to.
Author:
lsg

Definition at line 328 of file ss_expression.g.cc.

References true_expr.

00329 {
00330         ss_ternary::true_expr = x;
00331 }

ptr< ss_expression > lestes::lang::cplus::sem::ss_ternary::false_expr_get (  )  const

The method false_expr_get returns the value of the field ss_ternary::false_expr.

Returns:
The value of ss_ternary::false_expr.
Author:
lsg

Definition at line 337 of file ss_expression.g.cc.

References false_expr.

00338 {
00339         return false_expr;
00340 }

void lestes::lang::cplus::sem::ss_ternary::false_expr_set ( const ptr< ss_expression > &  x  ) 

The method false_expr_set sets the field ss_ternary::false_expr to the given value.

Parameters:
[in] x The new value to set ss_ternary::false_expr to.
Author:
lsg

Definition at line 346 of file ss_expression.g.cc.

References false_expr.

00347 {
00348         ss_ternary::false_expr = x;
00349 }

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

Implements lestes::lang::cplus::sem::ss_expression.

Definition at line 351 of file ss_expression.g.cc.

00352 {
00353         return v->visit_ss_ternary( this );
00354 }

ptr< ss_ternary > lestes::lang::cplus::sem::ss_ternary::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< ss_expression a__ss_ternary__condition,
ptr< ss_expression a__ss_ternary__true_expr,
ptr< ss_expression a__ss_ternary__false_expr 
) [static]

First generated factory method for class ss_ternary.

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

Author:
lsg

Definition at line 360 of file ss_expression.g.cc.

References ss_ternary().

00367 {
00368         return ptr< ss_ternary > ( new ss_ternary(a__ss_base_with_location__location,
00369                 a__ss_expression__type,
00370                 a__ss_expression__psp,
00371                 a__ss_expression__nsp,
00372                 a__ss_ternary__condition,
00373                 a__ss_ternary__true_expr,
00374                 a__ss_ternary__false_expr) );
00375 }

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

for purposes of dumping

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

Definition at line 394 of file ss_expression.g.cc.

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

00395 {
00396         if (!reflection) {
00397                 typedef class_reflection::field_metadata md;
00398                 typedef class_reflection::field_metadata_list mdlist;
00399                 ptr<mdlist> mdl = mdlist::create();
00400                 mdl->push_back( md::create( "condition", "ss_expression" ) );
00401                 mdl->push_back( md::create( "true_expr", "ss_expression" ) );
00402                 mdl->push_back( md::create( "false_expr", "ss_expression" ) );
00403                 reflection = reflection_list::create( ss_expression::reflection_get() );
00404                 reflection->push_back( class_reflection::create( "ss_ternary", mdl ) );
00405         }
00406         return reflection;
00407 }

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

for purposes of dumping

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

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

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

00410 {
00411         ptr < field_list_list > result = ss_expression::field_values_get();
00412         result->push_back( value_list::create() );
00413         result->back()->push_back( this->condition );
00414         result->push_back( value_list::create() );
00415         result->back()->push_back( this->true_expr );
00416         result->push_back( value_list::create() );
00417         result->back()->push_back( this->false_expr );
00418         return result;
00419 }

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

Marking routine for class ss_ternary.

Marking routine is used for garbage collection.

Author:
lsg

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

Definition at line 426 of file ss_expression.g.cc.

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

00427 {
00428         ss_expression::gc_mark();
00429 }


Member Data Documentation

srp< ss_expression > lestes::lang::cplus::sem::ss_ternary::condition [private]

Definition at line 272 of file ss_expression.g.hh.

Referenced by condition_get(), and condition_set().

srp< ss_expression > lestes::lang::cplus::sem::ss_ternary::true_expr [private]

Definition at line 273 of file ss_expression.g.hh.

Referenced by true_expr_get(), and true_expr_set().

srp< ss_expression > lestes::lang::cplus::sem::ss_ternary::false_expr [private]

Definition at line 274 of file ss_expression.g.hh.

Referenced by false_expr_get(), and false_expr_set().

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

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

Definition at line 275 of file ss_expression.g.hh.

Referenced by reflection_get().


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