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

#include "pt-loop.h"

Inheritance diagram for tree_while_command:
tree_command tree tree_do_until_command

Public Member Functions

 tree_while_command (int l=-1, int c=-1)
 
 tree_while_command (tree_expression *e, comment_list *lc=nullptr, comment_list *tc=nullptr, int l=-1, int c=-1)
 
 tree_while_command (tree_expression *e, tree_statement_list *lst, comment_list *lc=nullptr, comment_list *tc=nullptr, int l=-1, int c=-1)
 
 ~tree_while_command ()
 
void accept (tree_walker &tw)
 
tree_statement_listbody ()
 
tree_expressioncondition ()
 
comment_listleading_comment ()
 
comment_listtrailing_comment ()
 
- Public Member Functions inherited from tree_command
 tree_command (int l=-1, int c=-1)
 
virtual ~tree_command ()=default
 
- Public Member Functions inherited from tree
 tree (int l=-1, int c=-1)
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
void column (int c)
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
void line (int l)
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
void set_location (int l, int c)
 
std::string str_print_code ()
 

Protected Attributes

tree_expressionm_expr
 
comment_listm_lead_comm
 
tree_statement_listm_list
 
comment_listm_trail_comm
 

Detailed Description

Definition at line 44 of file pt-loop.h.

Constructor & Destructor Documentation

◆ tree_while_command() [1/3]

tree_while_command::tree_while_command ( int  l = -1,
int  c = -1 
)
inline

Definition at line 48 of file pt-loop.h.

◆ tree_while_command() [2/3]

tree_while_command::tree_while_command ( tree_expression e,
comment_list lc = nullptr,
comment_list tc = nullptr,
int  l = -1,
int  c = -1 
)
inline

Definition at line 53 of file pt-loop.h.

◆ tree_while_command() [3/3]

tree_while_command::tree_while_command ( tree_expression e,
tree_statement_list lst,
comment_list lc = nullptr,
comment_list tc = nullptr,
int  l = -1,
int  c = -1 
)
inline

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

◆ ~tree_while_command()

tree_while_command::~tree_while_command ( )

Definition at line 39 of file pt-loop.cc.

Member Function Documentation

◆ accept()

void tree_while_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

Reimplemented in tree_do_until_command.

Definition at line 81 of file pt-loop.h.

References tree_walker::visit_while_command().

◆ body()

◆ condition()

◆ leading_comment()

comment_list* tree_while_command::leading_comment ( )
inline

◆ trailing_comment()

comment_list* tree_while_command::trailing_comment ( )
inline

Member Data Documentation

◆ m_expr

tree_expression* tree_while_command::m_expr
protected

Definition at line 89 of file pt-loop.h.

Referenced by condition().

◆ m_lead_comm

comment_list* tree_while_command::m_lead_comm
protected

Definition at line 95 of file pt-loop.h.

Referenced by leading_comment().

◆ m_list

tree_statement_list* tree_while_command::m_list
protected

Definition at line 92 of file pt-loop.h.

Referenced by body().

◆ m_trail_comm

comment_list* tree_while_command::m_trail_comm
protected

Definition at line 98 of file pt-loop.h.

Referenced by trailing_comment().


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