GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_if_clause Class Reference

#include "pt-select.h"

Inheritance diagram for tree_if_clause:
tree

Public Member Functions

 tree_if_clause (const token &tok, tree_expression *e, tree_statement_list *sl)
 
 ~tree_if_clause ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
tree_statement_listcommands ()
 
tree_expressioncondition ()
 
filepos end_pos () const
 
token if_token () const
 
bool is_else_clause ()
 
comment_list leading_comments () const
 
- Public Member Functions inherited from tree
 tree ()
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
std::string str_print_code ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tree_if_clause()

tree_if_clause::tree_if_clause ( const token tok,
tree_expression e,
tree_statement_list sl 
)
inline

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

◆ ~tree_if_clause()

tree_if_clause::~tree_if_clause ( )

Definition at line 38 of file pt-select.cc.

Member Function Documentation

◆ accept()

void tree_if_clause::accept ( tree_walker tw)
inlinevirtual

◆ beg_pos()

filepos tree_if_clause::beg_pos ( ) const
inlinevirtual

Implements tree.

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

References token::beg_pos().

Referenced by tree_if_command_list::beg_pos().

◆ commands()

tree_statement_list * tree_if_clause::commands ( )
inline

Definition at line 68 of file pt-select.h.

Referenced by tree_print_code::visit_if_clause(), and tree_walker::visit_if_clause().

◆ condition()

tree_expression * tree_if_clause::condition ( )
inline

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

Referenced by tree_print_code::visit_if_clause(), and tree_walker::visit_if_clause().

◆ end_pos()

filepos tree_if_clause::end_pos ( ) const
inlinevirtual

Implements tree.

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

References tree_statement_list::end_pos().

Referenced by tree_if_command_list::end_pos().

◆ if_token()

token tree_if_clause::if_token ( ) const
inline

Definition at line 59 of file pt-select.h.

Referenced by tree_if_command_list::if_token().

◆ is_else_clause()

bool tree_if_clause::is_else_clause ( )
inline

Definition at line 61 of file pt-select.h.

Referenced by tree_print_code::visit_if_command_list().

◆ leading_comments()

comment_list tree_if_clause::leading_comments ( ) const
inlinevirtual

Reimplemented from tree.

Definition at line 70 of file pt-select.h.

References token::leading_comments().

Referenced by tree_print_code::visit_if_command_list().


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