Public Member Functions | |
weak_anonymous_fcn_handle (const anonymous_fcn_handle &afh) | |
weak_anonymous_fcn_handle (const weak_anonymous_fcn_handle &)=default | |
~weak_anonymous_fcn_handle (void)=default | |
octave_value_list | call (int nargout, const octave_value_list &args) |
weak_anonymous_fcn_handle * | clone (void) const |
octave_value | convert_to_str_internal (bool pad, bool force, char type) const |
std::string | fcn_name (void) const |
octave_value | fcn_val (void) |
std::string | file (void) const |
octave_function * | function_value (bool=false) |
virtual std::string | get_dispatch_class (void) const |
octave_scalar_map | info (void) |
bool | is_anonymous (void) const |
virtual bool | is_class_simple (void) const |
virtual bool | is_internal (void) const |
virtual bool | is_nested (const std::shared_ptr< stack_frame > &) const |
virtual bool | is_nested (void) const |
virtual bool | is_scoped (void) const |
virtual bool | is_simple (void) const |
bool | is_weak_anonymous (void) const |
virtual bool | is_weak_nested (void) const |
bool | load_ascii (std::istream &is) |
bool | load_binary (std::istream &is, bool swap, mach_info::float_format fmt) |
bool | load_hdf5 (octave_hdf5_id &group_hid, octave_hdf5_id &space_hid, octave_hdf5_id &type_hid) |
virtual octave_value | make_weak_anonymous_handle (void) const |
virtual octave_value | make_weak_nested_handle (void) const |
bool | parse (const std::string &fcn_text) |
bool | print_as_scalar (void) const |
void | print_raw (std::ostream &, bool pr_as_read_syntax, int current_print_indent_level) const |
bool | save_ascii (std::ostream &os) |
bool | save_binary (std::ostream &os, bool save_as_floats) |
bool | save_hdf5 (octave_hdf5_id loc_id, const char *name, bool save_as_floats) |
virtual void | set_dispatch_class (const std::string &) |
virtual bool | set_fcn (const std::string &, const std::string &) |
octave_value_list | subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout) |
std::string | type (void) const |
octave_user_function * | user_function_value (bool=false) |
octave_value | workspace (void) const |
Static Public Attributes | |
static const std::string | anonymous |
Protected Member Functions | |
void | unimplemented (const char *op, const char *fmt) const |
void | warn_load (const char *file_type) const |
void | warn_save (const char *file_type) const |
Protected Attributes | |
octave_value | m_fcn |
std::string | m_file |
stack_frame::local_vars_map | m_local_vars |
std::string | m_name |
std::weak_ptr< stack_frame > | m_stack_context |
Friends | |
bool | is_equal_to (const weak_anonymous_fcn_handle &fh1, const weak_anonymous_fcn_handle &fh2) |
Definition at line 734 of file ov-fcn-handle.cc.
|
inline |
Definition at line 740 of file ov-fcn-handle.cc.
Referenced by clone().
|
default |
|
default |
|
virtual |
Implements base_fcn_handle.
Definition at line 2756 of file ov-fcn-handle.cc.
References __get_evaluator__(), octave_user_function::execute(), base_anonymous_fcn_handle::m_fcn, base_anonymous_fcn_handle::m_local_vars, m_stack_context, tree_evaluator::pop_stack_frame(), tree_evaluator::push_stack_frame(), and octave_value::user_function_value().
|
inlinevirtual |
Implements base_fcn_handle.
Definition at line 748 of file ov-fcn-handle.cc.
References weak_anonymous_fcn_handle().
|
inherited |
Definition at line 827 of file ov-fcn-handle.cc.
References octave_value(), base_fcn_handle::print_raw(), and base_fcn_handle::type().
|
inlineinherited |
Definition at line 92 of file ov-fcn-handle.h.
References base_fcn_handle::m_name.
Referenced by class_simple_fcn_handle::call(), scoped_fcn_handle::find_function(), internal_fcn_handle::info(), simple_fcn_handle::info(), scoped_fcn_handle::info(), base_nested_fcn_handle::info(), and class_simple_fcn_handle::info().
|
inlinevirtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 648 of file ov-fcn-handle.cc.
References base_anonymous_fcn_handle::m_fcn.
|
inlineinherited |
Definition at line 94 of file ov-fcn-handle.h.
References base_fcn_handle::m_file.
Referenced by simple_fcn_handle::info(), scoped_fcn_handle::info(), simple_fcn_handle::save_ascii(), scoped_fcn_handle::save_ascii(), and scoped_fcn_handle::save_binary().
|
inlinevirtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 638 of file ov-fcn-handle.cc.
References octave_value::function_value(), and base_anonymous_fcn_handle::m_fcn.
|
inlinevirtualinherited |
Definition at line 124 of file ov-fcn-handle.h.
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2057 of file ov-fcn-handle.cc.
References m, base_anonymous_fcn_handle::print_raw(), base_anonymous_fcn_handle::type(), and base_anonymous_fcn_handle::workspace().
|
inlinevirtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 634 of file ov-fcn-handle.cc.
|
inlinevirtualinherited |
Reimplemented in class_simple_fcn_handle.
Definition at line 82 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in internal_fcn_handle.
Definition at line 67 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in nested_fcn_handle.
Definition at line 75 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in base_nested_fcn_handle, base_nested_fcn_handle, and base_nested_fcn_handle.
Definition at line 73 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in scoped_fcn_handle.
Definition at line 71 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in simple_fcn_handle.
Definition at line 69 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented from base_fcn_handle.
Definition at line 753 of file ov-fcn-handle.cc.
|
inlinevirtualinherited |
Reimplemented in weak_nested_fcn_handle.
Definition at line 80 of file ov-fcn-handle.h.
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2101 of file ov-fcn-handle.cc.
References __get_interpreter__(), error(), extract_keyword(), interpreter::get_evaluator(), len, base_anonymous_fcn_handle::m_local_vars, base_anonymous_fcn_handle::parse(), tree_evaluator::pop_scope(), tree_evaluator::push_dummy_scope(), read_text_data(), read_until_newline(), and skip_preceeding_newline().
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2200 of file ov-fcn-handle.cc.
References __get_interpreter__(), base_anonymous_fcn_handle::anonymous, error(), interpreter::get_evaluator(), len, base_anonymous_fcn_handle::m_local_vars, base_fcn_handle::m_name, OCTAVE_LOCAL_BUFFER, base_anonymous_fcn_handle::parse(), tree_evaluator::pop_scope(), tree_evaluator::push_dummy_scope(), read_binary_data(), and swap_bytes< 4 >().
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2434 of file ov-fcn-handle.cc.
References __get_interpreter__(), error(), interpreter::get_evaluator(), H5T_NATIVE_IDX, hdf5_h5g_iterate(), len, base_anonymous_fcn_handle::m_local_vars, hdf5_callback_data::name, octave_H5E_DEFAULT, octave_H5P_DEFAULT, octave_H5S_ALL, OCTAVE_LOCAL_BUFFER, base_anonymous_fcn_handle::parse(), tree_evaluator::pop_scope(), tree_evaluator::push_dummy_scope(), and hdf5_callback_data::tc.
|
virtualinherited |
Reimplemented in anonymous_fcn_handle.
Definition at line 784 of file ov-fcn-handle.cc.
References error(), and base_fcn_handle::type().
|
virtualinherited |
Reimplemented in nested_fcn_handle.
Definition at line 777 of file ov-fcn-handle.cc.
References error(), and base_fcn_handle::type().
|
inherited |
Definition at line 2641 of file ov-fcn-handle.cc.
References __get_interpreter__(), symbol_scope::cache_name(), interpreter::eval_string(), octave_value::fcn_handle_value(), octave_fcn_handle::fcn_val(), interpreter::get_evaluator(), base_anonymous_fcn_handle::m_fcn, base_fcn_handle::m_name, tree_evaluator::pop_scope(), tree_evaluator::push_dummy_scope(), octave_user_code::scope(), and octave_value::user_function_value().
Referenced by base_anonymous_fcn_handle::load_ascii(), base_anonymous_fcn_handle::load_binary(), and base_anonymous_fcn_handle::load_hdf5().
|
inlinevirtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 673 of file ov-fcn-handle.cc.
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2600 of file ov-fcn-handle.cc.
References tree_parameter_list::accept(), error(), tree_statement::expression(), f, base_list< elt_type >::front(), tree_statement::is_expression(), base_list< elt_type >::length(), base_anonymous_fcn_handle::m_fcn, panic_if(), panic_unless(), tree_print_code::print_fcn_handle_body(), and octave_value::user_function_value().
Referenced by base_anonymous_fcn_handle::info(), base_anonymous_fcn_handle::save_ascii(), base_anonymous_fcn_handle::save_binary(), and base_anonymous_fcn_handle::save_hdf5().
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2073 of file ov-fcn-handle.cc.
References octave_value::is_undefined(), base_anonymous_fcn_handle::m_fcn, base_anonymous_fcn_handle::m_local_vars, base_fcn_handle::m_name, base_anonymous_fcn_handle::print_raw(), and save_text_data().
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2159 of file ov-fcn-handle.cc.
References base_anonymous_fcn_handle::anonymous, octave_value::is_undefined(), base_anonymous_fcn_handle::m_fcn, base_anonymous_fcn_handle::m_local_vars, base_anonymous_fcn_handle::print_raw(), and save_binary_data().
|
virtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 2267 of file ov-fcn-handle.cc.
References add_hdf5_data(), H5T_NATIVE_IDX, base_anonymous_fcn_handle::m_local_vars, base_fcn_handle::m_name, octave_H5P_DEFAULT, octave_H5S_ALL, OCTAVE_LOCAL_BUFFER, base_anonymous_fcn_handle::print_raw(), and base_fcn_handle::warn_save().
|
inlinevirtualinherited |
Definition at line 122 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Definition at line 152 of file ov-fcn-handle.h.
|
inherited |
Definition at line 792 of file ov-fcn-handle.cc.
References base_fcn_handle::call(), error(), panic_impossible, and base_fcn_handle::type().
|
inlinevirtualinherited |
Implements base_fcn_handle.
Definition at line 632 of file ov-fcn-handle.cc.
Referenced by base_anonymous_fcn_handle::info().
|
protectedinherited |
Definition at line 902 of file ov-fcn-handle.cc.
References base_fcn_handle::type(), and warning().
Referenced by base_nested_fcn_handle::load_ascii(), class_simple_fcn_handle::load_ascii(), base_fcn_handle::load_ascii(), base_nested_fcn_handle::load_binary(), class_simple_fcn_handle::load_binary(), base_fcn_handle::load_binary(), simple_fcn_handle::load_hdf5(), scoped_fcn_handle::load_hdf5(), base_nested_fcn_handle::load_hdf5(), class_simple_fcn_handle::load_hdf5(), base_fcn_handle::load_hdf5(), base_nested_fcn_handle::save_ascii(), class_simple_fcn_handle::save_ascii(), base_fcn_handle::save_ascii(), base_nested_fcn_handle::save_binary(), class_simple_fcn_handle::save_binary(), base_fcn_handle::save_binary(), scoped_fcn_handle::save_hdf5(), base_nested_fcn_handle::save_hdf5(), class_simple_fcn_handle::save_hdf5(), and base_fcn_handle::save_hdf5().
|
inlinevirtualinherited |
Reimplemented from base_fcn_handle.
Definition at line 643 of file ov-fcn-handle.cc.
References base_anonymous_fcn_handle::m_fcn, and octave_value::user_function_value().
|
protectedinherited |
Definition at line 882 of file ov-fcn-handle.cc.
References base_fcn_handle::type(), and warning_with_id().
|
protectedinherited |
Definition at line 892 of file ov-fcn-handle.cc.
References base_fcn_handle::type(), and warning_with_id().
Referenced by simple_fcn_handle::save_hdf5(), scoped_fcn_handle::save_hdf5(), base_nested_fcn_handle::save_hdf5(), class_simple_fcn_handle::save_hdf5(), and base_anonymous_fcn_handle::save_hdf5().
|
virtual |
Implements base_anonymous_fcn_handle.
Definition at line 2771 of file ov-fcn-handle.cc.
References octave_scalar_map::assign(), octave_value::cell_value(), base_anonymous_fcn_handle::m_local_vars, m_stack_context, and Array< T, Alloc >::numel().
|
friend |
Definition at line 2804 of file ov-fcn-handle.cc.
|
static |
Definition at line 612 of file ov-fcn-handle.cc.
|
protectedinherited |
Definition at line 680 of file ov-fcn-handle.cc.
Referenced by anonymous_fcn_handle::call(), call(), base_anonymous_fcn_handle::fcn_val(), base_anonymous_fcn_handle::function_value(), base_anonymous_fcn_handle::parse(), base_anonymous_fcn_handle::print_raw(), base_anonymous_fcn_handle::save_ascii(), base_anonymous_fcn_handle::save_binary(), and base_anonymous_fcn_handle::user_function_value().
|
protectedinherited |
Definition at line 169 of file ov-fcn-handle.h.
Referenced by scoped_fcn_handle::scoped_fcn_handle(), simple_fcn_handle::simple_fcn_handle(), base_fcn_handle::file(), and scoped_fcn_handle::find_function().
|
protectedinherited |
Definition at line 683 of file ov-fcn-handle.cc.
Referenced by anonymous_fcn_handle::call(), call(), base_anonymous_fcn_handle::load_ascii(), base_anonymous_fcn_handle::load_binary(), base_anonymous_fcn_handle::load_hdf5(), base_anonymous_fcn_handle::save_ascii(), base_anonymous_fcn_handle::save_binary(), base_anonymous_fcn_handle::save_hdf5(), anonymous_fcn_handle::workspace(), and workspace().
|
protectedinherited |
Definition at line 166 of file ov-fcn-handle.h.
Referenced by simple_fcn_handle::call(), scoped_fcn_handle::call(), base_fcn_handle::fcn_name(), simple_fcn_handle::fcn_val(), scoped_fcn_handle::find_function(), simple_fcn_handle::function_value(), class_simple_fcn_handle::function_value(), base_anonymous_fcn_handle::load_binary(), base_anonymous_fcn_handle::parse(), scoped_fcn_handle::print_raw(), base_nested_fcn_handle::print_raw(), class_simple_fcn_handle::print_raw(), simple_fcn_handle::print_raw(), simple_fcn_handle::save_ascii(), scoped_fcn_handle::save_ascii(), base_anonymous_fcn_handle::save_ascii(), simple_fcn_handle::save_binary(), scoped_fcn_handle::save_binary(), simple_fcn_handle::save_hdf5(), base_anonymous_fcn_handle::save_hdf5(), and simple_fcn_handle::user_function_value().
|
protected |
Definition at line 765 of file ov-fcn-handle.cc.
Referenced by call(), and workspace().