GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
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 parfor, const token &for_tok, const token &open_paren, tree_expression *le, const token &eq_tok, tree_expression *re, const token &sep_tok, tree_expression *maxproc_arg, const token &close_paren, tree_statement_list *body, const token &end_tok)
 
 ~tree_simple_for_command ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
tree_statement_listbody ()
 
token close_paren () const
 
tree_expressioncontrol_expr ()
 
filepos end_pos () const
 
token end_token () const
 
token for_token () const
 
bool in_parallel ()
 
comment_list leading_comments () const
 
tree_expressionleft_hand_side ()
 
tree_expressionmaxproc_expr ()
 
token open_paren () const
 
comment_list trailing_comments () const
 
- Public Member Functions inherited from tree_command
 tree_command ()=default
 
virtual ~tree_command ()=default
 
virtual void update_end_pos (const filepos &)
 
- 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 137 of file pt-loop.h.

Constructor & Destructor Documentation

◆ tree_simple_for_command()

tree_simple_for_command::tree_simple_for_command ( bool  parfor,
const token for_tok,
const token open_paren,
tree_expression le,
const token eq_tok,
tree_expression re,
const token sep_tok,
tree_expression maxproc_arg,
const token close_paren,
tree_statement_list body,
const token end_tok 
)
inline

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

◆ ~tree_simple_for_command()

tree_simple_for_command::~tree_simple_for_command ( )

Definition at line 55 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().

◆ beg_pos()

filepos tree_simple_for_command::beg_pos ( ) const
inlinevirtual

Implements tree.

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

◆ body()

◆ close_paren()

token tree_simple_for_command::close_paren ( ) const
inline

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

◆ control_expr()

◆ end_pos()

filepos tree_simple_for_command::end_pos ( ) const
inlinevirtual

Implements tree.

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

◆ end_token()

token tree_simple_for_command::end_token ( ) const
inline

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

◆ for_token()

token tree_simple_for_command::for_token ( ) const
inline

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

◆ in_parallel()

bool tree_simple_for_command::in_parallel ( )
inline

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

Referenced by tree_print_code::visit_simple_for_command().

◆ leading_comments()

comment_list tree_simple_for_command::leading_comments ( ) const
inlinevirtual

Implements tree.

Definition at line 158 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

◆ open_paren()

token tree_simple_for_command::open_paren ( ) const
inline

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

◆ trailing_comments()

comment_list tree_simple_for_command::trailing_comments ( ) const
inlinevirtual

Implements tree.

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


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