GNU Octave 10.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 ()
 
tree_expressioncontrol_expr ()
 
filepos end_pos () const
 
bool in_parallel ()
 
tree_expressionleft_hand_side ()
 
tree_expressionmaxproc_expr ()
 
- 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 comment_list leading_comments () 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 123 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 127 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 152 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 141 of file pt-loop.h.

References token::beg_pos().

◆ body()

◆ control_expr()

◆ end_pos()

filepos tree_simple_for_command::end_pos ( ) const
inlinevirtual

Implements tree.

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

References token::end_pos().

◆ in_parallel()

bool tree_simple_for_command::in_parallel ( )
inline

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

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