Public Member Functions | |
nested_fcn_handle (const nested_fcn_handle &)=default | |
nested_fcn_handle (const octave_value &fcn, const std::string &name, const std::shared_ptr< stack_frame > &closure_frames) | |
nested_fcn_handle (const std::string &name="", const std::string &file="", const std::string &="") | |
~nested_fcn_handle (void)=default | |
octave_value_list | call (int nargout, const octave_value_list &args) |
nested_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) |
virtual bool | is_anonymous (void) const |
virtual bool | is_class_simple (void) const |
virtual bool | is_internal (void) const |
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) |
virtual 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 |
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::shared_ptr< stack_frame > | m_closure_frames |
octave_value | m_fcn |
std::string | m_file |
std::string | m_name |
Friends | |
bool | is_equal_to (const nested_fcn_handle &fh1, const nested_fcn_handle &fh2) |
Definition at line 315 of file ov-fcn-handle.cc.
|
inline |
Definition at line 322 of file ov-fcn-handle.cc.
Referenced by clone().
octave::nested_fcn_handle::nested_fcn_handle | ( | const octave_value & | fcn, |
const std::string & | name, | ||
const std::shared_ptr< stack_frame > & | closure_frames | ||
) |
Definition at line 1504 of file ov-fcn-handle.cc.
|
default |
|
default |
|
virtual |
Implements octave::base_fcn_handle.
Definition at line 1511 of file ov-fcn-handle.cc.
References octave::__get_evaluator__(), octave_user_function::execute(), m_closure_frames, m_fcn, 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 335 of file ov-fcn-handle.cc.
References nested_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(), info(), and octave::class_simple_fcn_handle::info().
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 358 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 348 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 1529 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::fcn_name(), m, type(), and workspace().
|
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.
|
inlinevirtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 342 of file ov-fcn-handle.cc.
|
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 1559 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::unimplemented().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1578 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::unimplemented().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1614 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 1639 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 1550 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::unimplemented().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1568 of file ov-fcn-handle.cc.
References octave::base_fcn_handle::unimplemented().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1590 of file ov-fcn-handle.cc.
References name, octave::base_fcn_handle::unimplemented(), 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 340 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 load_ascii(), octave::class_simple_fcn_handle::load_ascii(), octave::base_fcn_handle::load_ascii(), 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(), load_hdf5(), octave::class_simple_fcn_handle::load_hdf5(), octave::base_fcn_handle::load_hdf5(), save_ascii(), octave::class_simple_fcn_handle::save_ascii(), octave::base_fcn_handle::save_ascii(), save_binary(), octave::class_simple_fcn_handle::save_binary(), octave::base_fcn_handle::save_binary(), octave::scoped_fcn_handle::save_hdf5(), 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 353 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(), save_hdf5(), octave::class_simple_fcn_handle::save_hdf5(), and octave::anonymous_fcn_handle::save_hdf5().
|
virtual |
Reimplemented from octave::base_fcn_handle.
Definition at line 1524 of file ov-fcn-handle.cc.
References m_closure_frames.
Referenced by info().
|
friend |
Definition at line 1647 of file ov-fcn-handle.cc.
|
protected |
Definition at line 390 of file ov-fcn-handle.cc.
Referenced by call(), and workspace().
|
protected |
Definition at line 387 of file ov-fcn-handle.cc.
Referenced by 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(), octave::simple_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 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(), octave::anonymous_fcn_handle::load_binary(), octave::anonymous_fcn_handle::parse(), octave::scoped_fcn_handle::print_raw(), 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(), octave::anonymous_fcn_handle::save_ascii(), octave::simple_fcn_handle::save_binary(), octave::scoped_fcn_handle::save_binary(), octave::simple_fcn_handle::save_hdf5(), octave::anonymous_fcn_handle::save_hdf5(), and octave::simple_fcn_handle::user_function_value().