#include <stmt.h>

Public Types | |
| typedef aegis_shared_ptr < rpt_stmt > | pointer |
Public Member Functions | |
| virtual | ~rpt_stmt () |
| virtual void | run (rpt_stmt_result_ty *) const =0 |
| void | append (const pointer &child) |
| void | prepend (const pointer &child) |
| size_t | get_nchildren () const |
Protected Member Functions | |
| rpt_stmt () | |
| pointer | nth_child (size_t n) const |
Private Member Functions | |
| rpt_stmt (const rpt_stmt &) | |
| rpt_stmt & | operator= (const rpt_stmt &) |
Private Attributes | |
| pointer * | child |
| size_t | nchild |
| size_t | nchild_max |
Definition at line 48 of file stmt.h.
| typedef aegis_shared_ptr<rpt_stmt> rpt_stmt::pointer |
| virtual rpt_stmt::~rpt_stmt | ( | ) | [virtual] |
The destructor.
| rpt_stmt::rpt_stmt | ( | ) | [protected] |
The default constructor.
| rpt_stmt::rpt_stmt | ( | const rpt_stmt & | ) | [private] |
The copy constructor. Do not use.
| virtual void rpt_stmt::run | ( | rpt_stmt_result_ty * | ) | const [pure virtual] |
The run method is used to execute the statament.
Implemented in rpt_stmt_compound, rpt_stmt_expr, rpt_stmt_for, rpt_stmt_foreach, rpt_stmt_break, rpt_stmt_continue, rpt_stmt_if, rpt_stmt_null, rpt_stmt_return, rpt_stmt_throw, rpt_stmt_try, rpt_stmt_while, and rpt_stmt_do.
| void rpt_stmt::append | ( | const pointer & | child | ) |
The append method is used to append another statement node to the children of this statement node.
| void rpt_stmt::prepend | ( | const pointer & | child | ) |
The prepend method is used to prepend another statement node to the children of this statement node.
| size_t rpt_stmt::get_nchildren | ( | ) | const [inline] |
| pointer rpt_stmt::nth_child | ( | size_t | n | ) | const [protected] |
The nth_child method may be used to obtain the given child statement.
| n | The shild to obtain, zero based. |
pointer* rpt_stmt::child [private] |
size_t rpt_stmt::nchild [private] |
size_t rpt_stmt::nchild_max [private] |
1.5.5