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

#include "pt-assign.h"

Inheritance diagram for tree_multi_assignment:
tree_expression tree

Public Member Functions

 tree_multi_assignment (bool plhs=false, int l=-1, int c=-1)
 
 tree_multi_assignment (tree_argument_list *lst, tree_expression *r, bool plhs=false, int l=-1, int c=-1)
 
 ~tree_multi_assignment ()
 
void accept (tree_walker &tw)
 
tree_expressiondup (symbol_scope &scope) const
 
octave_value evaluate (tree_evaluator &tw, int nargout=1)
 
octave_value_list evaluate_n (tree_evaluator &tw, int nargout=1)
 
bool is_assignment_expression () const
 
tree_argument_listleft_hand_side ()
 
octave_value::assign_op op_type () const
 
std::string oper () const
 
tree_expressionright_hand_side ()
 
bool rvalue_ok () const
 
- Public Member Functions inherited from tree_expression
 tree_expression (int l=-1, int c=-1)
 
virtual ~tree_expression ()=default
 
virtual void copy_base (const tree_expression &e)
 
virtual bool is_binary_expression () const
 
virtual bool is_boolean_expression () const
 
virtual bool is_colon_expression () const
 
virtual bool is_constant () const
 
bool is_for_cmd_expr () const
 
virtual bool is_identifier () const
 
virtual bool is_index_expression () const
 
virtual bool is_matrix () const
 
bool is_postfix_indexed () const
 
virtual bool is_prefix_expression () const
 
virtual bool is_unary_expression () const
 
virtual bool iscell () const
 
virtual octave_lvalue lvalue (tree_evaluator &)
 
virtual bool lvalue_ok () const
 
void mark_as_for_cmd_expr ()
 
tree_expressionmark_in_parens ()
 
virtual std::string name () const
 
virtual std::string original_text () const
 
int paren_count () const
 
char postfix_index () const
 
bool print_result () const
 
tree_expressionset_postfix_index (char type)
 
tree_expressionset_print_flag (bool print)
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from tree_expression
bool m_for_cmd_expr
 
int m_num_parens
 
char m_postfix_index_type
 
bool m_print_flag
 

Detailed Description

Definition at line 118 of file pt-assign.h.

Constructor & Destructor Documentation

◆ tree_multi_assignment() [1/2]

tree_multi_assignment::tree_multi_assignment ( bool  plhs = false,
int  l = -1,
int  c = -1 
)
inline

Definition at line 122 of file pt-assign.h.

◆ tree_multi_assignment() [2/2]

tree_multi_assignment::tree_multi_assignment ( tree_argument_list lst,
tree_expression r,
bool  plhs = false,
int  l = -1,
int  c = -1 
)

Definition at line 156 of file pt-assign.cc.

◆ ~tree_multi_assignment()

tree_multi_assignment::~tree_multi_assignment ( )

Definition at line 162 of file pt-assign.cc.

Member Function Documentation

◆ accept()

void tree_multi_assignment::accept ( tree_walker tw)
inlinevirtual

Implements tree.

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

References tree_walker::visit_multi_assignment().

◆ dup()

tree_expression * tree_multi_assignment::dup ( symbol_scope scope) const
virtual

Implements tree_expression.

Definition at line 177 of file pt-assign.cc.

References panic_impossible.

◆ evaluate()

octave_value tree_multi_assignment::evaluate ( tree_evaluator tw,
int  nargout = 1 
)
inlinevirtual

Implements tree_expression.

Definition at line 146 of file pt-assign.h.

References evaluate_n(), octave_value_list::length(), and octave_value().

◆ evaluate_n()

◆ is_assignment_expression()

bool tree_multi_assignment::is_assignment_expression ( ) const
inlinevirtual

Reimplemented from tree_expression.

Definition at line 134 of file pt-assign.h.

◆ left_hand_side()

tree_argument_list* tree_multi_assignment::left_hand_side ( )
inline

◆ op_type()

octave_value::assign_op tree_multi_assignment::op_type ( ) const
inline

Definition at line 160 of file pt-assign.h.

References octave_value::op_asn_eq.

Referenced by oper().

◆ oper()

std::string tree_multi_assignment::oper ( ) const
virtual

Reimplemented from tree_expression.

Definition at line 171 of file pt-assign.cc.

References octave_value::assign_op_as_string(), and op_type().

Referenced by tree_print_code::visit_multi_assignment().

◆ right_hand_side()

tree_expression* tree_multi_assignment::right_hand_side ( )
inline

◆ rvalue_ok()

bool tree_multi_assignment::rvalue_ok ( ) const
inlinevirtual

Reimplemented from tree_expression.

Definition at line 136 of file pt-assign.h.


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