Public Member Functions | Private Member Functions | Private Attributes

tree_statement Class Reference

#include "pt-stmt.h"

Collaboration diagram for tree_statement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tree_statement (void)
 tree_statement (tree_command *c, octave_comment_list *cl)
 tree_statement (tree_expression *e, octave_comment_list *cl)
 ~tree_statement (void)
void accept (tree_walker &tw)
int column (void) const
tree_commandcommand (void)
octave_comment_listcomment_text (void)
void delete_breakpoint (void)
tree_statementdup (symbol_table::scope_id scope, symbol_table::context_id context) const
void echo_code (void)
tree_expressionexpression (void)
bool is_breakpoint (void) const
bool is_command (void) const
bool is_end_of_fcn_or_script (void) const
bool is_expression (void) const
bool is_null_statement (void) const
int line (void) const
bool print_result (void)
void set_breakpoint (void)
void set_command (tree_command *c)
void set_expression (tree_expression *e)
void set_print_flag (bool print_flag)

Private Member Functions

 tree_statement (const tree_statement &)
tree_statementoperator= (const tree_statement &)

Private Attributes

tree_commandcmd
octave_comment_listcomm
tree_expressionexpr

Detailed Description

Definition at line 42 of file pt-stmt.h.


Constructor & Destructor Documentation

tree_statement::tree_statement ( void   )  [inline]

Definition at line 47 of file pt-stmt.h.

Referenced by dup().

tree_statement::tree_statement ( tree_command c,
octave_comment_list cl 
) [inline]

Definition at line 50 of file pt-stmt.h.

tree_statement::tree_statement ( tree_expression e,
octave_comment_list cl 
) [inline]

Definition at line 53 of file pt-stmt.h.

tree_statement::~tree_statement ( void   ) 

Definition at line 52 of file pt-stmt.cc.

References cmd, comm, and expr.

tree_statement::tree_statement ( const tree_statement  )  [private]

Member Function Documentation

void tree_statement::accept ( tree_walker tw  ) 
int tree_statement::column ( void   )  const
tree_command* tree_statement::command ( void   )  [inline]
octave_comment_list* tree_statement::comment_text ( void   )  [inline]

Definition at line 81 of file pt-stmt.h.

Referenced by tree_print_code::visit_statement().

void tree_statement::delete_breakpoint ( void   ) 

Definition at line 82 of file pt-stmt.cc.

References cmd, tree::delete_breakpoint(), and expr.

Referenced by tree_breakpoint::take_action().

tree_statement * tree_statement::dup ( symbol_table::scope_id  scope,
symbol_table::context_id  context 
) const
void tree_statement::echo_code ( void   ) 

Definition at line 109 of file pt-stmt.cc.

References accept(), octave_stdout, and VPS4.

Referenced by tree_evaluator::visit_statement().

tree_expression* tree_statement::expression ( void   )  [inline]
bool tree_statement::is_breakpoint ( void   )  const

Definition at line 91 of file pt-stmt.cc.

References cmd, expr, and tree::is_breakpoint().

Referenced by tree_evaluator::do_breakpoint(), and tree_breakpoint::take_action().

bool tree_statement::is_command ( void   )  const [inline]

Definition at line 62 of file pt-stmt.h.

Referenced by tree_breakpoint::visit_statement().

bool tree_statement::is_end_of_fcn_or_script ( void   )  const

Definition at line 117 of file pt-stmt.cc.

References cmd, and tree_no_op_command::is_end_of_fcn_or_script().

Referenced by tree_evaluator::do_breakpoint().

bool tree_statement::is_expression ( void   )  const [inline]

Definition at line 64 of file pt-stmt.h.

bool tree_statement::is_null_statement ( void   )  const [inline]

Definition at line 83 of file pt-stmt.h.

int tree_statement::line ( void   )  const
tree_statement& tree_statement::operator= ( const tree_statement  )  [private]
bool tree_statement::print_result ( void   ) 

Definition at line 67 of file pt-stmt.cc.

References expr, and tree_expression::print_result().

Referenced by tree_print_code::visit_statement().

void tree_statement::set_breakpoint ( void   ) 

Definition at line 73 of file pt-stmt.cc.

References cmd, expr, and tree::set_breakpoint().

Referenced by tree_breakpoint::take_action().

void tree_statement::set_command ( tree_command c  )  [inline]

Definition at line 91 of file pt-stmt.h.

void tree_statement::set_expression ( tree_expression e  )  [inline]

Definition at line 93 of file pt-stmt.h.

void tree_statement::set_print_flag ( bool  print_flag  ) 

Definition at line 60 of file pt-stmt.cc.

References expr, and tree_expression::set_print_flag().


Member Data Documentation

Definition at line 111 of file pt-stmt.h.

Referenced by dup(), and ~tree_statement().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines