rpt_stmt_for Class Reference

#include <for.h>

Inheritance diagram for rpt_stmt_for:

rpt_stmt

Public Member Functions

virtual ~rpt_stmt_for ()

Static Public Member Functions

static rpt_stmt::pointer create (const rpt_expr::pointer &a, const rpt_expr::pointer &b, const rpt_expr::pointer &c, const rpt_stmt::pointer &body)

Protected Member Functions

void run (rpt_stmt_result_ty *) const

Private Member Functions

 rpt_stmt_for (const rpt_expr::pointer &a, const rpt_expr::pointer &b, const rpt_expr::pointer &c, const rpt_stmt::pointer &body)
 rpt_stmt_for ()
 rpt_stmt_for (const rpt_stmt_for &)
rpt_stmt_foroperator= (const rpt_stmt_for &)

Private Attributes

rpt_expr::pointer e [3]

Detailed Description

The rpt_stmt_for class is used to represent a "for" loop statement syntax tree node.

Definition at line 30 of file for.h.


Constructor & Destructor Documentation

virtual rpt_stmt_for::~rpt_stmt_for (  )  [virtual]

The destructor.

rpt_stmt_for::rpt_stmt_for ( const rpt_expr::pointer a,
const rpt_expr::pointer b,
const rpt_expr::pointer c,
const rpt_stmt::pointer body 
) [private]

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

Parameters:
a The loop initialization expression
b The loop text expression
c The loop advance expression
body The loop body ststement tree.

rpt_stmt_for::rpt_stmt_for (  )  [private]

The default constructor. Do not use.

rpt_stmt_for::rpt_stmt_for ( const rpt_stmt_for  )  [private]

The copy constructor. Do not use.


Member Function Documentation

static rpt_stmt::pointer rpt_stmt_for::create ( const rpt_expr::pointer a,
const rpt_expr::pointer b,
const rpt_expr::pointer c,
const rpt_stmt::pointer body 
) [static]

The create class method is used to create a new dynamically allocate instance of this class.

Parameters:
a The loop initialization expression
b The loop text expression
c The loop advance expression
body The loop body ststement tree.

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

The run method is used to execute the statament.

Implements rpt_stmt.

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

The assignment operator. Do not use.


Field Documentation

The e instance variable is used to remember the three expressions used to control the loop.

Definition at line 83 of file for.h.


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

Generated on Wed Mar 12 23:37:43 2008 for Aegis by  doxygen 1.5.5