#include <if.h>
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_if & | operator= (const rpt_stmt_if &) |
Private Attributes | |
rpt_expr::pointer | condition |
Definition at line 30 of file if.h.
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.
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.
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.
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.
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.
rpt_expr::pointer rpt_stmt_if::condition [private] |