Public Member Functions | |
simple_fcn_handle (const octave_value &fcn, const std::string &name) | |
simple_fcn_handle (const simple_fcn_handle &)=default | |
simple_fcn_handle (const std::string &name="", const std::string &file="", const std::string &="") | |
~simple_fcn_handle (void)=default | |
octave_value_list | call (int nargout, const octave_value_list &args) |
simple_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) |
virtual std::string | get_dispatch_class (void) const |
octave_scalar_map | info (void) |
virtual 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 |
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) |
virtual bool | print_as_scalar (void) const |
void | print_raw (std::ostream &os, 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_hid, 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) |
virtual octave_value | workspace (void) const |
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 | |
std::string | m_file |
std::string | m_name |
Private Attributes | |
octave_value | m_fcn |
Friends | |
bool | is_equal_to (const simple_fcn_handle &fh1, const simple_fcn_handle &fh2) |
Definition at line 161 of file ov-fcn-handle.cc.
|
inline |
Definition at line 168 of file ov-fcn-handle.cc.
Referenced by clone().
|
inline |
Definition at line 174 of file ov-fcn-handle.cc.
References octave_function::fcn_file_name(), octave_value::function_value(), octave_value::is_defined(), m_fcn, and octave::base_fcn_handle::m_file.
|
default |
|
default |
|
virtual |
Implements octave::base_fcn_handle.
Definition at line 756 of file ov-fcn-handle.cc.
References octave::__get_interpreter__(), octave_function::dispatch_class(), octave::err_invalid_fcn_handle(), octave::interpreter::feval(), octave::symbol_table::find_function(), octave_value::function_value(), octave::interpreter::get_symbol_table(), octave_function::is_class_method(), octave_value::is_classdef_meta(), octave_value::is_classdef_object(), octave_value::is_cs_list(), octave_value::is_defined(), octave_value::is_function(), octave_value::is_package(), octave_value_list::length(), m_fcn, octave::base_fcn_handle::m_name, octave_value(), ovl(), octave_value::subsref(), type(), and octave::interpreter::varval().
|
inlinevirtual |
Implements octave::base_fcn_handle.
Definition at line 190 of file ov-fcn-handle.cc.
References simple_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(), info(), octave::scoped_fcn_handle::info(), octave::nested_fcn_handle::info(), and octave::class_simple_fcn_handle::info().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 981 of file ov-fcn-handle.cc.
References octave::__get_symbol_table__(), octave::symbol_table::find_user_function(), octave_value::is_defined(), m_fcn, and octave::base_fcn_handle::m_name.
|
inlineinherited |
Definition at line 81 of file ov-fcn-handle.h.
References octave::base_fcn_handle::m_file.
Referenced by info(), octave::scoped_fcn_handle::info(), save_ascii(), octave::scoped_fcn_handle::save_ascii(), and octave::scoped_fcn_handle::save_binary().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 941 of file ov-fcn-handle.cc.
References octave::__get_symbol_table__(), octave::symbol_table::find_function(), octave_value::function_value(), octave_value::is_defined(), m_fcn, and octave::base_fcn_handle::m_name.
|
inlinevirtualinherited |
Definition at line 111 of file ov-fcn-handle.h.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 998 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::fcn_name(), octave::base_fcn_handle::file(), m, and type().
|
inlinevirtualinherited |
Reimplemented in octave::anonymous_fcn_handle.
Definition at line 77 of file ov-fcn-handle.h.
|
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.
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 197 of file ov-fcn-handle.cc.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1025 of file ov-fcn-handle.cc.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1052 of file ov-fcn-handle.cc.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1207 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::unimplemented().
|
inlinevirtualinherited |
Reimplemented in octave::anonymous_fcn_handle.
Definition at line 136 of file ov-fcn-handle.h.
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1232 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::m_name, and octave_print_internal().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1010 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::file(), octave::base_fcn_handle::m_name, octave::config::octave_exec_home(), and type().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1034 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::m_name, and octave::config::octave_exec_home().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1058 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::m_name, name, octave::config::octave_exec_home(), octave_H5P_DEFAULT, octave_H5S_ALL, OCTAVE_LOCAL_BUFFER, 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 195 of file ov-fcn-handle.cc.
Referenced by call(), info(), and save_ascii().
|
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(), 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().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 961 of file ov-fcn-handle.cc.
References octave::__get_symbol_table__(), octave::symbol_table::find_user_function(), octave_value::is_defined(), m_fcn, octave::base_fcn_handle::m_name, 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 save_hdf5(), octave::scoped_fcn_handle::save_hdf5(), octave::nested_fcn_handle::save_hdf5(), octave::class_simple_fcn_handle::save_hdf5(), and octave::anonymous_fcn_handle::save_hdf5().
|
inlinevirtualinherited |
Reimplemented in octave::anonymous_fcn_handle, and octave::nested_fcn_handle.
Definition at line 104 of file ov-fcn-handle.h.
References octave_value().
|
friend |
Definition at line 1239 of file ov-fcn-handle.cc.
|
private |
Definition at line 233 of file ov-fcn-handle.cc.
Referenced by simple_fcn_handle(), call(), fcn_val(), function_value(), and user_function_value().
|
protectedinherited |
Definition at line 156 of file ov-fcn-handle.h.
Referenced by octave::scoped_fcn_handle::scoped_fcn_handle(), simple_fcn_handle(), octave::base_fcn_handle::file(), and octave::scoped_fcn_handle::find_function().
|
protectedinherited |
Definition at line 153 of file ov-fcn-handle.h.
Referenced by call(), octave::scoped_fcn_handle::call(), octave::base_fcn_handle::fcn_name(), fcn_val(), octave::scoped_fcn_handle::find_function(), function_value(), octave::class_simple_fcn_handle::function_value(), octave::anonymous_fcn_handle::load_binary(), octave::anonymous_fcn_handle::parse(), octave::scoped_fcn_handle::print_raw(), octave::nested_fcn_handle::print_raw(), octave::class_simple_fcn_handle::print_raw(), print_raw(), save_ascii(), octave::scoped_fcn_handle::save_ascii(), octave::anonymous_fcn_handle::save_ascii(), save_binary(), octave::scoped_fcn_handle::save_binary(), save_hdf5(), octave::anonymous_fcn_handle::save_hdf5(), and user_function_value().