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

#include "pt-misc.h"

Inheritance diagram for tree_parameter_list:
base_list< tree_decl_elt * >

Public Types

enum  in_or_out { in = 1 , out = 2 }
 
- Public Types inherited from base_list< tree_decl_elt * >
typedef std::list< tree_decl_elt * >::const_iterator const_iterator
 
typedef std::list< tree_decl_elt * >::const_reverse_iterator const_reverse_iterator
 
typedef std::list< tree_decl_elt * >::iterator iterator
 
typedef std::list< tree_decl_elt * >::reverse_iterator reverse_iterator
 

Public Member Functions

 tree_parameter_list (in_or_out io)
 
 tree_parameter_list (in_or_out io, tree_decl_elt *t)
 
 tree_parameter_list (in_or_out io, tree_identifier *id)
 
 ~tree_parameter_list ()
 
void accept (tree_walker &tw)
 
tree_parameter_listdup (symbol_scope &scope) const
 
bool is_input_list () const
 
bool is_output_list () const
 
void mark_as_formal_parameters ()
 
void mark_varargs ()
 
void mark_varargs_only ()
 
bool takes_varargs () const
 
bool varargs_only ()
 
std::string varargs_symbol_name () const
 
std::list< std::string > variable_names () const
 
- Public Member Functions inherited from base_list< tree_decl_elt * >
 base_list ()=default
 
 base_list (const base_list &bl)=default
 
 base_list (const std::list< tree_decl_elt * > &l)
 
virtual ~base_list ()=default
 
void append (const tree_decl_elt * &s)
 
tree_decl_elt * & back ()
 
const tree_decl_elt * & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
tree_decl_elt * & front ()
 
const tree_decl_elt * & 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_decl_elt * &s)
 
void push_front (const tree_decl_elt * &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_decl_elt * >
std::list< tree_decl_elt * > m_lst
 

Detailed Description

Definition at line 45 of file pt-misc.h.

Member Enumeration Documentation

◆ in_or_out

Enumerator
in 
out 

Definition at line 49 of file pt-misc.h.

Constructor & Destructor Documentation

◆ tree_parameter_list() [1/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io)
inline

Definition at line 55 of file pt-misc.h.

Referenced by dup().

◆ tree_parameter_list() [2/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_decl_elt t 
)
inline

Definition at line 59 of file pt-misc.h.

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

◆ tree_parameter_list() [3/3]

tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_identifier id 
)
inline

Definition at line 65 of file pt-misc.h.

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

◆ ~tree_parameter_list()

tree_parameter_list::~tree_parameter_list ( )

Definition at line 37 of file pt-misc.cc.

Member Function Documentation

◆ accept()

◆ dup()

◆ is_input_list()

bool tree_parameter_list::is_input_list ( ) const
inline

Definition at line 85 of file pt-misc.h.

References in.

Referenced by tree_print_code::visit_parameter_list().

◆ is_output_list()

bool tree_parameter_list::is_output_list ( ) const
inline

Definition at line 87 of file pt-misc.h.

References out.

◆ mark_as_formal_parameters()

void tree_parameter_list::mark_as_formal_parameters ( )

Definition at line 48 of file pt-misc.cc.

References tree_decl_elt::mark_as_formal_parameter().

Referenced by base_parser::finish_function().

◆ mark_varargs()

void tree_parameter_list::mark_varargs ( )
inline

Definition at line 77 of file pt-misc.h.

Referenced by base_parser::validate_param_list().

◆ mark_varargs_only()

void tree_parameter_list::mark_varargs_only ( )
inline

Definition at line 79 of file pt-misc.h.

Referenced by base_parser::validate_param_list().

◆ takes_varargs()

bool tree_parameter_list::takes_varargs ( ) const
inline

◆ varargs_only()

bool tree_parameter_list::varargs_only ( )
inline

Definition at line 83 of file pt-misc.h.

Referenced by tree_evaluator::define_parameter_list_from_arg_vector().

◆ varargs_symbol_name()

std::string tree_parameter_list::varargs_symbol_name ( ) const
inline

Definition at line 91 of file pt-misc.h.

References in.

Referenced by variable_names(), and tree_print_code::visit_parameter_list().

◆ variable_names()

std::list< std::string > tree_parameter_list::variable_names ( ) const

Definition at line 55 of file pt-misc.cc.

References tree_decl_elt::name(), and varargs_symbol_name().

Referenced by tree_anon_scopes::visit_anon_fcn_handle().


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