GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pt-misc.h"
Public Types | |
typedef std::list < tree_decl_elt * > ::const_iterator | const_iterator |
typedef std::list < tree_decl_elt * > ::const_reverse_iterator | const_reverse_iterator |
enum | in_or_out { in = 1, out = 2 } |
typedef std::list < tree_decl_elt * >::iterator | iterator |
typedef std::list < tree_decl_elt * > ::reverse_iterator | reverse_iterator |
Private Member Functions | |
tree_parameter_list (const tree_parameter_list &) | |
void | mark_varargs (void) |
void | mark_varargs_only (void) |
tree_parameter_list & | operator= (const tree_parameter_list &) |
Private Attributes | |
int | marked_for_varargs |
|
inherited |
Definition at line 37 of file base-list.h.
|
inherited |
Definition at line 40 of file base-list.h.
|
inherited |
Definition at line 36 of file base-list.h.
|
inherited |
Definition at line 39 of file base-list.h.
|
inline |
|
inline |
|
inline |
tree_parameter_list::~tree_parameter_list | ( | void | ) |
Definition at line 41 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::empty(), and octave_base_list< tree_decl_elt * >::erase().
|
private |
void tree_parameter_list::accept | ( | tree_walker & | tw | ) |
Definition at line 332 of file pt-misc.cc.
References tree_walker::visit_parameter_list().
Referenced by octave_fcn_handle::print_raw(), tree_print_code::visit_anon_fcn_handle(), and tree_print_code::visit_octave_user_function_header().
|
inlineinherited |
Definition at line 105 of file base-list.h.
|
inlineinherited |
Definition at line 93 of file base-list.h.
Referenced by validate().
|
inlineinherited |
Definition at line 96 of file base-list.h.
|
inlineinherited |
Definition at line 78 of file base-list.h.
Referenced by convert_to_const_vector(), define_from_arg_vector(), dup(), tree_decl_init_list::dup(), initialize_undefined_elements(), is_defined(), mark_as_formal_parameters(), undefine(), validate(), variable_names(), and ~tree_parameter_list().
|
inlineinherited |
Definition at line 79 of file base-list.h.
|
inlineinherited |
Definition at line 76 of file base-list.h.
octave_value_list tree_parameter_list::convert_to_const_vector | ( | int | nargout, |
const Cell & | varargout | ||
) |
Definition at line 248 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), tree_decl_elt::is_defined(), octave_base_list< tree_decl_elt * >::length(), Array< T >::numel(), and tree_decl_elt::rvalue1().
Referenced by octave_user_function::do_multi_index_op().
void tree_parameter_list::define_from_arg_vector | ( | const octave_value_list & | args | ) |
Definition at line 183 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_lvalue::define(), error(), tree_decl_elt::eval(), is_defined(), octave_base_list< tree_decl_elt * >::length(), octave_value_list::length(), and tree_decl_elt::lvalue().
Referenced by octave_user_function::do_multi_index_op().
tree_parameter_list * tree_parameter_list::dup | ( | symbol_table::scope_id | scope, |
symbol_table::context_id | context | ||
) | const |
Definition at line 313 of file pt-misc.cc.
References octave_base_list< elt_type >::append(), octave_base_list< tree_decl_elt * >::begin(), tree_decl_elt::dup(), octave_base_list< tree_decl_elt * >::end(), mark_varargs(), takes_varargs(), and tree_parameter_list().
Referenced by tree_anon_fcn_handle::dup(), and tree_anon_fcn_handle::rvalue1().
|
inlineinherited |
Definition at line 42 of file base-list.h.
Referenced by ~tree_parameter_list().
|
inlineinherited |
Definition at line 81 of file base-list.h.
Referenced by convert_to_const_vector(), dup(), tree_decl_init_list::dup(), initialize_undefined_elements(), is_defined(), mark_as_formal_parameters(), validate(), and variable_names().
|
inlineinherited |
Definition at line 82 of file base-list.h.
|
inlineinherited |
Definition at line 47 of file base-list.h.
Referenced by validate(), and ~tree_parameter_list().
|
inlineinherited |
Definition at line 92 of file base-list.h.
|
inlineinherited |
Definition at line 95 of file base-list.h.
void tree_parameter_list::initialize_undefined_elements | ( | const std::string & | warnfor, |
int | nargout, | ||
const octave_value & | val | ||
) |
Definition at line 126 of file pt-misc.cc.
References octave_lvalue::assign(), octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), octave_value::is_defined(), tree_decl_elt::is_variable(), tree_decl_elt::lvalue(), octave_value::matrix_value(), Array< T >::numel(), octave_value::op_asn_eq, symbol_table::varval(), and warning_with_id().
Referenced by octave_user_function::do_multi_index_op().
bool tree_parameter_list::is_defined | ( | void | ) |
Definition at line 294 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), and tree_decl_elt::is_variable().
Referenced by define_from_arg_vector().
|
inlineinherited |
Definition at line 45 of file base-list.h.
Referenced by convert_to_const_vector(), define_from_arg_vector(), undefine(), and validate().
void tree_parameter_list::mark_as_formal_parameters | ( | void | ) |
Definition at line 52 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), and tree_decl_elt::mark_as_formal_parameter().
Referenced by octave_base_parser::finish_function().
|
inlineprivate |
Definition at line 98 of file pt-misc.h.
Referenced by dup(), and validate().
|
inlineprivate |
Definition at line 100 of file pt-misc.h.
Referenced by validate().
|
private |
|
inlineinherited |
Definition at line 102 of file base-list.h.
|
inlineinherited |
Definition at line 101 of file base-list.h.
|
inlineinherited |
Definition at line 99 of file base-list.h.
|
inlineinherited |
Definition at line 98 of file base-list.h.
|
inlineinherited |
Definition at line 84 of file base-list.h.
|
inlineinherited |
Definition at line 85 of file base-list.h.
|
inlineinherited |
Definition at line 50 of file base-list.h.
|
inlineinherited |
Definition at line 88 of file base-list.h.
|
inlineinherited |
Definition at line 89 of file base-list.h.
|
inlineinherited |
Definition at line 44 of file base-list.h.
|
inline |
Definition at line 71 of file pt-misc.h.
Referenced by octave_user_function::do_multi_index_op(), dup(), jit_convert::jit_convert(), octave_fcn_binder::maybe_binder(), octave_user_function::subsasgn_optimization_ok(), octave_user_function::takes_var_return(), and octave_user_function::takes_varargs().
void tree_parameter_list::undefine | ( | void | ) |
Definition at line 216 of file pt-misc.cc.
References octave_lvalue::assign(), octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::length(), tree_decl_elt::lvalue(), and octave_value::op_asn_eq.
Referenced by octave_user_function::do_multi_index_op().
Definition at line 62 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::back(), octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), octave_base_list< tree_decl_elt * >::erase(), error(), error_state, tree_decl_elt::ident(), in, tree_identifier::is_black_hole(), octave_base_list< tree_decl_elt * >::length(), mark_varargs(), mark_varargs_only(), and tree_identifier::name().
Referenced by octave_push_parse().
|
inline |
Definition at line 73 of file pt-misc.h.
Referenced by octave_user_function::do_multi_index_op(), and octave_user_function::subsasgn_optimization_ok().
std::list< std::string > tree_parameter_list::variable_names | ( | void | ) | const |
Definition at line 233 of file pt-misc.cc.
References octave_base_list< tree_decl_elt * >::begin(), octave_base_list< tree_decl_elt * >::end(), and tree_decl_elt::name().