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

#include "pt-arg-list.h"

Inheritance diagram for tree_argument_list:
base_list< tree_expression * >

Public Types

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

Public Member Functions

 tree_argument_list ()
 
 tree_argument_list (tree_expression *t)
 
 ~tree_argument_list ()
 
void accept (tree_walker &tw)
 
bool all_elements_are_constant () const
 
void append (const element_type &s)
 
tree_argument_listdup (symbol_scope &scope) const
 
string_vector get_arg_names () const
 
bool has_magic_tilde () const
 
bool includes_magic_tilde () const
 
bool is_simple_assign_lhs ()
 
bool is_valid_lvalue_list () const
 
void mark_as_simple_assign_lhs ()
 
tree_expressionremove_front ()
 
std::list< std::string > variable_names () const
 
- Public Member Functions inherited from base_list< tree_expression * >
 base_list ()=default
 
 base_list (const base_list &bl)=default
 
 base_list (const std::list< tree_expression * > &l)
 
virtual ~base_list ()=default
 
void append (const tree_expression * &s)
 
tree_expression * & back ()
 
const tree_expression * & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
tree_expression * & front ()
 
const tree_expression * & 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_expression * &s)
 
void push_front (const tree_expression * &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
 

Additional Inherited Members

- Protected Attributes inherited from base_list< tree_expression * >
std::list< tree_expression * > m_lst
 

Detailed Description

Definition at line 50 of file pt-arg-list.h.

Member Typedef Documentation

◆ element_type

Definition at line 54 of file pt-arg-list.h.

Constructor & Destructor Documentation

◆ tree_argument_list() [1/2]

tree_argument_list::tree_argument_list ( )
inline

Definition at line 56 of file pt-arg-list.h.

Referenced by dup().

◆ tree_argument_list() [2/2]

tree_argument_list::tree_argument_list ( tree_expression t)
inline

Definition at line 60 of file pt-arg-list.h.

References append().

◆ ~tree_argument_list()

tree_argument_list::~tree_argument_list ( )

Definition at line 46 of file pt-arg-list.cc.

Member Function Documentation

◆ accept()

◆ all_elements_are_constant()

bool tree_argument_list::all_elements_are_constant ( ) const

Definition at line 69 of file pt-arg-list.cc.

References tree_expression::is_constant().

Referenced by tree_array_list::all_elements_are_constant().

◆ append()

void tree_argument_list::append ( const element_type s)

Definition at line 57 of file pt-arg-list.cc.

References base_list< elt_type >::append(), and tree_expression::is_identifier().

Referenced by tree_argument_list(), and dup().

◆ dup()

tree_argument_list * tree_argument_list::dup ( symbol_scope scope) const

Definition at line 141 of file pt-arg-list.cc.

References tree_argument_list(), append(), and tree_expression::dup().

◆ get_arg_names()

string_vector tree_argument_list::get_arg_names ( ) const

◆ has_magic_tilde()

bool tree_argument_list::has_magic_tilde ( ) const
inline

◆ includes_magic_tilde()

bool tree_argument_list::includes_magic_tilde ( ) const
inline

Definition at line 73 of file pt-arg-list.h.

◆ is_simple_assign_lhs()

bool tree_argument_list::is_simple_assign_lhs ( )
inline

Definition at line 90 of file pt-arg-list.h.

Referenced by base_parser::make_assign_op().

◆ is_valid_lvalue_list()

bool tree_argument_list::is_valid_lvalue_list ( ) const

◆ mark_as_simple_assign_lhs()

void tree_argument_list::mark_as_simple_assign_lhs ( )
inline

Definition at line 88 of file pt-arg-list.h.

Referenced by base_parser::validate_matrix_for_assignment().

◆ remove_front()

tree_expression* tree_argument_list::remove_front ( )
inline

◆ variable_names()


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