rpt_stmt_if Class Reference

#include <if.h>

Inheritance diagram for rpt_stmt_if:

rpt_stmt

Public Member Functions

virtual ~rpt_stmt_if ()

Static Public Member Functions

static rpt_stmt::pointer create (const rpt_expr::pointer &cond, const rpt_stmt::pointer &then_clause, const rpt_stmt::pointer &else_clause)
static rpt_stmt::pointer create (const rpt_expr::pointer &cond, const rpt_stmt::pointer &then_clause)

Protected Member Functions

void run (rpt_stmt_result_ty *) const

Private Member Functions

 rpt_stmt_if (const rpt_expr::pointer &cond, const rpt_stmt::pointer &then_clause, const rpt_stmt::pointer &else_clause)
 rpt_stmt_if ()
 rpt_stmt_if (const rpt_stmt_if &)
rpt_stmt_ifoperator= (const rpt_stmt_if &)

Private Attributes

rpt_expr::pointer condition

Detailed Description

The rpt_stmt_if class is used to represent "if" statement syntax tree nodes.

Definition at line 30 of file if.h.


Constructor & Destructor Documentation

virtual rpt_stmt_if::~rpt_stmt_if (  )  [virtual]

The destructor.

rpt_stmt_if::rpt_stmt_if ( const rpt_expr::pointer cond,
const rpt_stmt::pointer then_clause,
const rpt_stmt::pointer else_clause 
) [private]

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

Parameters:
cond The condition to decide which clause
then_clause What to do if the condition is true
else_clause What to do if the condition is false

rpt_stmt_if::rpt_stmt_if (  )  [private]

The default constructor. Do not use.

rpt_stmt_if::rpt_stmt_if ( const rpt_stmt_if  )  [private]

The copy constructor. Do not use.


Member Function Documentation

static rpt_stmt::pointer rpt_stmt_if::create ( const rpt_expr::pointer cond,
const rpt_stmt::pointer then_clause,
const rpt_stmt::pointer else_clause 
) [static]

The create class method is used to create a new synamically allocated instance of this class.

Parameters:
cond The condition to decide which clause
then_clause What to do if the condition is true
else_clause What to do if the condition is false

static rpt_stmt::pointer rpt_stmt_if::create ( const rpt_expr::pointer cond,
const rpt_stmt::pointer then_clause 
) [static]

The create class method is used to create a new synamically allocated instance of this class.

Parameters:
cond The condition to decide which clause
then_clause What to do if the condition is true

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

The run method is used to execute the statament.

Implements rpt_stmt.

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

The assignment operator. Do not use.


Field Documentation

The condition instance variable is used to remember the expression which controls which branch to execute.

Definition at line 92 of file if.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