GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_statement Class Reference

#include "pt-stmt.h"

Inheritance diagram for tree_statement:
tree

Public Member Functions

 tree_statement ()
 
 tree_statement (tree_command *c, comment_list *cl)
 
 tree_statement (tree_expression *e, comment_list *cl)
 
 ~tree_statement ()
 
void accept (tree_walker &tw)
 
std::string bp_cond () const
 
int column () const
 
tree_commandcommand ()
 
comment_listcomment_text ()
 
void delete_breakpoint ()
 
void echo_code (const std::string &prefix)
 
tree_expressionexpression ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
bool is_command () const
 
bool is_end_of_fcn_or_script () const
 
bool is_end_of_file () const
 
bool is_expression () const
 
bool is_null_statement () const
 
int line () const
 
bool print_result ()
 
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)
 
- Public Member Functions inherited from tree
 tree (int l=-1, int c=-1)
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
void column (int c)
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
void line (int l)
 
bool meets_bp_condition (tree_evaluator &tw) const
 
void set_location (int l, int c)
 
std::string str_print_code ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tree_statement() [1/3]

tree_statement::tree_statement ( )
inline

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

◆ tree_statement() [2/3]

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

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

◆ tree_statement() [3/3]

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

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

◆ ~tree_statement()

tree_statement::~tree_statement ( )

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

Member Function Documentation

◆ accept()

void tree_statement::accept ( tree_walker tw)
inlinevirtual

◆ bp_cond()

std::string tree_statement::bp_cond ( ) const

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

References tree::bp_cond().

◆ column()

int tree_statement::column ( ) const
virtual

Reimplemented from tree.

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

References tree::column().

Referenced by base_parser::start_function(), and tree_evaluator::visit_statement().

◆ command()

◆ comment_text()

comment_list* tree_statement::comment_text ( )
inline

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

Referenced by base_parser::make_script(), and tree_print_code::visit_statement().

◆ delete_breakpoint()

void tree_statement::delete_breakpoint ( )
virtual

Reimplemented from tree.

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

References tree::delete_breakpoint().

◆ echo_code()

void tree_statement::echo_code ( const std::string &  prefix)

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

References accept(), and octave_stdout.

◆ expression()

◆ is_active_breakpoint()

bool tree_statement::is_active_breakpoint ( tree_evaluator tw) const

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

References tree::is_active_breakpoint().

◆ is_breakpoint()

bool tree_statement::is_breakpoint ( ) const

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

References tree::is_breakpoint().

◆ is_command()

bool tree_statement::is_command ( ) const
inline

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

Referenced by tree_breakpoint::visit_statement().

◆ is_end_of_fcn_or_script()

bool tree_statement::is_end_of_fcn_or_script ( ) const

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

References tree_no_op_command::is_end_of_fcn_or_script().

◆ is_end_of_file()

bool tree_statement::is_end_of_file ( ) const

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

References tree_no_op_command::is_end_of_file().

◆ is_expression()

bool tree_statement::is_expression ( ) const
inline

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

Referenced by bp_table::condition_valid(), and tree_evaluator::eval_string().

◆ is_null_statement()

bool tree_statement::is_null_statement ( ) const
inline

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

Referenced by base_parser::set_stmt_print_flag().

◆ line()

int tree_statement::line ( ) const
virtual

Reimplemented from tree.

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

References tree::line().

Referenced by base_parser::start_function(), tree_breakpoint::visit_statement(), and tree_evaluator::visit_statement().

◆ print_result()

bool tree_statement::print_result ( )

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

References tree_expression::print_result().

Referenced by tree_print_code::visit_statement().

◆ set_breakpoint()

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

Reimplemented from tree.

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

References tree::set_breakpoint().

◆ set_command()

void tree_statement::set_command ( tree_command c)
inline

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

◆ set_expression()

void tree_statement::set_expression ( tree_expression e)
inline

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

Referenced by base_parser::make_try_command().

◆ set_location()

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

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

References tree::set_location().

◆ set_print_flag()

void tree_statement::set_print_flag ( bool  print_flag)

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

References tree_expression::set_print_flag().

Referenced by base_parser::set_stmt_print_flag().


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