rpt_stmt Class Reference

#include <stmt.h>

Inheritance diagram for rpt_stmt:

rpt_stmt_break rpt_stmt_compound rpt_stmt_continue rpt_stmt_do rpt_stmt_expr rpt_stmt_for rpt_stmt_foreach rpt_stmt_if rpt_stmt_null rpt_stmt_return rpt_stmt_throw rpt_stmt_try rpt_stmt_while

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_stmtoperator= (const rpt_stmt &)

Private Attributes

pointerchild
size_t nchild
size_t nchild_max

Detailed Description

The rpt_stmt abstract base class is used to represent a generic statement in the statement tree used by the report generator.

Definition at line 48 of file stmt.h.


Member Typedef Documentation

Definition at line 51 of file stmt.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void rpt_stmt::run ( rpt_stmt_result_ty  )  const [pure virtual]

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]

The get_nchildren method may be used to obtain the number of child nodes this node has.

Definition at line 86 of file stmt.h.

pointer rpt_stmt::nth_child ( size_t  n  )  const [protected]

The nth_child method may be used to obtain the given child statement.

Parameters:
n The shild to obtain, zero based.
Returns:
pointer to statement node, or NULL if too high

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

The assignment operator. Do not use.


Field Documentation

The child instance variable is used to remember the base of a dynamically allocated array of pointers to statement nodes, each a child of this node.

Definition at line 106 of file stmt.h.

size_t rpt_stmt::nchild [private]

The nchild instance variable is used to remember how many elements of the "child" array have been used to date.

Definition at line 112 of file stmt.h.

size_t rpt_stmt::nchild_max [private]

The nchild_max instance variable is used to remember how many elements of the "child" array were allocated. This is used to know when to allocate more.

Definition at line 119 of file stmt.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