GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::base_fcn_handle Class Referenceabstract

#include "ov-fcn-handle.h"

Inheritance diagram for octave::base_fcn_handle:
Collaboration diagram for octave::base_fcn_handle:

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_handleclone (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_functionfunction_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_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_file
 
std::string m_name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ base_fcn_handle() [1/2]

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

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

◆ base_fcn_handle() [2/2]

octave::base_fcn_handle::base_fcn_handle ( const base_fcn_handle )
default

◆ ~base_fcn_handle()

virtual octave::base_fcn_handle::~base_fcn_handle ( void  )
virtualdefault

Member Function Documentation

◆ call()

◆ clone()

◆ convert_to_str_internal()

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().

◆ fcn_name()

◆ fcn_val()

virtual octave_value octave::base_fcn_handle::fcn_val ( void  )
inlinevirtual

◆ file()

std::string octave::base_fcn_handle::file ( void  ) const
inline

◆ function_value()

virtual octave_function* octave::base_fcn_handle::function_value ( bool  = false)
inlinevirtual

◆ get_dispatch_class()

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

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

◆ info()

◆ is_anonymous()

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

Reimplemented in octave::anonymous_fcn_handle.

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

◆ is_class_simple()

virtual bool octave::base_fcn_handle::is_class_simple ( void  ) const
inlinevirtual

Reimplemented in octave::class_simple_fcn_handle.

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

◆ is_internal()

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

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

Reimplemented in octave::simple_fcn_handle.

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

◆ load_ascii()

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

◆ load_binary()

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

◆ load_hdf5()

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

◆ print_as_scalar()

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

Reimplemented in octave::anonymous_fcn_handle.

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

◆ print_raw()

virtual void octave::base_fcn_handle::print_raw ( std::ostream &  ,
bool  ,
int   
) const
inlinevirtual

◆ save_ascii()

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

◆ save_binary()

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

◆ save_hdf5()

bool octave::base_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 &  )
inlinevirtual

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 &   
)
inlinevirtual

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 
)

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

References call(), error(), panic_impossible, retval, and type().

◆ type()

◆ unimplemented()

◆ user_function_value()

virtual octave_user_function* octave::base_fcn_handle::user_function_value ( bool  = false)
inlinevirtual

◆ warn_load()

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

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

References type(), and warning_with_id().

◆ warn_save()

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

◆ workspace()

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

Member Data Documentation

◆ m_file

std::string octave::base_fcn_handle::m_file
protected

◆ m_name


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