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

#include "pt-loop.h"

Inheritance diagram for tree_simple_for_command:
tree_command tree

Public Member Functions

 tree_simple_for_command (bool parallel_arg, tree_expression *le, tree_expression *re, tree_expression *maxproc_arg, tree_statement_list *lst, comment_list *lc=nullptr, comment_list *tc=nullptr, int l=-1, int c=-1)
 
 tree_simple_for_command (int l=-1, int c=-1)
 
 ~tree_simple_for_command ()
 
void accept (tree_walker &tw)
 
tree_statement_listbody ()
 
tree_expressioncontrol_expr ()
 
bool in_parallel ()
 
comment_listleading_comment ()
 
tree_expressionleft_hand_side ()
 
tree_expressionmaxproc_expr ()
 
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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tree_simple_for_command() [1/2]

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

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

◆ tree_simple_for_command() [2/2]

tree_simple_for_command::tree_simple_for_command ( bool  parallel_arg,
tree_expression le,
tree_expression re,
tree_expression maxproc_arg,
tree_statement_list lst,
comment_list lc = nullptr,
comment_list tc = nullptr,
int  l = -1,
int  c = -1 
)
inline

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

◆ ~tree_simple_for_command()

tree_simple_for_command::~tree_simple_for_command ( )

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

Member Function Documentation

◆ accept()

void tree_simple_for_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

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

References tree_walker::visit_simple_for_command().

◆ body()

◆ control_expr()

◆ in_parallel()

bool tree_simple_for_command::in_parallel ( )
inline

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

Referenced by tree_print_code::visit_simple_for_command().

◆ leading_comment()

comment_list* tree_simple_for_command::leading_comment ( )
inline

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

Referenced by tree_print_code::visit_simple_for_command().

◆ left_hand_side()

◆ maxproc_expr()

tree_expression* tree_simple_for_command::maxproc_expr ( )
inline

◆ trailing_comment()

comment_list* tree_simple_for_command::trailing_comment ( )
inline

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

Referenced by tree_print_code::visit_simple_for_command().


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