Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
rpt_stmt_return Class Reference

#include <return.h>

Inheritance diagram for rpt_stmt_return:
rpt_stmt

Public Member Functions

virtual ~rpt_stmt_return ()

Static Public Member Functions

static pointer create (const rpt_expr::pointer &ep)
static pointer create ()

Protected Member Functions

void run (rpt_stmt_result_ty *) const

Private Member Functions

 rpt_stmt_return (const rpt_expr::pointer &ep)
 rpt_stmt_return ()
 rpt_stmt_return (const rpt_stmt_return &)
rpt_stmt_returnoperator= (const rpt_stmt_return &)

Private Attributes

rpt_expr::pointer ep

Detailed Description

The rpt_stmt_return class is used to represent an return statement node of a syntax tree.

Definition at line 30 of file return.h.


Constructor & Destructor Documentation

virtual rpt_stmt_return::~rpt_stmt_return ( ) [virtual]

The destructor.

The constructor. It is private on purpose, use the "create" class method instead.

Parameters:
epThe expression tree for calculating hte return value.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer rpt_stmt_return::create ( const rpt_expr::pointer ep) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
epThe expression tree for calculating hte return value.
static pointer rpt_stmt_return::create ( ) [static]

The create class method is used to create new dynamically allocated instances of this class.

rpt_stmt_return& rpt_stmt_return::operator= ( const rpt_stmt_return ) [private]

The assignment operator. Do not use.

void rpt_stmt_return::run ( rpt_stmt_result_ty ) const [protected, virtual]

The run method is used to execute the statament.

Implements rpt_stmt.


Field Documentation

The ep instance variable is used to remember the expression node syntax tree for calculating the return value.

Definition at line 74 of file return.h.


The documentation for this class was generated from the following file: