lestes::lang::cplus::sem::as_ternary_expression Class Reference

#include <as_expr.g.hh>

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

lestes::lang::cplus::sem::as_expression lestes::intercode::as_base lestes::intercode::intercode lestes::std::object lestes::std::mem::keystone lestes::lang::cplus::sem::as_expression_qmark List of all members.

Public Member Functions

ptr< as_expressionfirst_get () const
 The method first_get returns the value of the field as_ternary_expression::first.
void first_set (const ptr< as_expression > &)
 The method first_set sets the field as_ternary_expression::first to the given value.
ptr< as_expressionsecond_get () const
 The method second_get returns the value of the field as_ternary_expression::second.
void second_set (const ptr< as_expression > &)
 The method second_set sets the field as_ternary_expression::second to the given value.
ptr< as_expressionthird_get () const
 The method third_get returns the value of the field as_ternary_expression::third.
void third_set (const ptr< as_expression > &)
 The method third_set sets the field as_ternary_expression::third to the given value.
virtual void accept_as_expr_visitor (ptr< as_expr_visitor > v) override
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Protected Member Functions

 as_ternary_expression (ptr< ::lestes::std::source_location > a__as_base__location, ptr< as_expression > a__as_ternary_expression__first, ptr< as_expression > a__as_ternary_expression__second, ptr< as_expression > a__as_ternary_expression__third)
 Generated constructor for class as_ternary_expression.
virtual void gc_mark ()
 Marking routine for class as_ternary_expression.

Private Attributes

srp< as_expressionfirst
srp< as_expressionsecond
srp< as_expressionthird

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

FIXME

Definition at line 250 of file as_expr.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::as_ternary_expression::as_ternary_expression ( ptr< ::lestes::std::source_location a__as_base__location,
ptr< as_expression a__as_ternary_expression__first,
ptr< as_expression a__as_ternary_expression__second,
ptr< as_expression a__as_ternary_expression__third 
) [protected]

Generated constructor for class as_ternary_expression.

Generated constructor for class as_ternary_expression.

Author:
lsg

Definition at line 320 of file as_expr.g.cc.

00324         : as_expression(a__as_base__location), first(checked(a__as_ternary_expression__first)), second(checked(a__as_ternary_expression__second)), third(checked(a__as_ternary_expression__third))
00325 {}


Member Function Documentation

ptr< as_expression > lestes::lang::cplus::sem::as_ternary_expression::first_get (  )  const

The method first_get returns the value of the field as_ternary_expression::first.

Returns:
The value of as_ternary_expression::first.
Author:
lsg

Definition at line 266 of file as_expr.g.cc.

References first.

00267 {
00268         return first;
00269 }

void lestes::lang::cplus::sem::as_ternary_expression::first_set ( const ptr< as_expression > &  x  ) 

The method first_set sets the field as_ternary_expression::first to the given value.

Parameters:
[in] x The new value to set as_ternary_expression::first to.
Author:
lsg

Definition at line 275 of file as_expr.g.cc.

References first.

00276 {
00277         as_ternary_expression::first = x;
00278 }

ptr< as_expression > lestes::lang::cplus::sem::as_ternary_expression::second_get (  )  const

The method second_get returns the value of the field as_ternary_expression::second.

Returns:
The value of as_ternary_expression::second.
Author:
lsg

Definition at line 284 of file as_expr.g.cc.

References second.

00285 {
00286         return second;
00287 }

void lestes::lang::cplus::sem::as_ternary_expression::second_set ( const ptr< as_expression > &  x  ) 

The method second_set sets the field as_ternary_expression::second to the given value.

Parameters:
[in] x The new value to set as_ternary_expression::second to.
Author:
lsg

Definition at line 293 of file as_expr.g.cc.

References second.

00294 {
00295         as_ternary_expression::second = x;
00296 }

ptr< as_expression > lestes::lang::cplus::sem::as_ternary_expression::third_get (  )  const

The method third_get returns the value of the field as_ternary_expression::third.

Returns:
The value of as_ternary_expression::third.
Author:
lsg

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

References third.

00303 {
00304         return third;
00305 }

void lestes::lang::cplus::sem::as_ternary_expression::third_set ( const ptr< as_expression > &  x  ) 

The method third_set sets the field as_ternary_expression::third to the given value.

Parameters:
[in] x The new value to set as_ternary_expression::third to.
Author:
lsg

Definition at line 311 of file as_expr.g.cc.

References third.

00312 {
00313         as_ternary_expression::third = x;
00314 }

virtual void lestes::lang::cplus::sem::as_ternary_expression::accept_as_expr_visitor ( ptr< as_expr_visitor v  )  [pure virtual]

Implements lestes::lang::cplus::sem::as_expression.

Implemented in lestes::lang::cplus::sem::as_expression_qmark.

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

for purposes of dumping

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

Reimplemented in lestes::lang::cplus::sem::as_expression_qmark.

Definition at line 327 of file as_expr.g.cc.

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

Referenced by lestes::lang::cplus::sem::as_expression_qmark::reflection_get().

00328 {
00329         if (!reflection) {
00330                 typedef class_reflection::field_metadata md;
00331                 typedef class_reflection::field_metadata_list mdlist;
00332                 ptr<mdlist> mdl = mdlist::create();
00333                 mdl->push_back( md::create( "first", "as_expression" ) );
00334                 mdl->push_back( md::create( "second", "as_expression" ) );
00335                 mdl->push_back( md::create( "third", "as_expression" ) );
00336                 reflection = reflection_list::create( as_expression::reflection_get() );
00337                 reflection->push_back( class_reflection::create( "as_ternary_expression", mdl ) );
00338         }
00339         return reflection;
00340 }

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

for purposes of dumping

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

Reimplemented in lestes::lang::cplus::sem::as_expression_qmark.

Definition at line 342 of file as_expr.g.cc.

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

Referenced by lestes::lang::cplus::sem::as_expression_qmark::field_values_get().

00343 {
00344         ptr < field_list_list > result = as_expression::field_values_get();
00345         result->push_back( value_list::create() );
00346         result->back()->push_back( this->first );
00347         result->push_back( value_list::create() );
00348         result->back()->push_back( this->second );
00349         result->push_back( value_list::create() );
00350         result->back()->push_back( this->third );
00351         return result;
00352 }

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

Marking routine for class as_ternary_expression.

Marking routine is used for garbage collection.

Author:
lsg

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

Reimplemented in lestes::lang::cplus::sem::as_expression_qmark.

Definition at line 359 of file as_expr.g.cc.

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

Referenced by lestes::lang::cplus::sem::as_expression_qmark::gc_mark().

00360 {
00361         as_expression::gc_mark();
00362 }


Member Data Documentation

srp< as_expression > lestes::lang::cplus::sem::as_ternary_expression::first [private]

Definition at line 291 of file as_expr.g.hh.

Referenced by first_get(), and first_set().

srp< as_expression > lestes::lang::cplus::sem::as_ternary_expression::second [private]

Definition at line 293 of file as_expr.g.hh.

Referenced by second_get(), and second_set().

srp< as_expression > lestes::lang::cplus::sem::as_ternary_expression::third [private]

Definition at line 295 of file as_expr.g.hh.

Referenced by third_get(), and third_set().

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

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

Reimplemented in lestes::lang::cplus::sem::as_expression_qmark.

Definition at line 296 of file as_expr.g.hh.

Referenced by reflection_get().


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