GNU Octave  8.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:
Collaboration diagram for tree_argument_list:

Public Types

typedef std::list< tree_expression * >::const_iterator const_iterator
 
typedef std::list< tree_expression * >::const_reverse_iterator const_reverse_iterator
 
typedef tree_expressionelement_type
 
typedef std::list< tree_expression * >::iterator iterator
 
typedef std::list< tree_expression * >::reverse_iterator reverse_iterator
 

Public Member Functions

 tree_argument_list (const tree_argument_list &)=delete
 
 tree_argument_list (tree_expression *t)
 
 tree_argument_list (void)
 
 ~tree_argument_list (void)
 
void accept (tree_walker &tw)
 
bool all_elements_are_constant (void) const
 
void append (const element_type &s)
 
void append (const tree_expression * &s)
 
tree_expression * & back (void)
 
const tree_expression * & back (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
void clear (void)
 
tree_argument_listdup (symbol_scope &scope) const
 
bool empty (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
iterator erase (iterator pos)
 
tree_expression * & front (void)
 
const tree_expression * & front (void) const
 
string_vector get_arg_names (void) const
 
bool has_magic_tilde (void) const
 
bool includes_magic_tilde (void) const
 
bool is_simple_assign_lhs (void)
 
bool is_valid_lvalue_list (void) const
 
std::size_t length (void) const
 
void mark_as_simple_assign_lhs (void)
 
tree_argument_listoperator= (const tree_argument_list &)=delete
 
void pop_back (void)
 
void pop_front (void)
 
void push_back (const tree_expression * &s)
 
void push_front (const tree_expression * &s)
 
reverse_iterator rbegin (void)
 
const_reverse_iterator rbegin (void) const
 
tree_expressionremove_front (void)
 
void remove_if (P pred)
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
std::size_t size (void) const
 
std::list< std::string > variable_names (void) const
 

Protected Attributes

std::list< tree_expression * > m_lst
 

Private Attributes

bool m_list_includes_magic_tilde
 
bool m_simple_assign_lhs
 

Detailed Description

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

Member Typedef Documentation

◆ const_iterator

typedef std::list<tree_expression * >::const_iterator base_list< tree_expression * >::const_iterator
inherited

Definition at line 44 of file base-list.h.

◆ const_reverse_iterator

Definition at line 48 of file base-list.h.

◆ element_type

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

◆ iterator

typedef std::list<tree_expression * >::iterator base_list< tree_expression * >::iterator
inherited

Definition at line 43 of file base-list.h.

◆ reverse_iterator

Definition at line 46 of file base-list.h.

Constructor & Destructor Documentation

◆ tree_argument_list() [1/3]

tree_argument_list::tree_argument_list ( void  )
inline

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

Referenced by dup().

◆ tree_argument_list() [2/3]

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() [3/3]

tree_argument_list::tree_argument_list ( const tree_argument_list )
delete

◆ ~tree_argument_list()

tree_argument_list::~tree_argument_list ( void  )

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 ( void  ) 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() [1/2]

void tree_argument_list::append ( const element_type s)

◆ append() [2/2]

void base_list< tree_expression * >::append ( const tree_expression * &  s)
inlineinherited

Definition at line 92 of file base-list.h.

◆ back() [1/2]

tree_expression * & base_list< tree_expression * >::back ( void  )
inlineinherited

Definition at line 80 of file base-list.h.

◆ back() [2/2]

const tree_expression * & base_list< tree_expression * >::back ( void  ) const
inlineinherited

Definition at line 83 of file base-list.h.

◆ begin() [1/2]

iterator base_list< tree_expression * >::begin ( void  )
inlineinherited

Definition at line 65 of file base-list.h.

◆ begin() [2/2]

const_iterator base_list< tree_expression * >::begin ( void  ) const
inlineinherited

Definition at line 66 of file base-list.h.

◆ clear()

void base_list< tree_expression * >::clear ( void  )
inlineinherited

Definition at line 63 of file base-list.h.

◆ dup()

tree_argument_list * tree_argument_list::dup ( symbol_scope scope) const

◆ empty()

bool base_list< tree_expression * >::empty ( void  ) const
inlineinherited

Definition at line 50 of file base-list.h.

◆ end() [1/2]

iterator base_list< tree_expression * >::end ( void  )
inlineinherited

Definition at line 68 of file base-list.h.

◆ end() [2/2]

const_iterator base_list< tree_expression * >::end ( void  ) const
inlineinherited

Definition at line 69 of file base-list.h.

◆ erase()

iterator base_list< tree_expression * >::erase ( iterator  pos)
inlineinherited

Definition at line 55 of file base-list.h.

◆ front() [1/2]

tree_expression * & base_list< tree_expression * >::front ( void  )
inlineinherited

Definition at line 79 of file base-list.h.

◆ front() [2/2]

const tree_expression * & base_list< tree_expression * >::front ( void  ) const
inlineinherited

Definition at line 82 of file base-list.h.

◆ get_arg_names()

string_vector tree_argument_list::get_arg_names ( void  ) const

◆ has_magic_tilde()

bool tree_argument_list::has_magic_tilde ( void  ) const
inline

◆ includes_magic_tilde()

bool tree_argument_list::includes_magic_tilde ( void  ) const
inline

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

References m_list_includes_magic_tilde.

◆ is_simple_assign_lhs()

bool tree_argument_list::is_simple_assign_lhs ( void  )
inline

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

References m_simple_assign_lhs.

Referenced by base_parser::make_assign_op().

◆ is_valid_lvalue_list()

bool tree_argument_list::is_valid_lvalue_list ( void  ) const

◆ length()

std::size_t base_list< tree_expression * >::length ( void  ) const
inlineinherited

Definition at line 53 of file base-list.h.

◆ mark_as_simple_assign_lhs()

void tree_argument_list::mark_as_simple_assign_lhs ( void  )
inline

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

References m_simple_assign_lhs.

Referenced by base_parser::validate_matrix_for_assignment().

◆ operator=()

tree_argument_list& tree_argument_list::operator= ( const tree_argument_list )
delete

◆ pop_back()

void base_list< tree_expression * >::pop_back ( void  )
inlineinherited

Definition at line 89 of file base-list.h.

◆ pop_front()

void base_list< tree_expression * >::pop_front ( void  )
inlineinherited

Definition at line 88 of file base-list.h.

◆ push_back()

void base_list< tree_expression * >::push_back ( const tree_expression * &  s)
inlineinherited

Definition at line 86 of file base-list.h.

◆ push_front()

void base_list< tree_expression * >::push_front ( const tree_expression * &  s)
inlineinherited

Definition at line 85 of file base-list.h.

◆ rbegin() [1/2]

reverse_iterator base_list< tree_expression * >::rbegin ( void  )
inlineinherited

Definition at line 71 of file base-list.h.

◆ rbegin() [2/2]

const_reverse_iterator base_list< tree_expression * >::rbegin ( void  ) const
inlineinherited

Definition at line 72 of file base-list.h.

◆ remove_front()

tree_expression* tree_argument_list::remove_front ( void  )
inline

◆ remove_if()

void base_list< tree_expression * >::remove_if ( pred)
inlineinherited

Definition at line 58 of file base-list.h.

◆ rend() [1/2]

reverse_iterator base_list< tree_expression * >::rend ( void  )
inlineinherited

Definition at line 75 of file base-list.h.

◆ rend() [2/2]

const_reverse_iterator base_list< tree_expression * >::rend ( void  ) const
inlineinherited

Definition at line 76 of file base-list.h.

◆ size()

std::size_t base_list< tree_expression * >::size ( void  ) const
inlineinherited

Definition at line 52 of file base-list.h.

◆ variable_names()

Member Data Documentation

◆ m_list_includes_magic_tilde

bool tree_argument_list::m_list_includes_magic_tilde
private

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

Referenced by append(), has_magic_tilde(), and includes_magic_tilde().

◆ m_lst

std::list<tree_expression * > base_list< tree_expression * >::m_lst
protectedinherited

Definition at line 106 of file base-list.h.

◆ m_simple_assign_lhs

bool tree_argument_list::m_simple_assign_lhs
private

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

Referenced by dup(), is_simple_assign_lhs(), and mark_as_simple_assign_lhs().


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