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

#include "pt-stmt.h"

Inheritance diagram for octave::tree_statement:
Collaboration diagram for octave::tree_statement:

Public Member Functions

 tree_statement (void)
 tree_statement (tree_command *c, comment_list *cl)
 tree_statement (tree_expression *e, comment_list *cl)
 tree_statement (const tree_statement &)=delete
 ~tree_statement (void)
void accept (tree_walker &tw)
std::string bp_cond () const
void column (int c)
int column (void) const
tree_commandcommand (void)
comment_listcomment_text (void)
void delete_breakpoint (void)
void echo_code (const std::string &prefix)
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
tree_statementoperator= (const tree_statement &)=delete
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 Attributes


Detailed Description

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

Constructor & Destructor Documentation

◆ tree_statement() [1/4]

octave::tree_statement::tree_statement ( void  )

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

◆ tree_statement() [2/4]

octave::tree_statement::tree_statement ( tree_command c,
comment_list cl 

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

◆ tree_statement() [3/4]

octave::tree_statement::tree_statement ( tree_expression e,
comment_list cl 

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

◆ tree_statement() [4/4]

octave::tree_statement::tree_statement ( const tree_statement )

◆ ~tree_statement()

octave::tree_statement::~tree_statement ( void  )

Definition at line 53 of file

References m_command, m_comment_list, and m_expression.

Member Function Documentation

◆ accept()

void octave::tree_statement::accept ( tree_walker tw)

◆ bp_cond()

std::string octave::tree_statement::bp_cond ( void  ) const

Definition at line 99 of file

References octave::tree::bp_cond(), m_command, and m_expression.

Referenced by octave::tree_breakpoint::take_action().

◆ column() [1/2]

void octave::tree::column ( int  c)

Definition at line 62 of file pt.h.

References c, and octave::tree::m_column_num.

◆ column() [2/2]

int octave::tree_statement::column ( void  ) const

◆ command()

◆ comment_text()

comment_list* octave::tree_statement::comment_text ( void  )

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

References m_comment_list.

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

◆ delete_breakpoint()

void octave::tree_statement::delete_breakpoint ( void  )

Reimplemented from octave::tree.

Definition at line 83 of file

References octave::tree::delete_breakpoint(), m_command, and m_expression.

Referenced by octave::tree_breakpoint::take_action().

◆ echo_code()

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

Definition at line 132 of file

References accept(), and octave_stdout.

◆ expression()

◆ is_breakpoint()

bool octave::tree_statement::is_breakpoint ( bool  check_valid = false) const

◆ is_command()

bool octave::tree_statement::is_command ( void  ) const

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

References m_command.

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

◆ is_end_of_fcn_or_script()

bool octave::tree_statement::is_end_of_fcn_or_script ( void  ) const

◆ is_end_of_file()

bool octave::tree_statement::is_end_of_file ( void  ) const

◆ is_expression()

bool octave::tree_statement::is_expression ( void  ) const

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

References m_expression.

Referenced by octave::bp_table::condition_valid().

◆ is_null_statement()

bool octave::tree_statement::is_null_statement ( void  ) const

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

References m_command, m_comment_list, and m_expression.

◆ line() [1/2]

void octave::tree::line ( int  l)

Definition at line 60 of file pt.h.

References octave::tree::m_line_num.

◆ line() [2/2]

◆ meets_bp_condition()

◆ operator=()

tree_statement& octave::tree_statement::operator= ( const tree_statement )

◆ print_result()

bool octave::tree_statement::print_result ( void  )

◆ set_breakpoint()

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

Reimplemented from octave::tree.

Definition at line 74 of file

References m_command, m_expression, and octave::tree::set_breakpoint().

Referenced by octave::tree_breakpoint::take_action().

◆ set_command()

void octave::tree_statement::set_command ( tree_command c)

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

References c, and m_command.

◆ set_expression()

void octave::tree_statement::set_expression ( tree_expression e)

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

References e, and m_expression.

◆ set_location()

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

◆ set_print_flag()

void octave::tree_statement::set_print_flag ( bool  print_flag)

Definition at line 61 of file

References m_expression, and octave::tree_expression::set_print_flag().

◆ str_print_code()

std::string octave::tree::str_print_code ( void  )

Definition at line 42 of file

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

Referenced by octave::jit_info::compile().

Member Data Documentation

◆ m_command

◆ m_comment_list

comment_list* octave::tree_statement::m_comment_list

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

Referenced by comment_text(), is_null_statement(), and ~tree_statement().

◆ m_expression

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