GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_nested_fcn_handle Class Referenceabstract
Inheritance diagram for base_nested_fcn_handle:
Collaboration diagram for base_nested_fcn_handle:

Public Member Functions

 base_nested_fcn_handle (const octave_value &fcn, const std::string &name)
 
 base_nested_fcn_handle (const std::string &name="", const std::string &file="", const std::string &="")
 
virtual octave_value_list call (int nargout, const octave_value_list &args)=0
 
virtual base_fcn_handleclone (void) const =0
 
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_functionfunction_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
 
virtual bool is_nested (const std::shared_ptr< stack_frame > &) const
 
virtual bool is_nested (const std::shared_ptr< stack_frame > &) const
 
virtual bool is_nested (void) const
 
bool is_nested (void) const
 
virtual bool is_scoped (void) const
 
virtual bool is_simple (void) const
 
virtual 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
 
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_functionuser_function_value (bool=false)
 
virtual octave_value workspace (void) const =0
 

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
 
std::string m_name
 

Detailed Description

Definition at line 317 of file ov-fcn-handle.cc.

Constructor & Destructor Documentation

◆ base_nested_fcn_handle() [1/2]

base_nested_fcn_handle::base_nested_fcn_handle ( const std::string &  name = "",
const std::string &  file = "",
const std::string &  = "" 
)
inline

Definition at line 324 of file ov-fcn-handle.cc.

◆ base_nested_fcn_handle() [2/2]

base_nested_fcn_handle::base_nested_fcn_handle ( const octave_value fcn,
const std::string &  name 
)
inline

Definition at line 330 of file ov-fcn-handle.cc.

Member Function Documentation

◆ call()

◆ clone()

◆ convert_to_str_internal()

octave_value base_fcn_handle::convert_to_str_internal ( bool  pad,
bool  force,
char  type 
) const
inherited

◆ fcn_name()

std::string base_fcn_handle::fcn_name ( void  ) const
inlineinherited

◆ fcn_val()

octave_value base_nested_fcn_handle::fcn_val ( void  )
inlinevirtual

Reimplemented from base_fcn_handle.

Definition at line 352 of file ov-fcn-handle.cc.

References m_fcn.

◆ file()

std::string base_fcn_handle::file ( void  ) const
inlineinherited

◆ function_value()

octave_function* base_nested_fcn_handle::function_value ( bool  = false)
inlinevirtual

Reimplemented from base_fcn_handle.

Definition at line 342 of file ov-fcn-handle.cc.

References octave_value::function_value(), and m_fcn.

◆ get_dispatch_class()

virtual std::string base_fcn_handle::get_dispatch_class ( void  ) const
inlinevirtualinherited

Definition at line 124 of file ov-fcn-handle.h.

◆ info()

octave_scalar_map base_nested_fcn_handle::info ( void  )
virtual

Reimplemented from base_fcn_handle.

Definition at line 1691 of file ov-fcn-handle.cc.

References base_fcn_handle::fcn_name(), m, type(), and workspace().

◆ is_anonymous()

virtual bool base_fcn_handle::is_anonymous ( void  ) const
inlinevirtualinherited

Reimplemented in base_anonymous_fcn_handle.

Definition at line 84 of file ov-fcn-handle.h.

◆ is_class_simple()

virtual bool base_fcn_handle::is_class_simple ( void  ) const
inlinevirtualinherited

Reimplemented in class_simple_fcn_handle.

Definition at line 82 of file ov-fcn-handle.h.

◆ is_internal()

virtual bool base_fcn_handle::is_internal ( void  ) const
inlinevirtualinherited

Reimplemented in internal_fcn_handle.

Definition at line 67 of file ov-fcn-handle.h.

◆ is_nested() [1/4]

virtual bool base_fcn_handle::is_nested ( void  )
inlinevirtual

Reimplemented from base_fcn_handle.

Reimplemented in nested_fcn_handle, nested_fcn_handle, and nested_fcn_handle.

Definition at line 75 of file ov-fcn-handle.h.

◆ is_nested() [2/4]

virtual bool base_fcn_handle::is_nested ( const std::shared_ptr< stack_frame > &  ) const
inlinevirtualinherited

Reimplemented in nested_fcn_handle.

Definition at line 75 of file ov-fcn-handle.h.

◆ is_nested() [3/4]

virtual bool base_fcn_handle::is_nested ( void  )
inlinevirtual

Reimplemented from base_fcn_handle.

Reimplemented in nested_fcn_handle, nested_fcn_handle, and nested_fcn_handle.

Definition at line 73 of file ov-fcn-handle.h.

◆ is_nested() [4/4]

bool base_nested_fcn_handle::is_nested ( void  ) const
inlinevirtual

Reimplemented from base_fcn_handle.

Reimplemented in nested_fcn_handle, nested_fcn_handle, and nested_fcn_handle.

Definition at line 338 of file ov-fcn-handle.cc.

◆ is_scoped()

virtual bool base_fcn_handle::is_scoped ( void  ) const
inlinevirtualinherited

Reimplemented in scoped_fcn_handle.

Definition at line 71 of file ov-fcn-handle.h.

◆ is_simple()

virtual bool base_fcn_handle::is_simple ( void  ) const
inlinevirtualinherited

Reimplemented in simple_fcn_handle.

Definition at line 69 of file ov-fcn-handle.h.

◆ is_weak_anonymous()

virtual bool base_fcn_handle::is_weak_anonymous ( void  ) const
inlinevirtualinherited

Reimplemented in weak_anonymous_fcn_handle.

Definition at line 86 of file ov-fcn-handle.h.

◆ is_weak_nested()

virtual bool base_fcn_handle::is_weak_nested ( void  ) const
inlinevirtualinherited

Reimplemented in weak_nested_fcn_handle.

Definition at line 80 of file ov-fcn-handle.h.

◆ load_ascii()

bool base_nested_fcn_handle::load_ascii ( std::istream &  is)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1721 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented().

◆ load_binary()

bool base_nested_fcn_handle::load_binary ( std::istream &  is,
bool  swap,
mach_info::float_format  fmt 
)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1741 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented().

◆ load_hdf5()

bool base_nested_fcn_handle::load_hdf5 ( octave_hdf5_id group_hid,
octave_hdf5_id space_hid,
octave_hdf5_id type_hid 
)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1777 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented().

◆ make_weak_anonymous_handle()

octave_value base_fcn_handle::make_weak_anonymous_handle ( void  ) const
virtualinherited

Reimplemented in anonymous_fcn_handle.

Definition at line 784 of file ov-fcn-handle.cc.

References error(), and base_fcn_handle::type().

◆ make_weak_nested_handle()

octave_value base_fcn_handle::make_weak_nested_handle ( void  ) const
virtualinherited

Reimplemented in nested_fcn_handle.

Definition at line 777 of file ov-fcn-handle.cc.

References error(), and base_fcn_handle::type().

◆ print_as_scalar()

virtual bool base_fcn_handle::print_as_scalar ( void  ) const
inlinevirtualinherited

Reimplemented in base_anonymous_fcn_handle.

Definition at line 149 of file ov-fcn-handle.h.

◆ print_raw()

void base_nested_fcn_handle::print_raw ( std::ostream &  os,
bool  pr_as_read_syntax,
int  current_print_indent_level 
) const
virtual

Reimplemented from base_fcn_handle.

Definition at line 1802 of file ov-fcn-handle.cc.

References base_fcn_handle::m_name, and octave_print_internal().

◆ save_ascii()

bool base_nested_fcn_handle::save_ascii ( std::ostream &  os)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1712 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented().

◆ save_binary()

bool base_nested_fcn_handle::save_binary ( std::ostream &  os,
bool  save_as_floats 
)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1730 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented().

◆ save_hdf5()

bool base_nested_fcn_handle::save_hdf5 ( octave_hdf5_id  loc_id,
const char *  name,
bool  save_as_floats 
)
virtual

Reimplemented from base_fcn_handle.

Definition at line 1753 of file ov-fcn-handle.cc.

References base_fcn_handle::unimplemented(), and base_fcn_handle::warn_save().

◆ set_dispatch_class()

virtual void base_fcn_handle::set_dispatch_class ( const std::string &  )
inlinevirtualinherited

Definition at line 122 of file ov-fcn-handle.h.

◆ set_fcn()

virtual bool base_fcn_handle::set_fcn ( const std::string &  ,
const std::string &   
)
inlinevirtualinherited

Definition at line 152 of file ov-fcn-handle.h.

◆ subsref()

octave_value_list base_fcn_handle::subsref ( const std::string &  type,
const std::list< octave_value_list > &  idx,
int  nargout 
)
inherited

◆ type()

std::string base_nested_fcn_handle::type ( void  ) const
inlinevirtual

Implements base_fcn_handle.

Definition at line 334 of file ov-fcn-handle.cc.

Referenced by info().

◆ unimplemented()

◆ user_function_value()

octave_user_function* base_nested_fcn_handle::user_function_value ( bool  = false)
inlinevirtual

Reimplemented from base_fcn_handle.

Definition at line 347 of file ov-fcn-handle.cc.

References m_fcn, and octave_value::user_function_value().

◆ warn_load()

void base_fcn_handle::warn_load ( const char *  file_type) const
protectedinherited

Definition at line 882 of file ov-fcn-handle.cc.

References base_fcn_handle::type(), and warning_with_id().

◆ warn_save()

void base_fcn_handle::warn_save ( const char *  file_type) const
protectedinherited

◆ workspace()

virtual octave_value base_nested_fcn_handle::workspace ( void  ) const
pure virtual

Reimplemented from base_fcn_handle.

Implemented in weak_nested_fcn_handle, and nested_fcn_handle.

Referenced by info().

Member Data Documentation

◆ m_fcn

octave_value base_nested_fcn_handle::m_fcn
protected

◆ m_file

std::string base_fcn_handle::m_file
protectedinherited

◆ m_name


The documentation for this class was generated from the following file: