GNU Octave  4.0.0
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)
 
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 (void) 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 print_result (void)
 
void set_breakpoint (void)
 
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 44 of file pt-stmt.h.

Constructor & Destructor Documentation

tree_statement::tree_statement ( void  )
inline

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

Referenced by dup().

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

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

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

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

tree_statement::~tree_statement ( void  )

Definition at line 53 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
void tree::column ( int  c)
inlineinherited

Definition at line 51 of file pt.h.

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 85 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 83 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 119 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 92 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 64 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 87 of file pt-stmt.h.

Referenced by octave_base_parser::set_stmt_print_flag().

void tree::line ( int  l)
inlineinherited

Definition at line 49 of file pt.h.

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

Definition at line 68 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  )
virtual

Reimplemented from tree.

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

void tree_statement::set_expression ( tree_expression e)
inline

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

Referenced by octave_base_parser::make_try_command().

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

Definition at line 110 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 39 of file pt.cc.

References tree::accept().

Referenced by jit_info::compile(), and tree_argument_list::get_arg_names().

Member Data Documentation

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

Definition at line 117 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: