Public Member Functions | |
anonymous_fcn_handle (const anonymous_fcn_handle &)=default | |
anonymous_fcn_handle (const octave_value &fcn, const stack_frame::local_vars_map &local_vars) | |
anonymous_fcn_handle (const std::string &name="") | |
~anonymous_fcn_handle (void)=default | |
octave_value_list | call (int nargout, const octave_value_list &args) |
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 (void) const |
virtual bool | is_scoped (void) const |
virtual bool | is_simple (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) |
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 |
Friends | |
bool | is_equal_to (const anonymous_fcn_handle &fh1, const anonymous_fcn_handle &fh2) |
Definition at line 504 of file ov-fcn-handle.cc.
|
inline |
Definition at line 515 of file ov-fcn-handle.cc.
Referenced by clone().
octave::anonymous_fcn_handle::anonymous_fcn_handle | ( | const octave_value & | fcn, |
const stack_frame::local_vars_map & | local_vars | ||
) |
Definition at line 1834 of file ov-fcn-handle.cc.
|
default |
|
default |
|
virtual |
Implements octave::base_fcn_handle.
Definition at line 1840 of file ov-fcn-handle.cc.
References octave::__get_evaluator__(), octave_user_function::execute(), m_fcn, m_local_vars, octave::tree_evaluator::pop_stack_frame(), octave::tree_evaluator::push_stack_frame(), and octave_value::user_function_value().
|
inlinevirtual |
Implements octave::base_fcn_handle.
Definition at line 526 of file ov-fcn-handle.cc.
References anonymous_fcn_handle().
|
inherited |
Definition at line 637 of file ov-fcn-handle.cc.
References octave_value(), octave::base_fcn_handle::print_raw(), and octave::base_fcn_handle::type().
|
inlineinherited |
Definition at line 79 of file ov-fcn-handle.h.
References octave::base_fcn_handle::m_name.
Referenced by octave::class_simple_fcn_handle::call(), octave::scoped_fcn_handle::find_function(), octave::internal_fcn_handle::info(), octave::simple_fcn_handle::info(), octave::scoped_fcn_handle::info(), octave::nested_fcn_handle::info(), and octave::class_simple_fcn_handle::info().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 549 of file ov-fcn-handle.cc.
References m_fcn.
|
inlineinherited |
Definition at line 81 of file ov-fcn-handle.h.
References octave::base_fcn_handle::m_file.
Referenced by octave::simple_fcn_handle::info(), octave::scoped_fcn_handle::info(), octave::simple_fcn_handle::save_ascii(), octave::scoped_fcn_handle::save_ascii(), and octave::scoped_fcn_handle::save_binary().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 539 of file ov-fcn-handle.cc.
References octave_value::function_value(), and m_fcn.
|
inlinevirtualinherited |
Definition at line 111 of file ov-fcn-handle.h.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1863 of file ov-fcn-handle.cc.
References m, print_raw(), type(), and workspace().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 533 of file ov-fcn-handle.cc.
|
inlinevirtualinherited |
Reimplemented in octave::class_simple_fcn_handle.
Definition at line 75 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in octave::internal_fcn_handle.
Definition at line 67 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in octave::nested_fcn_handle.
Definition at line 73 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in octave::scoped_fcn_handle.
Definition at line 71 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Reimplemented in octave::simple_fcn_handle.
Definition at line 69 of file ov-fcn-handle.h.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1907 of file ov-fcn-handle.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), error(), extract_keyword(), octave::interpreter::get_evaluator(), len, m_local_vars, name, parse(), octave::tree_evaluator::pop_scope(), octave::tree_evaluator::push_dummy_scope(), read_text_data(), read_until_newline(), and skip_preceeding_newline().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 2008 of file ov-fcn-handle.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), anonymous, error(), octave::interpreter::get_evaluator(), len, m_local_vars, octave::base_fcn_handle::m_name, name, OCTAVE_LOCAL_BUFFER, parse(), octave::tree_evaluator::pop_scope(), octave::tree_evaluator::push_dummy_scope(), read_binary_data(), and swap_bytes< 4 >().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 2243 of file ov-fcn-handle.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), error(), octave::interpreter::get_evaluator(), H5T_NATIVE_IDX, hdf5_h5g_iterate(), len, m_local_vars, hdf5_callback_data::name, octave_H5E_DEFAULT, octave_H5P_DEFAULT, octave_H5S_ALL, OCTAVE_LOCAL_BUFFER, parse(), octave::tree_evaluator::pop_scope(), octave::tree_evaluator::push_dummy_scope(), and hdf5_callback_data::tc.
bool octave::anonymous_fcn_handle::parse | ( | const std::string & | fcn_text | ) |
Definition at line 2454 of file ov-fcn-handle.cc.
References octave::__get_interpreter__(), octave::symbol_scope::cache_name(), octave::interpreter::eval_string(), octave_value::fcn_handle_value(), octave_fcn_handle::fcn_val(), octave::interpreter::get_evaluator(), m_fcn, octave::base_fcn_handle::m_name, octave::tree_evaluator::pop_scope(), octave::tree_evaluator::push_dummy_scope(), octave_user_code::scope(), and octave_value::user_function_value().
Referenced by load_ascii(), load_binary(), and load_hdf5().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 573 of file ov-fcn-handle.cc.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 2412 of file ov-fcn-handle.cc.
References octave::tree_parameter_list::accept(), error(), octave::tree_statement::expression(), octave::f(), octave::base_list< elt_type >::front(), octave::tree_statement::is_expression(), octave::base_list< elt_type >::length(), m_fcn, octave::tree_print_code::print_fcn_handle_body(), and octave_value::user_function_value().
Referenced by info(), save_ascii(), save_binary(), and save_hdf5().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1879 of file ov-fcn-handle.cc.
References octave_value::is_undefined(), m_fcn, m_local_vars, octave::base_fcn_handle::m_name, print_raw(), and save_text_data().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1968 of file ov-fcn-handle.cc.
References anonymous, octave_value::is_undefined(), m_fcn, m_local_vars, print_raw(), and save_binary_data().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 2078 of file ov-fcn-handle.cc.
References add_hdf5_data(), H5T_NATIVE_IDX, m_local_vars, octave::base_fcn_handle::m_name, name, octave_H5P_DEFAULT, octave_H5S_ALL, OCTAVE_LOCAL_BUFFER, print_raw(), retval, and octave::base_fcn_handle::warn_save().
|
inlinevirtualinherited |
Definition at line 109 of file ov-fcn-handle.h.
|
inlinevirtualinherited |
Definition at line 139 of file ov-fcn-handle.h.
|
inherited |
Definition at line 601 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::call(), error(), panic_impossible, retval, and octave::base_fcn_handle::type().
|
inlinevirtual |
Implements octave::base_fcn_handle.
Definition at line 531 of file ov-fcn-handle.cc.
Referenced by info().
|
protectedinherited |
Definition at line 712 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::type(), and warning().
Referenced by octave::nested_fcn_handle::load_ascii(), octave::class_simple_fcn_handle::load_ascii(), octave::base_fcn_handle::load_ascii(), octave::nested_fcn_handle::load_binary(), octave::class_simple_fcn_handle::load_binary(), octave::base_fcn_handle::load_binary(), octave::simple_fcn_handle::load_hdf5(), octave::scoped_fcn_handle::load_hdf5(), octave::nested_fcn_handle::load_hdf5(), octave::class_simple_fcn_handle::load_hdf5(), octave::base_fcn_handle::load_hdf5(), octave::nested_fcn_handle::save_ascii(), octave::class_simple_fcn_handle::save_ascii(), octave::base_fcn_handle::save_ascii(), octave::nested_fcn_handle::save_binary(), octave::class_simple_fcn_handle::save_binary(), octave::base_fcn_handle::save_binary(), octave::scoped_fcn_handle::save_hdf5(), octave::nested_fcn_handle::save_hdf5(), octave::class_simple_fcn_handle::save_hdf5(), and octave::base_fcn_handle::save_hdf5().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 544 of file ov-fcn-handle.cc.
References m_fcn, and octave_value::user_function_value().
|
protectedinherited |
Definition at line 692 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::type(), and warning_with_id().
|
protectedinherited |
Definition at line 702 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::type(), and warning_with_id().
Referenced by octave::simple_fcn_handle::save_hdf5(), octave::scoped_fcn_handle::save_hdf5(), octave::nested_fcn_handle::save_hdf5(), octave::class_simple_fcn_handle::save_hdf5(), and save_hdf5().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1853 of file ov-fcn-handle.cc.
References octave_scalar_map::assign(), and m_local_vars.
Referenced by info().
|
friend |
Definition at line 2500 of file ov-fcn-handle.cc.
|
static |
Definition at line 508 of file ov-fcn-handle.cc.
Referenced by load_binary(), and save_binary().
|
protected |
Definition at line 583 of file ov-fcn-handle.cc.
Referenced by call(), fcn_val(), function_value(), parse(), print_raw(), save_ascii(), save_binary(), and user_function_value().
|
protectedinherited |
Definition at line 156 of file ov-fcn-handle.h.
Referenced by octave::scoped_fcn_handle::scoped_fcn_handle(), octave::simple_fcn_handle::simple_fcn_handle(), octave::base_fcn_handle::file(), and octave::scoped_fcn_handle::find_function().
|
protected |
Definition at line 586 of file ov-fcn-handle.cc.
Referenced by call(), load_ascii(), load_binary(), load_hdf5(), save_ascii(), save_binary(), save_hdf5(), and workspace().
|
protectedinherited |
Definition at line 153 of file ov-fcn-handle.h.
Referenced by octave::simple_fcn_handle::call(), octave::scoped_fcn_handle::call(), octave::base_fcn_handle::fcn_name(), octave::simple_fcn_handle::fcn_val(), octave::scoped_fcn_handle::find_function(), octave::simple_fcn_handle::function_value(), octave::class_simple_fcn_handle::function_value(), load_binary(), parse(), octave::scoped_fcn_handle::print_raw(), octave::nested_fcn_handle::print_raw(), octave::class_simple_fcn_handle::print_raw(), octave::simple_fcn_handle::print_raw(), octave::simple_fcn_handle::save_ascii(), octave::scoped_fcn_handle::save_ascii(), save_ascii(), octave::simple_fcn_handle::save_binary(), octave::scoped_fcn_handle::save_binary(), octave::simple_fcn_handle::save_hdf5(), save_hdf5(), and octave::simple_fcn_handle::user_function_value().