#include "ov-fcn-handle.h"
Public Member Functions | |
base_fcn_handle (const base_fcn_handle &)=default | |
base_fcn_handle (const std::string &name="", const std::string &file="") | |
virtual | ~base_fcn_handle (void)=default |
virtual octave_value_list | call (int nargout, const octave_value_list &args)=0 |
virtual base_fcn_handle * | clone (void) const =0 |
octave_value | convert_to_str_internal (bool pad, bool force, char type) const |
std::string | fcn_name (void) const |
virtual octave_value | fcn_val (void) |
std::string | file (void) const |
virtual octave_function * | function_value (bool=false) |
virtual std::string | get_dispatch_class (void) const |
virtual 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 |
virtual bool | is_simple (void) const |
virtual bool | load_ascii (std::istream &is) |
virtual bool | load_binary (std::istream &is, bool swap, mach_info::float_format fmt) |
virtual 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 |
virtual void | print_raw (std::ostream &, bool, int) const |
virtual bool | save_ascii (std::ostream &os) |
virtual bool | save_binary (std::ostream &os, bool save_as_floats) |
virtual 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) |
virtual std::string | type (void) const =0 |
virtual octave_user_function * | user_function_value (bool=false) |
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 |
Definition at line 50 of file ov-fcn-handle.h.
|
inline |
Definition at line 54 of file ov-fcn-handle.h.
|
default |
|
virtualdefault |
|
pure virtual |
|
pure virtual |
octave_value octave::base_fcn_handle::convert_to_str_internal | ( | bool | pad, |
bool | force, | ||
char | type | ||
) | const |
Definition at line 637 of file ov-fcn-handle.cc.
References octave_value(), print_raw(), and type().
|
inline |
Definition at line 79 of file ov-fcn-handle.h.
References 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 in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, octave::simple_fcn_handle, and octave::internal_fcn_handle.
Definition at line 102 of file ov-fcn-handle.h.
References octave_value().
|
inline |
Definition at line 81 of file ov-fcn-handle.h.
References 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 in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, octave::internal_fcn_handle, and octave::simple_fcn_handle.
Definition at line 92 of file ov-fcn-handle.h.
|
inlinevirtual |
Definition at line 111 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, octave::simple_fcn_handle, and octave::internal_fcn_handle.
Definition at line 107 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::anonymous_fcn_handle.
Definition at line 77 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::class_simple_fcn_handle.
Definition at line 75 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::internal_fcn_handle.
Definition at line 67 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::nested_fcn_handle.
Definition at line 73 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::scoped_fcn_handle.
Definition at line 71 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::simple_fcn_handle.
Definition at line 69 of file ov-fcn-handle.h.
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 653 of file ov-fcn-handle.cc.
References unimplemented().
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 669 of file ov-fcn-handle.cc.
References unimplemented().
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 685 of file ov-fcn-handle.cc.
References unimplemented().
|
inlinevirtual |
Reimplemented in octave::anonymous_fcn_handle.
Definition at line 136 of file ov-fcn-handle.h.
|
inlinevirtual |
Reimplemented in octave::simple_fcn_handle, octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, and octave::scoped_fcn_handle.
Definition at line 131 of file ov-fcn-handle.h.
Referenced by convert_to_str_internal().
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 645 of file ov-fcn-handle.cc.
References unimplemented().
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 661 of file ov-fcn-handle.cc.
References unimplemented().
|
virtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, and octave::simple_fcn_handle.
Definition at line 677 of file ov-fcn-handle.cc.
References unimplemented().
|
inlinevirtual |
Definition at line 109 of file ov-fcn-handle.h.
|
inlinevirtual |
Definition at line 139 of file ov-fcn-handle.h.
octave_value_list octave::base_fcn_handle::subsref | ( | const std::string & | type, |
const std::list< octave_value_list > & | idx, | ||
int | nargout | ||
) |
Definition at line 601 of file ov-fcn-handle.cc.
References call(), error(), panic_impossible, retval, and type().
|
pure virtual |
Implemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, octave::simple_fcn_handle, octave::internal_fcn_handle, and octave::invalid_fcn_handle.
Referenced by convert_to_str_internal(), subsref(), unimplemented(), warn_load(), and warn_save().
|
protected |
Definition at line 712 of file ov-fcn-handle.cc.
References type(), and warning().
Referenced by octave::nested_fcn_handle::load_ascii(), octave::class_simple_fcn_handle::load_ascii(), load_ascii(), octave::nested_fcn_handle::load_binary(), octave::class_simple_fcn_handle::load_binary(), 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(), load_hdf5(), octave::nested_fcn_handle::save_ascii(), octave::class_simple_fcn_handle::save_ascii(), save_ascii(), octave::nested_fcn_handle::save_binary(), octave::class_simple_fcn_handle::save_binary(), save_binary(), octave::scoped_fcn_handle::save_hdf5(), octave::nested_fcn_handle::save_hdf5(), octave::class_simple_fcn_handle::save_hdf5(), and save_hdf5().
|
inlinevirtual |
Reimplemented in octave::anonymous_fcn_handle, octave::class_simple_fcn_handle, octave::nested_fcn_handle, octave::scoped_fcn_handle, octave::internal_fcn_handle, and octave::simple_fcn_handle.
Definition at line 97 of file ov-fcn-handle.h.
|
protected |
Definition at line 692 of file ov-fcn-handle.cc.
References type(), and warning_with_id().
|
protected |
Definition at line 702 of file ov-fcn-handle.cc.
References 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 octave::anonymous_fcn_handle::save_hdf5().
|
inlinevirtual |
Reimplemented in octave::anonymous_fcn_handle, and octave::nested_fcn_handle.
Definition at line 104 of file ov-fcn-handle.h.
References octave_value().
|
protected |
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(), file(), and octave::scoped_fcn_handle::find_function().
|
protected |
Definition at line 153 of file ov-fcn-handle.h.
Referenced by octave::simple_fcn_handle::call(), octave::scoped_fcn_handle::call(), 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(), 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(), 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().