GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::class_simple_fcn_handle Class Reference
Inheritance diagram for octave::class_simple_fcn_handle:
Collaboration diagram for octave::class_simple_fcn_handle:

Public Member Functions

 class_simple_fcn_handle (const class_simple_fcn_handle &)=default
 
 class_simple_fcn_handle (const octave_value &fcn, const std::string &class_nm, const std::string &meth_nm)
 
 class_simple_fcn_handle (const octave_value &obj, const octave_value &fcn, const std::string &class_nm, const std::string &meth_nm)
 
 class_simple_fcn_handle (const std::string &class_nm, const std::string &meth_nm)
 
 class_simple_fcn_handle (const std::string &name, const std::string &file, const std::string &)
 
 ~class_simple_fcn_handle (void)=default
 
octave_value_list call (int nargout, const octave_value_list &args)
 
class_simple_fcn_handleclone (void) const
 
octave_value convert_to_str_internal (bool pad, bool force, char type) const
 
std::string dispatch_class (void) 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
 
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)
 
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
 

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_dispatch_class
 
octave_value m_fcn
 
std::string m_file
 
std::string m_name
 
octave_value m_obj
 

Friends

bool is_equal_to (const class_simple_fcn_handle &fh1, const class_simple_fcn_handle &fh2)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ class_simple_fcn_handle() [1/5]

octave::class_simple_fcn_handle::class_simple_fcn_handle ( const std::string &  name,
const std::string &  file,
const std::string &   
)
inline

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

Referenced by clone().

◆ class_simple_fcn_handle() [2/5]

octave::class_simple_fcn_handle::class_simple_fcn_handle ( const std::string &  class_nm,
const std::string &  meth_nm 
)

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

◆ class_simple_fcn_handle() [3/5]

octave::class_simple_fcn_handle::class_simple_fcn_handle ( const octave_value fcn,
const std::string &  class_nm,
const std::string &  meth_nm 
)

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

◆ class_simple_fcn_handle() [4/5]

octave::class_simple_fcn_handle::class_simple_fcn_handle ( const octave_value obj,
const octave_value fcn,
const std::string &  class_nm,
const std::string &  meth_nm 
)

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

◆ class_simple_fcn_handle() [5/5]

octave::class_simple_fcn_handle::class_simple_fcn_handle ( const class_simple_fcn_handle )
default

◆ ~class_simple_fcn_handle()

octave::class_simple_fcn_handle::~class_simple_fcn_handle ( void  )
default

Member Function Documentation

◆ call()

◆ clone()

class_simple_fcn_handle* octave::class_simple_fcn_handle::clone ( void  ) const
inlinevirtual

Implements octave::base_fcn_handle.

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

References class_simple_fcn_handle().

◆ convert_to_str_internal()

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

◆ dispatch_class()

std::string octave::class_simple_fcn_handle::dispatch_class ( void  ) const
inline

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

References m_dispatch_class.

Referenced by info().

◆ fcn_name()

◆ fcn_val()

octave_value octave::class_simple_fcn_handle::fcn_val ( void  )
inlinevirtual

Reimplemented from octave::base_fcn_handle.

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

References m_fcn.

◆ file()

◆ function_value()

octave_function* octave::class_simple_fcn_handle::function_value ( bool  = false)
inlinevirtual

◆ get_dispatch_class()

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

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

◆ info()

octave_scalar_map octave::class_simple_fcn_handle::info ( void  )
virtual

Reimplemented from octave::base_fcn_handle.

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

References dispatch_class(), octave::base_fcn_handle::fcn_name(), m, and type().

◆ is_anonymous()

virtual bool octave::base_fcn_handle::is_anonymous ( void  ) const
inlinevirtualinherited

Reimplemented in octave::anonymous_fcn_handle.

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

◆ is_class_simple()

bool octave::class_simple_fcn_handle::is_class_simple ( void  ) const
inlinevirtual

Reimplemented from octave::base_fcn_handle.

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

◆ is_internal()

virtual bool octave::base_fcn_handle::is_internal ( void  ) const
inlinevirtualinherited

Reimplemented in octave::internal_fcn_handle.

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

◆ is_nested()

virtual bool octave::base_fcn_handle::is_nested ( void  ) const
inlinevirtualinherited

Reimplemented in octave::nested_fcn_handle.

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

◆ is_scoped()

virtual bool octave::base_fcn_handle::is_scoped ( void  ) const
inlinevirtualinherited

Reimplemented in octave::scoped_fcn_handle.

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

◆ is_simple()

virtual bool octave::base_fcn_handle::is_simple ( void  ) const
inlinevirtualinherited

Reimplemented in octave::simple_fcn_handle.

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

◆ load_ascii()

bool octave::class_simple_fcn_handle::load_ascii ( std::istream &  is)
virtual

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::unimplemented().

◆ load_binary()

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

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::unimplemented().

◆ load_hdf5()

bool octave::class_simple_fcn_handle::load_hdf5 ( octave_hdf5_id group_hid,
octave_hdf5_id space_hid,
octave_hdf5_id type_hid 
)
virtual

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::unimplemented().

◆ print_as_scalar()

virtual bool octave::base_fcn_handle::print_as_scalar ( void  ) const
inlinevirtualinherited

Reimplemented in octave::anonymous_fcn_handle.

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

◆ print_raw()

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

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::m_name, and octave_print_internal().

◆ save_ascii()

bool octave::class_simple_fcn_handle::save_ascii ( std::ostream &  os)
virtual

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::unimplemented().

◆ save_binary()

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

Reimplemented from octave::base_fcn_handle.

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

References octave::base_fcn_handle::unimplemented().

◆ save_hdf5()

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

◆ set_dispatch_class()

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

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

◆ set_fcn()

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

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

◆ subsref()

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

◆ type()

std::string octave::class_simple_fcn_handle::type ( void  ) const
inlinevirtual

Implements octave::base_fcn_handle.

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

Referenced by info().

◆ unimplemented()

◆ user_function_value()

octave_user_function* octave::class_simple_fcn_handle::user_function_value ( bool  = false)
inlinevirtual

Reimplemented from octave::base_fcn_handle.

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

References m_fcn, and octave_value::user_function_value().

◆ warn_load()

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

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

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

◆ warn_save()

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

◆ workspace()

virtual octave_value octave::base_fcn_handle::workspace ( void  ) const
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().

Friends And Related Function Documentation

◆ is_equal_to

bool is_equal_to ( const class_simple_fcn_handle fh1,
const class_simple_fcn_handle fh2 
)
friend

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

Member Data Documentation

◆ m_dispatch_class

std::string octave::class_simple_fcn_handle::m_dispatch_class
protected

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

Referenced by call(), and dispatch_class().

◆ m_fcn

octave_value octave::class_simple_fcn_handle::m_fcn
protected

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

Referenced by call(), fcn_val(), function_value(), and user_function_value().

◆ m_file

◆ m_name

◆ m_obj

octave_value octave::class_simple_fcn_handle::m_obj
protected

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

Referenced by call().


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