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

#include "pt-array-list.h"

Inheritance diagram for tree_array_list:
tree_expression base_list< tree_argument_list * > tree tree_cell tree_matrix

Public Types

typedef base_list< tree_argument_list * >::const_iterator const_iterator
 
typedef base_list< tree_argument_list * >::iterator iterator
 
- Public Types inherited from base_list< tree_argument_list * >
typedef std::list< tree_argument_list * >::const_iterator const_iterator
 
typedef std::list< tree_argument_list * >::const_reverse_iterator const_reverse_iterator
 
typedef std::list< tree_argument_list * >::iterator iterator
 
typedef std::list< tree_argument_list * >::reverse_iterator reverse_iterator
 

Public Member Functions

 ~tree_array_list ()
 
void accept (tree_walker &tw)
 
bool all_elements_are_constant () const
 
void copy_base (const tree_array_list &array_list)
 
void copy_base (const tree_array_list &array_list, symbol_scope &scope)
 
virtual void copy_base (const tree_expression &e)
 
tree_expressiondup (symbol_scope &scope) 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 octave_value evaluate (tree_evaluator &tw, int nargout=1)=0
 
virtual octave_value_list evaluate_n (tree_evaluator &tw, int nargout=1)=0
 
virtual bool is_assignment_expression () const
 
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 oper () const
 
virtual std::string original_text () const
 
int paren_count () const
 
char postfix_index () const
 
bool print_result () const
 
virtual bool rvalue_ok () 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 ()
 
- Public Member Functions inherited from base_list< tree_argument_list * >
 base_list ()=default
 
 base_list (const base_list &bl)=default
 
 base_list (const std::list< tree_argument_list * > &l)
 
virtual ~base_list ()=default
 
void append (const tree_argument_list * &s)
 
tree_argument_list * & back ()
 
const tree_argument_list * & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
tree_argument_list * & front ()
 
const tree_argument_list * & front () const
 
std::size_t length () const
 
base_listoperator= (const base_list &bl)=default
 
void pop_back ()
 
void pop_front ()
 
void push_back (const tree_argument_list * &s)
 
void push_front (const tree_argument_list * &s)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
void remove_if (P pred)
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
std::size_t size () const
 

Protected Member Functions

 tree_array_list (tree_argument_list *row=nullptr, int l=-1, int c=-1)
 

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
 
- Protected Attributes inherited from base_list< tree_argument_list * >
std::list< tree_argument_list * > m_lst
 

Detailed Description

Definition at line 42 of file pt-array-list.h.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ tree_array_list()

tree_array_list::tree_array_list ( tree_argument_list row = nullptr,
int  l = -1,
int  c = -1 
)
inlineprotected

Definition at line 52 of file pt-array-list.h.

References base_list< tree_argument_list * >::append().

◆ ~tree_array_list()

tree_array_list::~tree_array_list ( )

Definition at line 37 of file pt-array-list.cc.

Member Function Documentation

◆ accept()

void tree_array_list::accept ( tree_walker tw)
virtual

Implements tree.

Reimplemented in tree_matrix, and tree_cell.

Definition at line 85 of file pt-array-list.cc.

References panic_impossible.

Referenced by base_parser::finish_array_list().

◆ all_elements_are_constant()

bool tree_array_list::all_elements_are_constant ( ) const

◆ copy_base() [1/3]

void tree_array_list::copy_base ( const tree_array_list array_list)

Definition at line 62 of file pt-array-list.cc.

References tree_expression::copy_base().

Referenced by tree_cell::dup(), and tree_matrix::dup().

◆ copy_base() [2/3]

void tree_array_list::copy_base ( const tree_array_list array_list,
symbol_scope scope 
)

Definition at line 68 of file pt-array-list.cc.

References base_list< tree_argument_list * >::append(), and copy_base().

◆ copy_base() [3/3]

virtual void tree_expression::copy_base
inline

Definition at line 128 of file pt-exp.h.

Referenced by copy_base().

◆ dup()

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

Implements tree_expression.

Reimplemented in tree_matrix, and tree_cell.

Definition at line 78 of file pt-array-list.cc.

References panic_impossible.


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