GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tree_statement Class Reference

#include "pt-stmt.h"

Inheritance diagram for tree_statement:
Inheritance graph
[legend]
Collaboration diagram for tree_statement:
Collaboration graph
[legend]

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)
 
std::string bp_cond () const
 
void column (int c)
 
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 (bool check_valid=false) const
 
bool is_command (void) const
 
bool is_end_of_fcn_or_script (void) const
 
bool is_end_of_file (void) const
 
bool is_expression (void) const
 
bool is_null_statement (void) const
 
void line (int l)
 
int line (void) const
 
bool meets_bp_condition (void) const
 
bool print_result (void)
 
void set_breakpoint (const std::string &condition)
 
void set_command (tree_command *c)
 
void set_expression (tree_expression *e)
 
void set_location (int l, int c)
 
void set_print_flag (bool print_flag)
 
std::string str_print_code (void)
 

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 46 of file pt-stmt.h.

Constructor & Destructor Documentation

tree_statement::tree_statement ( void  )
inline

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

Referenced by dup().

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

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

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

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

tree_statement::~tree_statement ( void  )

Definition at line 55 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)
virtual
std::string tree_statement::bp_cond ( void  ) const

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

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

Referenced by tree_breakpoint::take_action().

void tree::column ( int  c)
inlineinherited

Definition at line 55 of file pt.h.

References c.

int tree_statement::column ( void  ) const
virtual
tree_command* tree_statement::command ( void  )
inline
octave_comment_list* tree_statement::comment_text ( void  )
inline

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

Referenced by tree_print_code::visit_statement().

void tree_statement::delete_breakpoint ( void  )
virtual

Reimplemented from tree.

Definition at line 85 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 128 of file pt-stmt.cc.

References accept(), octave_stdout, and VPS4.

Referenced by octave::tree_evaluator::visit_statement().

tree_expression* tree_statement::expression ( void  )
inline
bool tree_statement::is_breakpoint ( bool  check_valid = false) const

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

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

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

bool tree_statement::is_command ( void  ) const
inline

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

Referenced by tree_breakpoint::visit_statement().

bool tree_statement::is_end_of_fcn_or_script ( void  ) const
bool tree_statement::is_end_of_file ( void  ) const
bool tree_statement::is_expression ( void  ) const
inline
bool tree_statement::is_null_statement ( void  ) const
inline

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

Referenced by octave::base_parser::set_stmt_print_flag().

void tree::line ( int  l)
inlineinherited

Definition at line 53 of file pt.h.

int tree_statement::line ( void  ) const
virtual
bool tree::meets_bp_condition ( void  ) const
inherited
tree_statement& tree_statement::operator= ( const tree_statement )
private
bool tree_statement::print_result ( void  )

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

References expr, and tree_expression::print_result().

Referenced by tree_print_code::visit_statement().

void tree_statement::set_breakpoint ( const std::string condition)
virtual

Reimplemented from tree.

Definition at line 76 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 100 of file pt-stmt.h.

References c.

void tree_statement::set_expression ( tree_expression e)
inline

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

References e.

Referenced by octave::base_parser::make_try_command().

void tree_statement::set_location ( int  l,
int  c 
)

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

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

Referenced by octave_user_function::maybe_relocate_end_internal().

void tree_statement::set_print_flag ( bool  print_flag)
std::string tree::str_print_code ( void  )
inherited

Definition at line 40 of file pt.cc.

References tree::accept(), retval, and string.

Referenced by jit_info::compile().

Member Data Documentation

tree_command* tree_statement::cmd
private
octave_comment_list* tree_statement::comm
private

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

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

tree_expression* tree_statement::expr
private

The documentation for this class was generated from the following files: