GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_user_function Class Reference

#include "ov-usr-fcn.h"

Inheritance diagram for octave_user_function:
Collaboration diagram for octave_user_function:

Public Types

typedef octave_base_value *(* type_conv_fcn) (const octave_base_value &)
 
enum  unary_mapper_t {
  umap_abs, umap_acos, umap_acosh, umap_angle,
  umap_arg, umap_asin, umap_asinh, umap_atan,
  umap_atanh, umap_cbrt, umap_ceil, umap_conj,
  umap_cos, umap_cosh, umap_erf, umap_erfinv,
  umap_erfcinv, umap_erfc, umap_erfcx, umap_erfi,
  umap_dawson, umap_exp, umap_expm1, umap_isfinite,
  umap_fix, umap_floor, umap_gamma, umap_imag,
  umap_isinf, umap_isna, umap_isnan, umap_lgamma,
  umap_log, umap_log2, umap_log10, umap_log1p,
  umap_real, umap_round, umap_roundb, umap_signum,
  umap_sin, umap_sinh, umap_sqrt, umap_tan,
  umap_tanh, umap_xisalnum, umap_xisalpha, umap_xisascii,
  umap_xiscntrl, umap_xisdigit, umap_xisgraph, umap_xislower,
  umap_xisprint, umap_xispunct, umap_xisspace, umap_xisupper,
  umap_xisxdigit, umap_xsignbit, umap_xtolower, umap_xtoupper,
  umap_unknown, num_unary_mappers = umap_unknown
}
 

Public Member Functions

 octave_user_function (const octave::symbol_scope &scope=octave::symbol_scope(), octave::tree_parameter_list *pl=nullptr, octave::tree_parameter_list *rl=nullptr, octave::tree_statement_list *cl=nullptr)
 
 octave_user_function (const octave_user_function &fn)=delete
 
 ~octave_user_function (void)
 
void accept (octave::tree_walker &tw)
 
virtual bool accepts_postfix_index (char type) const
 
octave::symbol_record::context_id active_context () const
 
virtual octave_value all (int=0) const
 
octave_value_list all_va_args (const octave_value_list &args)
 
virtual octave_value any (int=0) const
 
virtual NDArray array_value (bool=false) const
 
virtual octave_value as_double (void) const
 
virtual octave_value as_int16 (void) const
 
virtual octave_value as_int32 (void) const
 
virtual octave_value as_int64 (void) const
 
virtual octave_value as_int8 (void) const
 
virtual mxArrayas_mxArray (void) const
 
virtual octave_value as_single (void) const
 
virtual octave_value as_uint16 (void) const
 
virtual octave_value as_uint32 (void) const
 
virtual octave_value as_uint64 (void) const
 
virtual octave_value as_uint8 (void) const
 
virtual void assign (const std::string &, const octave_value &)
 
int beginning_column (void) const
 
int beginning_line (void) const
 
octave::tree_statement_listbody (void)
 
virtual boolNDArray bool_array_value (bool=false) const
 
virtual boolMatrix bool_matrix_value (bool=false) const
 
virtual bool bool_value (bool=false) const
 
virtual builtin_type_t builtin_type (void) const
 
virtual size_t byte_size (void) const
 
void cache_function_text (const std::string &text, const octave::sys::time &timestamp)
 
octave_value_list call (octave::tree_evaluator &tw, int nargout=0, const octave_value_list &args=octave_value_list())
 
std::string canonical_name (void) const
 
virtual octave_idx_type capacity (void) const
 
virtual Cell cell_value (void) const
 
virtual Array< std::stringcellstr_value (void) const
 
virtual charNDArray char_array_value (bool=false) const
 
virtual charMatrix char_matrix_value (bool force=false) const
 
std::string class_name (void) const
 
virtual octave_classdefclassdef_object_value (bool silent=false)
 
octave_base_valueclone (void) const
 
octave_idx_type columns (void) const
 
virtual ComplexNDArray complex_array_value (bool=false) const
 
virtual ComplexDiagMatrix complex_diag_matrix_value (bool=false) const
 
virtual ComplexMatrix complex_matrix_value (bool=false) const
 
virtual Complex complex_value (bool=false) const
 
virtual void convert_to_row_or_column_vector (void)
 
virtual octave_value convert_to_str (bool pad=false, bool force=false, char type='\'') const
 
virtual octave_value convert_to_str_internal (bool pad, bool force, char type) const
 
octave_user_functiondefine_param_list (octave::tree_parameter_list *t)
 
octave_user_functiondefine_ret_list (octave::tree_parameter_list *t)
 
virtual octave_value diag (octave_idx_type k=0) const
 
virtual octave_value diag (octave_idx_type m, octave_idx_type n) const
 
virtual DiagMatrix diag_matrix_value (bool=false) const
 
virtual dim_vector dims (void) const
 
std::string dir_name (void) const
 
std::string dispatch_class (void) const
 
virtual octave_value do_index_op (const octave_value_list &idx, bool resize_ok=false)
 
std::string doc_string (void) const
 
void document (const std::string &ds)
 
virtual double double_value (bool=false) const
 
octave_value dump (void) const
 
virtual std::string edit_display (const float_display_format &, octave_idx_type, octave_idx_type) const
 
octave_base_valueempty_clone (void) const
 
int ending_column (void) const
 
int ending_line (void) const
 
void erase_subfunctions (void)
 
virtual octave_value fast_elem_extract (octave_idx_type n) const
 
virtual bool fast_elem_insert (octave_idx_type n, const octave_value &x)
 
virtual bool fast_elem_insert_self (void *where, builtin_type_t btyp) const
 
std::string fcn_file_name (void) const
 
virtual octave_fcn_handlefcn_handle_value (bool silent=false)
 
virtual octave_fcn_inlinefcn_inline_value (bool silent=false)
 
virtual octave_base_valuefind_parent_class (const std::string &)
 
virtual FloatNDArray float_array_value (bool=false) const
 
virtual FloatComplexNDArray float_complex_array_value (bool=false) const
 
virtual FloatComplexDiagMatrix float_complex_diag_matrix_value (bool=false) const
 
virtual FloatComplexMatrix float_complex_matrix_value (bool=false) const
 
virtual FloatComplex float_complex_value (bool=false) const
 
virtual FloatDiagMatrix float_diag_matrix_value (bool=false) const
 
virtual FloatMatrix float_matrix_value (bool=false) const
 
virtual float float_scalar_value (bool frc_str_conv=false) const
 
virtual float float_value (bool=false) const
 
virtual octave_value full_value (void) const
 
octave_functionfunction_value (bool=false)
 
std::string get_code_line (size_t line)
 
std::deque< std::stringget_code_lines (size_t line, size_t num_lines)
 
virtual float_display_format get_edit_display_format (void) const
 
octave::jit_function_infoget_info (void)
 
void grab (void)
 
virtual bool handles_dispatch_class (const std::string &) const
 
bool has_subfunctions (void) const
 
virtual idx_vector index_vector (bool require_integers=false) const
 
virtual int16NDArray int16_array_value (void) const
 
virtual octave_int16 int16_scalar_value (void) const
 
virtual int32NDArray int32_array_value (void) const
 
virtual octave_int32 int32_scalar_value (void) const
 
virtual int64NDArray int64_array_value (void) const
 
virtual octave_int64 int64_scalar_value (void) const
 
virtual int64_t int64_value (bool=false, bool=false) const
 
virtual int8NDArray int8_array_value (void) const
 
virtual octave_int8 int8_scalar_value (void) const
 
virtual int int_value (bool=false, bool=false) const
 
virtual bool is_all_va_args (void) const
 
bool is_anonymous_function (void) const
 
bool is_anonymous_function_of_class (const std::string &cname="") const
 
virtual bool is_bool_matrix (void) const
 
virtual bool is_bool_scalar (void) const
 
virtual bool is_builtin_function (void) const
 
virtual bool is_char_matrix (void) const
 
bool is_class_constructor (const std::string &cname="") const
 
bool is_class_method (const std::string &cname="") const
 
bool is_classdef_constructor (const std::string &cname="") const
 
virtual bool is_classdef_meta (void) const
 
virtual bool is_classdef_object (void) const
 
virtual bool is_classdef_superclass_ref (void) const
 
virtual bool is_complex_matrix (void) const
 
virtual bool is_complex_scalar (void) const
 
virtual bool is_constant (void) const
 
virtual bool is_cs_list (void) const
 
bool is_defined (void) const
 
virtual bool is_diag_matrix (void) const
 
virtual bool is_dld_function (void) const
 
virtual bool is_double_type (void) const
 
bool is_function (void) const
 
virtual bool is_function_handle (void) const
 
bool is_inline_function (void) const
 
virtual bool is_instance_of (const std::string &) const
 
virtual bool is_int16_type (void) const
 
virtual bool is_int32_type (void) const
 
virtual bool is_int64_type (void) const
 
virtual bool is_int8_type (void) const
 
virtual bool is_magic_colon (void) const
 
virtual bool is_matrix_type (void) const
 
virtual bool is_mex_function (void) const
 
bool is_nested_function (void) const
 
virtual bool is_package (void) const
 
virtual bool is_perm_matrix (void) const
 
bool is_private_function (void) const
 
bool is_private_function_of_class (const std::string &nm) const
 
virtual bool is_range (void) const
 
virtual bool is_real_matrix (void) const
 
virtual bool is_real_scalar (void) const
 
bool is_relative (void) const
 
virtual bool is_scalar_type (void) const
 
virtual bool is_single_type (void) const
 
virtual sortmode is_sorted_rows (sortmode mode=UNSORTED) const
 
bool is_special_expr (void) const
 
virtual bool is_sq_string (void) const
 
virtual bool is_string (void) const
 
bool is_subfunction (void) const
 
bool is_system_fcn_file (void) const
 
virtual bool is_true (void) const
 
virtual bool is_uint16_type (void) const
 
virtual bool is_uint32_type (void) const
 
virtual bool is_uint64_type (void) const
 
virtual bool is_uint8_type (void) const
 
bool is_user_code (void) const
 
bool is_user_function (void) const
 
virtual bool is_user_script (void) const
 
bool is_zero_by_zero (void) const
 
virtual bool iscell (void) const
 
virtual bool iscellstr (void) const
 
virtual bool iscomplex (void) const
 
bool isempty (void) const
 
virtual bool isfloat (void) const
 
virtual bool isinteger (void) const
 
virtual bool isjava (void) const
 
bool islocked (void) const
 
virtual bool islogical (void) const
 
virtual bool isnull (void) const
 
virtual bool isnumeric (void) const
 
virtual bool isobject (void) const
 
virtual bool isreal (void) const
 
virtual sortmode issorted (sortmode mode=UNSORTED) const
 
virtual bool issparse (void) const
 
virtual bool isstruct (void) const
 
octave::comment_listleading_comment (void)
 
virtual octave_value_list list_value (void) const
 
virtual bool load_ascii (std::istream &is)
 
virtual bool load_binary (std::istream &is, bool swap, octave::mach_info::float_format fmt)
 
virtual bool load_hdf5 (octave_hdf5_id loc_id, const char *name)
 
void lock (void)
 
void lock_subfunctions (void)
 
virtual long int long_value (bool=false, bool=false) const
 
virtual octave_value map (unary_mapper_t) const
 
virtual string_vector map_keys (void) const
 
virtual octave_map map_value (void) const
 
void mark_as_anonymous_function (void)
 
void mark_as_class_constructor (void)
 
void mark_as_class_method (void)
 
void mark_as_classdef_constructor (void)
 
void mark_as_inline_function (void)
 
void mark_as_nested_function (void)
 
void mark_as_private_function (const std::string &cname="")
 
void mark_as_subfunction (void)
 
void mark_as_system_fcn_file (void)
 
void mark_fcn_file_up_to_date (const octave::sys::time &t)
 
void mark_relative (void)
 
virtual MatrixType matrix_type (void) const
 
virtual MatrixType matrix_type (const MatrixType &typ) const
 
virtual Matrix matrix_value (bool=false) const
 
virtual void maybe_economize (void)
 
void maybe_relocate_end (void)
 
virtual void * mex_get_data (void) const
 
virtual octave_idx_typemex_get_ir (void) const
 
virtual octave_idx_typemex_get_jc (void) const
 
std::string name (void) const
 
virtual int ndims (void) const
 
virtual octave_idx_type nfields (void) const
 
virtual int nint_value (bool=false) const
 
virtual octave_idx_type nnz (void) const
 
virtual size_t nparents (void) const
 
virtual octave_idx_type numel (const octave_value_list &)
 
virtual octave_idx_type numel (void) const
 
virtual type_conv_info numeric_conversion_function (void) const
 
virtual type_conv_info numeric_demotion_function (void) const
 
virtual octave_idx_type nzmax (void) const
 
octave_user_functionoperator= (const octave_user_function &fn)=delete
 
std::string package_name (void) const
 
octave::tree_parameter_listparameter_list (void)
 
virtual std::list< std::stringparent_class_name_list (void) const
 
virtual string_vector parent_class_names (void) const
 
std::string parent_fcn_name (void) const
 
octave::symbol_scope parent_fcn_scope (void) const
 
virtual PermMatrix perm_matrix_value (void) const
 
virtual octave_value permute (const Array< int > &vec, bool=false) const
 
virtual void print (std::ostream &os, bool pr_as_read_syntax=false)
 
virtual bool print_as_scalar (void) const
 
virtual void print_info (std::ostream &os, const std::string &prefix) const
 
virtual bool print_name_tag (std::ostream &os, const std::string &name) const
 
virtual void print_raw (std::ostream &os, bool pr_as_read_syntax=false) const
 
virtual void print_with_name (std::ostream &output_buf, const std::string &name, bool print_padding=true)
 
std::string profiler_name (void) const
 
virtual void push_dispatch_class (const std::string &)
 
virtual Range range_value (void) const
 
void release (void)
 
virtual octave_value reshape (const dim_vector &) const
 
virtual octave_value resize (const dim_vector &, bool fill=false) const
 
octave::tree_parameter_listreturn_list (void)
 
octave_idx_type rows (void) 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 octave_scalar_map scalar_map_value (void) const
 
virtual double scalar_value (bool frc_str_conv=false) const
 
octave::symbol_scope scope (void)
 
virtual void short_disp (std::ostream &os) const
 
virtual short int short_value (bool=false, bool=false) const
 
virtual Matrix size (void)
 
virtual octave_value sort (octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
virtual octave_value sort (Array< octave_idx_type > &sidx, octave_idx_type dim=0, sortmode mode=ASCENDING) const
 
virtual Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
 
virtual SparseBoolMatrix sparse_bool_matrix_value (bool=false) const
 
virtual SparseComplexMatrix sparse_complex_matrix_value (bool=false) const
 
virtual SparseMatrix sparse_matrix_value (bool=false) const
 
octave::tree_expressionspecial_expr (void)
 
virtual octave_value squeeze (void) const
 
virtual std::string src_file_name (void) const
 
void stash_dir_name (const std::string &dir)
 
void stash_dispatch_class (const std::string &nm)
 
void stash_fcn_end_location (int line, int col)
 
void stash_fcn_file_name (const std::string &nm)
 
void stash_fcn_file_time (const octave::sys::time &t)
 
void stash_fcn_location (int line, int col)
 
void stash_function_name (const std::string &s)
 
void stash_info (octave::jit_function_info *info)
 
void stash_leading_comment (octave::comment_list *lc)
 
void stash_package_name (const std::string &pack)
 
void stash_parent_fcn_name (const std::string &p)
 
void stash_parent_fcn_scope (const octave::symbol_scope &ps)
 
void stash_subfunction_names (const std::list< std::string > &names)
 
void stash_trailing_comment (octave::comment_list *tc)
 
virtual std::string string_value (bool force=false) const
 
virtual string_vector string_vector_value (bool pad=false) const
 
std::list< std::stringsubfunction_names (void) const
 
std::map< std::string, octave_valuesubfunctions (void) const
 
virtual octave_value subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
bool subsasgn_optimization_ok (void)
 
virtual octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx)
 
virtual octave_value_list subsref (const std::string &type, const std::list< octave_value_list > &idx, int nargout)
 
virtual octave_value subsref (const std::string &type, const std::list< octave_value_list > &idx, bool auto_add)
 
bool takes_var_return (void) const
 
bool takes_varargs (void) const
 
octave::sys::time time_checked (void) const
 
octave::sys::time time_parsed (void) const
 
octave::comment_listtrailing_comment (void)
 
virtual octave_base_valuetry_narrowing_conversion (void)
 
int type_id (void) const
 
std::string type_name (void) const
 
virtual uint16NDArray uint16_array_value (void) const
 
virtual octave_uint16 uint16_scalar_value (void) const
 
virtual uint32NDArray uint32_array_value (void) const
 
virtual octave_uint32 uint32_scalar_value (void) const
 
virtual uint64NDArray uint64_array_value (void) const
 
virtual octave_uint64 uint64_scalar_value (void) const
 
virtual uint64_t uint64_value (bool=false, bool=false) const
 
virtual uint8NDArray uint8_array_value (void) const
 
virtual octave_uint8 uint8_scalar_value (void) const
 
virtual unsigned int uint_value (bool=false, bool=false) const
 
virtual unsigned long int ulong_value (bool=false, bool=false) const
 
virtual octave_value undef_subsasgn (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
virtual octave_base_valueunique_clone (void)
 
virtual octave_base_valueunique_parent_class (const std::string &)
 
virtual void unload (void)
 
void unlock (void)
 
void unlock_subfunctions (void)
 
octave::unwind_protectunwind_protect_frame (void)
 
octave_user_codeuser_code_value (bool=false)
 
octave_user_functionuser_function_value (bool=false)
 
virtual octave_user_scriptuser_script_value (bool silent=false)
 
virtual unsigned short int ushort_value (bool=false, bool=false) const
 
virtual int write (octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
 
virtual std::string xstring_value () const
 

Static Public Member Functions

static void register_type (void)
 
static void register_type (octave::type_info &)
 
static std::string static_class_name (void)
 
static int static_type_id (void)
 
static std::string static_type_name (void)
 

Protected Member Functions

int current_print_indent_level (void) const
 
void decrement_indent_level (void) const
 
void get_file_info (void)
 
void increment_indent_level (void) const
 
void indent (std::ostream &os) const
 
void newline (std::ostream &os) const
 
octave_value numeric_assign (const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
 
void reset (void) const
 
void reset_indent_level (void) const
 
void warn_load (const char *type) const
 
void warn_save (const char *type) const
 

Static Protected Member Functions

static const char * get_umap_name (unary_mapper_t)
 

Protected Attributes

octave::refcount< octave_idx_typecount
 
octave::unwind_protectcurr_unwind_protect_frame
 
std::string doc
 
bool locked
 
octave::file_infom_file_info
 
octave::symbol_scope m_scope
 
std::string my_dir_name
 
std::string my_name
 
bool private_function
 
bool relative
 
std::string xdispatch_class
 
std::string xpackage_name
 

Private Types

enum  class_ctor_type { none, legacy, classdef }
 

Private Member Functions

void bind_automatic_vars (octave::tree_evaluator &tw, const string_vector &arg_names, int nargin, int nargout, const octave_value_list &va_args)
 
std::string ctor_type_str (void) const
 
void maybe_relocate_end_internal (void)
 
void print_code_function_header (const std::string &prefix)
 
void print_code_function_trailer (const std::string &prefix)
 
void restore_warning_states (void)
 

Private Attributes

bool anonymous_function
 
int call_depth
 
class_ctor_type class_constructor
 
bool class_method
 
octave::tree_statement_listcmd_list
 
int end_location_column
 
int end_location_line
 
std::string file_name
 
bool inline_function
 
octave::jit_function_infojit_info
 
octave::comment_listlead_comm
 
int location_column
 
int location_line
 
bool nested_function
 
int num_named_args
 
octave::tree_parameter_listparam_list
 
std::string parent_name
 
octave::tree_parameter_listret_list
 
bool subfunction
 
bool system_fcn_file
 
octave::sys::time t_checked
 
octave::sys::time t_parsed
 
octave::comment_listtrail_comm
 

Static Private Attributes

static const std::string c_name
 
static int t_id
 
static const std::string t_name
 

Detailed Description

Definition at line 205 of file ov-usr-fcn.h.

Member Typedef Documentation

◆ type_conv_fcn

typedef octave_base_value*(* octave_base_value::type_conv_fcn) (const octave_base_value &)
inherited

Definition at line 207 of file ov-base.h.

Member Enumeration Documentation

◆ class_ctor_type

Enumerator
none 
legacy 
classdef 

Definition at line 412 of file ov-usr-fcn.h.

◆ unary_mapper_t

Enumerator
umap_abs 
umap_acos 
umap_acosh 
umap_angle 
umap_arg 
umap_asin 
umap_asinh 
umap_atan 
umap_atanh 
umap_cbrt 
umap_ceil 
umap_conj 
umap_cos 
umap_cosh 
umap_erf 
umap_erfinv 
umap_erfcinv 
umap_erfc 
umap_erfcx 
umap_erfi 
umap_dawson 
umap_exp 
umap_expm1 
umap_isfinite 
umap_fix 
umap_floor 
umap_gamma 
umap_imag 
umap_isinf 
umap_isna 
umap_isnan 
umap_lgamma 
umap_log 
umap_log2 
umap_log10 
umap_log1p 
umap_real 
umap_round 
umap_roundb 
umap_signum 
umap_sin 
umap_sinh 
umap_sqrt 
umap_tan 
umap_tanh 
umap_xisalnum 
umap_xisalpha 
umap_xisascii 
umap_xiscntrl 
umap_xisdigit 
umap_xisgraph 
umap_xislower 
umap_xisprint 
umap_xispunct 
umap_xisspace 
umap_xisupper 
umap_xisxdigit 
umap_xsignbit 
umap_xtolower 
umap_xtoupper 
umap_unknown 
num_unary_mappers 

Definition at line 729 of file ov-base.h.

Constructor & Destructor Documentation

◆ octave_user_function() [1/2]

octave_user_function::octave_user_function ( const octave::symbol_scope scope = octave::symbol_scope (),
octave::tree_parameter_list pl = nullptr,
octave::tree_parameter_list rl = nullptr,
octave::tree_statement_list cl = nullptr 
)

Definition at line 243 of file ov-usr-fcn.cc.

◆ octave_user_function() [2/2]

octave_user_function::octave_user_function ( const octave_user_function fn)
delete

◆ ~octave_user_function()

octave_user_function::~octave_user_function ( void  )

Member Function Documentation

◆ accept()

void octave_user_function::accept ( octave::tree_walker tw)
virtual

Reimplemented from octave_function.

Definition at line 682 of file ov-usr-fcn.cc.

References octave::tree_walker::visit_octave_user_function().

◆ accepts_postfix_index()

virtual bool octave_function::accepts_postfix_index ( char  type) const
inlinevirtualinherited

Reimplemented in octave_classdef_meta.

Definition at line 200 of file ov-fcn.h.

References type.

Referenced by octave::tree_evaluator::visit_identifier().

◆ active_context()

octave::symbol_record::context_id octave_user_function::active_context ( ) const
inline

Definition at line 223 of file ov-usr-fcn.h.

References call_depth.

◆ all()

◆ all_va_args()

octave_value_list octave_user_function::all_va_args ( const octave_value_list args)

Definition at line 477 of file ov-usr-fcn.cc.

References octave_value_list::length(), num_named_args, retval, and octave_value_list::slice().

Referenced by call().

◆ any()

◆ array_value()

◆ as_double()

◆ as_int16()

◆ as_int32()

◆ as_int64()

◆ as_int8()

◆ as_mxArray()

◆ as_single()

◆ as_uint16()

◆ as_uint32()

◆ as_uint64()

◆ as_uint8()

◆ assign()

virtual void octave_base_value::assign ( const std::string ,
const octave_value  
)
inlinevirtualinherited

Reimplemented in octave_class.

Definition at line 300 of file ov-base.h.

◆ beginning_column()

int octave_user_function::beginning_column ( void  ) const
inline

Definition at line 248 of file ov-usr-fcn.h.

Referenced by maybe_relocate_end_internal().

◆ beginning_line()

int octave_user_function::beginning_line ( void  ) const
inline

Definition at line 247 of file ov-usr-fcn.h.

Referenced by maybe_relocate_end_internal().

◆ bind_automatic_vars()

void octave_user_function::bind_automatic_vars ( octave::tree_evaluator tw,
const string_vector arg_names,
int  nargin,
int  nargout,
const octave_value_list va_args 
)
private

◆ body()

octave::tree_statement_list* octave_user_function::body ( void  )
inlinevirtual

Implements octave_user_code.

Definition at line 388 of file ov-usr-fcn.h.

Referenced by is_dummy_method().

◆ bool_array_value()

◆ bool_matrix_value()

boolMatrix octave_base_value::bool_matrix_value ( bool  = false) const
virtualinherited

◆ bool_value()

bool octave_base_value::bool_value ( bool  = false) const
virtualinherited

◆ builtin_type()

◆ byte_size()

◆ cache_function_text()

void octave_user_code::cache_function_text ( const std::string text,
const octave::sys::time timestamp 
)
inherited

◆ call()

octave_value_list octave_user_function::call ( octave::tree_evaluator tw,
int  nargout = 0,
const octave_value_list args = octave_value_list () 
)
virtual

Implements octave_function.

Definition at line 490 of file ov-usr-fcn.cc.

References octave::__get_call_stack__(), octave::tree_statement_list::accept(), octave::action_container::add_method(), all_va_args(), anonymous_function, bind_automatic_vars(), octave::tree_break_command::breaking, call_depth, cmd_list, octave::context, octave::tree_evaluator::convert_return_list_to_const_vector(), cs, octave_user_code::curr_unwind_protect_frame, octave::symbol_scope::current_context(), octave::tree_evaluator::define_parameter_list_from_arg_vector(), octave_function::dispatch_class(), octave::tree_evaluator::echo(), octave::tree_evaluator::ECHO_FUNCTIONS, error(), octave::tree_evaluator::evaluate_n(), octave::tree_jit::execute(), file_name, frame, octave::base_list< elt_type >::front(), octave::tree_evaluator::function, octave::tree_evaluator::get_profiler(), is_anonymous_function(), is_classdef_constructor(), octave_value::is_defined(), is_special_expr(), octave::base_list< elt_type >::length(), octave_value_list::length(), octave_user_code::m_scope, octave::tree_evaluator::max_recursion_depth(), octave_function::name(), octave_value_list::name_tags(), nargout(), panic_impossible, param_list, octave::call_stack::pop(), octave::symbol_scope::pop_context(), octave::action_container::protect_var(), octave::call_stack::push(), octave::symbol_scope::push_context(), octave::tree_evaluator::push_echo_state(), octave::symbol_scope::refresh(), restore_warning_states(), ret_list, octave::tree_return_command::returning, retval, octave::call_stack::set_location(), octave_value_list::slice(), octave::tree_evaluator::statement_context, octave::tree_parameter_list::takes_varargs(), octave::tree_evaluator::undefine_parameter_list(), octave::tree_parameter_list::varargs_only(), octave::symbol_scope::varval(), Vtrack_line_num, and octave_value::xcell_value().

◆ canonical_name()

std::string octave_function::canonical_name ( void  ) const
inlineinherited

Definition at line 184 of file ov-fcn.h.

Referenced by octave::out_of_date_check().

◆ capacity()

virtual octave_idx_type octave_base_value::capacity ( void  ) const
inlinevirtualinherited

◆ cell_value()

Cell octave_base_value::cell_value ( void  ) const
virtualinherited

Reimplemented in octave_cell.

Definition at line 533 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ cellstr_value()

Array< std::string > octave_base_value::cellstr_value ( void  ) const
virtualinherited

Reimplemented in octave_cell, and octave_char_matrix_str.

Definition at line 807 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ char_array_value()

◆ char_matrix_value()

charMatrix octave_base_value::char_matrix_value ( bool  force = false) const
virtualinherited

Reimplemented in octave_char_matrix.

Definition at line 620 of file ov-base.cc.

References octave_base_value::convert_to_str(), and tmp.

◆ class_name()

std::string octave_user_function::class_name ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 502 of file ov-usr-fcn.h.

◆ classdef_object_value()

octave_classdef * octave_base_value::classdef_object_value ( bool  silent = false)
virtualinherited

Reimplemented in octave_classdef.

Definition at line 861 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ clone()

octave_base_value * octave_function::clone ( void  ) const
virtualinherited

Reimplemented from octave_base_value.

Definition at line 33 of file ov-fcn.cc.

References panic_impossible.

◆ columns()

octave_idx_type octave_base_value::columns ( void  ) const
inlineinherited

Definition at line 323 of file ov-base.h.

References dims, and dv.

Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), octave_sparse_bool_matrix::complex_value(), octave_sparse_matrix::complex_value(), octave_float_complex_matrix::complex_value(), octave_complex_matrix::complex_value(), octave_char_matrix::complex_value(), octave_float_matrix::complex_value(), octave_perm_matrix::complex_value(), octave_bool_matrix::complex_value(), octave_matrix::complex_value(), octave_char_matrix::double_value(), octave_float_complex_matrix::double_value(), octave_complex_matrix::double_value(), octave_bool_matrix::double_value(), octave_float_complex_matrix::float_complex_value(), octave_complex_matrix::float_complex_value(), octave_char_matrix::float_complex_value(), octave_float_matrix::float_complex_value(), octave_perm_matrix::float_complex_value(), octave_bool_matrix::float_complex_value(), octave_matrix::float_complex_value(), octave_char_matrix::float_value(), octave_float_complex_matrix::float_value(), octave_complex_matrix::float_value(), octave_bool_matrix::float_value(), octave_char_matrix::int64_scalar_value(), oct_binop_add_cdm_scm(), oct_binop_add_cdm_sm(), oct_binop_add_dm_scm(), oct_binop_add_dm_sm(), oct_binop_add_scm_cdm(), oct_binop_add_scm_dm(), oct_binop_add_sm_cdm(), oct_binop_add_sm_dm(), oct_binop_div(), oct_binop_div_scm_cdm(), oct_binop_div_scm_dm(), oct_binop_div_sm_cdm(), oct_binop_div_sm_dm(), oct_binop_ldiv(), oct_binop_mul_cdm_scm(), oct_binop_mul_cdm_sm(), oct_binop_mul_dm_scm(), oct_binop_mul_dm_sm(), oct_binop_mul_pm_scm(), oct_binop_mul_pm_sm(), oct_binop_mul_scm_cdm(), oct_binop_mul_scm_dm(), oct_binop_mul_scm_pm(), oct_binop_mul_sm_cdm(), oct_binop_mul_sm_dm(), oct_binop_mul_sm_pm(), oct_binop_sub_cdm_scm(), oct_binop_sub_cdm_sm(), oct_binop_sub_dm_scm(), oct_binop_sub_dm_sm(), oct_binop_sub_scm_cdm(), oct_binop_sub_scm_dm(), oct_binop_sub_sm_cdm(), oct_binop_sub_sm_dm(), octave_cell::print_raw(), octave_float_complex_matrix::save_ascii(), octave_cell::save_ascii(), octave_complex_matrix::save_ascii(), octave_float_matrix::save_ascii(), octave_bool_matrix::save_ascii(), octave_matrix::save_ascii(), octave_char_matrix::uint64_scalar_value(), and octave::tree_evaluator::visit_matrix().

◆ complex_array_value()

◆ complex_diag_matrix_value()

◆ complex_matrix_value()

◆ complex_value()

◆ convert_to_row_or_column_vector()

void octave_base_value::convert_to_row_or_column_vector ( void  )
virtualinherited

Definition at line 394 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ convert_to_str()

◆ convert_to_str_internal()

◆ ctor_type_str()

std::string octave_user_function::ctor_type_str ( void  ) const
private

Definition at line 715 of file ov-usr-fcn.cc.

References class_constructor, classdef, legacy, none, retval, and string.

Referenced by dump().

◆ current_print_indent_level()

◆ decrement_indent_level()

void octave_base_value::decrement_indent_level ( void  ) const
inlineprotectedinherited

◆ define_param_list()

octave_user_function* octave_user_function::define_param_list ( octave::tree_parameter_list t)

◆ define_ret_list()

octave_user_function * octave_user_function::define_ret_list ( octave::tree_parameter_list t)

Definition at line 285 of file ov-usr-fcn.cc.

References ret_list, and t.

◆ diag() [1/2]

◆ diag() [2/2]

◆ diag_matrix_value()

◆ dims()

◆ dir_name()

std::string octave_function::dir_name ( void  ) const
inlineinherited

◆ dispatch_class()

std::string octave_function::dispatch_class ( void  ) const
inlineinherited

◆ do_index_op()

◆ doc_string()

std::string octave_function::doc_string ( void  ) const
inlineinherited

Definition at line 194 of file ov-fcn.h.

◆ document()

void octave_function::document ( const std::string ds)
inlineinherited

Definition at line 192 of file ov-fcn.h.

◆ double_value()

◆ dump()

◆ edit_display()

◆ empty_clone()

octave_base_value * octave_function::empty_clone ( void  ) const
virtualinherited

Reimplemented from octave_base_value.

Definition at line 40 of file ov-fcn.cc.

References panic_impossible.

◆ ending_column()

int octave_user_function::ending_column ( void  ) const
inline

Definition at line 257 of file ov-usr-fcn.h.

◆ ending_line()

int octave_user_function::ending_line ( void  ) const
inline

Definition at line 256 of file ov-usr-fcn.h.

◆ erase_subfunctions()

void octave_user_function::erase_subfunctions ( void  )
virtual

Reimplemented from octave_base_value.

Definition at line 415 of file ov-usr-fcn.cc.

References octave::symbol_scope::erase_subfunctions(), and octave_user_code::m_scope.

◆ fast_elem_extract()

◆ fast_elem_insert()

◆ fast_elem_insert_self()

◆ fcn_file_name()

std::string octave_user_function::fcn_file_name ( void  ) const
inlinevirtual

◆ fcn_handle_value()

octave_fcn_handle * octave_base_value::fcn_handle_value ( bool  silent = false)
virtualinherited

Reimplemented in octave_fcn_handle.

Definition at line 907 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ fcn_inline_value()

octave_fcn_inline * octave_base_value::fcn_inline_value ( bool  silent = false)
virtualinherited

Reimplemented in octave_fcn_inline.

Definition at line 916 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ find_parent_class()

virtual octave_base_value* octave_base_value::find_parent_class ( const std::string )
inlinevirtualinherited

◆ float_array_value()

◆ float_complex_array_value()

◆ float_complex_diag_matrix_value()

FloatComplexDiagMatrix octave_base_value::float_complex_diag_matrix_value ( bool  = false) const
virtualinherited

◆ float_complex_matrix_value()

◆ float_complex_value()

◆ float_diag_matrix_value()

FloatDiagMatrix octave_base_value::float_diag_matrix_value ( bool  = false) const
virtualinherited

◆ float_matrix_value()

◆ float_scalar_value()

virtual float octave_base_value::float_scalar_value ( bool  frc_str_conv = false) const
inlinevirtualinherited

◆ float_value()

◆ full_value()

◆ function_value()

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

Reimplemented from octave_base_value.

Definition at line 229 of file ov-usr-fcn.h.

◆ get_code_line()

std::string octave_user_code::get_code_line ( size_t  line)
inherited

◆ get_code_lines()

std::deque< std::string > octave_user_code::get_code_lines ( size_t  line,
size_t  num_lines 
)
inherited

◆ get_edit_display_format()

◆ get_file_info()

◆ get_info()

octave::jit_function_info* octave_user_function::get_info ( void  )
inline

Definition at line 403 of file ov-usr-fcn.h.

◆ get_umap_name()

const char * octave_base_value::get_umap_name ( unary_mapper_t  umap)
staticprotectedinherited

Definition at line 1024 of file ov-base.cc.

References octave_base_value::num_unary_mappers.

Referenced by octave_char_matrix::map(), and octave_base_value::map().

◆ grab()

◆ handles_dispatch_class()

virtual bool octave_function::handles_dispatch_class ( const std::string ) const
inlinevirtualinherited

◆ has_subfunctions()

bool octave_user_function::has_subfunctions ( void  ) const
virtual

Reimplemented from octave_function.

Definition at line 459 of file ov-usr-fcn.cc.

References octave::symbol_scope::has_subfunctions(), and octave_user_code::m_scope.

◆ increment_indent_level()

void octave_base_value::increment_indent_level ( void  ) const
inlineprotectedinherited

◆ indent()

◆ index_vector()

◆ int16_array_value()

◆ int16_scalar_value()

octave_int16 octave_base_value::int16_scalar_value ( void  ) const
virtualinherited

◆ int32_array_value()

◆ int32_scalar_value()

octave_int32 octave_base_value::int32_scalar_value ( void  ) const
virtualinherited

◆ int64_array_value()

◆ int64_scalar_value()

octave_int64 octave_base_value::int64_scalar_value ( void  ) const
virtualinherited

◆ int64_value()

int64_t octave_base_value::int64_value ( bool  require_int = false,
bool  frc_str_conv = false 
) const
virtualinherited

Definition at line 497 of file ov-base.cc.

◆ int8_array_value()

◆ int8_scalar_value()

octave_int8 octave_base_value::int8_scalar_value ( void  ) const
virtualinherited

◆ int_value()

int octave_base_value::int_value ( bool  require_int = false,
bool  frc_str_conv = false 
) const
virtualinherited

Definition at line 491 of file ov-base.cc.

◆ is_all_va_args()

virtual bool octave_base_value::is_all_va_args ( void  ) const
inlinevirtualinherited

Definition at line 409 of file ov-base.h.

◆ is_anonymous_function()

bool octave_user_function::is_anonymous_function ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 332 of file ov-usr-fcn.h.

Referenced by call(), profiler_name(), and octave::fcn_info::fcn_info_rep::xfind().

◆ is_anonymous_function_of_class()

bool octave_user_function::is_anonymous_function_of_class ( const std::string cname = "") const
inlinevirtual

Reimplemented from octave_function.

Definition at line 335 of file ov-usr-fcn.h.

◆ is_bool_matrix()

virtual bool octave_base_value::is_bool_matrix ( void  ) const
inlinevirtualinherited

Reimplemented in octave_bool_matrix, and octave_sparse_bool_matrix.

Definition at line 377 of file ov-base.h.

◆ is_bool_scalar()

virtual bool octave_base_value::is_bool_scalar ( void  ) const
inlinevirtualinherited

Reimplemented in octave_bool.

Definition at line 375 of file ov-base.h.

◆ is_builtin_function()

virtual bool octave_base_value::is_builtin_function ( void  ) const
inlinevirtualinherited

Reimplemented in octave_builtin, octave_mex_function, and octave_dld_function.

Definition at line 477 of file ov-base.h.

◆ is_char_matrix()

virtual bool octave_base_value::is_char_matrix ( void  ) const
inlinevirtualinherited

Reimplemented in octave_char_matrix.

Definition at line 379 of file ov-base.h.

◆ is_class_constructor()

bool octave_user_function::is_class_constructor ( const std::string cname = "") const
inlinevirtual

Reimplemented from octave_function.

Definition at line 360 of file ov-usr-fcn.h.

◆ is_class_method()

bool octave_user_function::is_class_method ( const std::string cname = "") const
inlinevirtual

Reimplemented from octave_function.

Definition at line 374 of file ov-usr-fcn.h.

◆ is_classdef_constructor()

bool octave_user_function::is_classdef_constructor ( const std::string cname = "") const
inlinevirtual

Reimplemented from octave_function.

Definition at line 366 of file ov-usr-fcn.h.

Referenced by call(), and is_method_executing().

◆ is_classdef_meta()

virtual bool octave_base_value::is_classdef_meta ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef_meta.

Definition at line 395 of file ov-base.h.

◆ is_classdef_object()

virtual bool octave_base_value::is_classdef_object ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef.

Definition at line 399 of file ov-base.h.

◆ is_classdef_superclass_ref()

virtual bool octave_base_value::is_classdef_superclass_ref ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef_superclass_ref.

Definition at line 397 of file ov-base.h.

◆ is_complex_matrix()

virtual bool octave_base_value::is_complex_matrix ( void  ) const
inlinevirtualinherited

◆ is_complex_scalar()

virtual bool octave_base_value::is_complex_scalar ( void  ) const
inlinevirtualinherited

Reimplemented in octave_complex, and octave_float_complex.

Definition at line 371 of file ov-base.h.

◆ is_constant()

◆ is_cs_list()

virtual bool octave_base_value::is_cs_list ( void  ) const
inlinevirtualinherited

Reimplemented in octave_cs_list.

Definition at line 405 of file ov-base.h.

◆ is_defined()

◆ is_diag_matrix()

◆ is_dld_function()

virtual bool octave_base_value::is_dld_function ( void  ) const
inlinevirtualinherited

Reimplemented in octave_dld_function.

Definition at line 479 of file ov-base.h.

Referenced by get_current_shlib().

◆ is_double_type()

virtual bool octave_base_value::is_double_type ( void  ) const
inlinevirtualinherited

◆ is_function()

bool octave_function::is_function ( void  ) const
inlinevirtualinherited

Reimplemented from octave_base_value.

Definition at line 70 of file ov-fcn.h.

Referenced by octave::final_index_error().

◆ is_function_handle()

virtual bool octave_base_value::is_function_handle ( void  ) const
inlinevirtualinherited

Reimplemented in octave_fcn_handle.

Definition at line 463 of file ov-base.h.

◆ is_inline_function()

bool octave_user_function::is_inline_function ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 328 of file ov-usr-fcn.h.

◆ is_instance_of()

virtual bool octave_base_value::is_instance_of ( const std::string ) const
inlinevirtualinherited

Reimplemented in octave_classdef, octave_class, and octave_java.

Definition at line 620 of file ov-base.h.

◆ is_int16_type()

virtual bool octave_base_value::is_int16_type ( void  ) const
inlinevirtualinherited

Definition at line 425 of file ov-base.h.

◆ is_int32_type()

virtual bool octave_base_value::is_int32_type ( void  ) const
inlinevirtualinherited

Definition at line 427 of file ov-base.h.

◆ is_int64_type()

virtual bool octave_base_value::is_int64_type ( void  ) const
inlinevirtualinherited

Definition at line 429 of file ov-base.h.

◆ is_int8_type()

virtual bool octave_base_value::is_int8_type ( void  ) const
inlinevirtualinherited

Definition at line 423 of file ov-base.h.

◆ is_magic_colon()

virtual bool octave_base_value::is_magic_colon ( void  ) const
inlinevirtualinherited

Reimplemented in octave_magic_colon.

Definition at line 407 of file ov-base.h.

◆ is_matrix_type()

◆ is_mex_function()

virtual bool octave_base_value::is_mex_function ( void  ) const
inlinevirtualinherited

Reimplemented in octave_mex_function.

Definition at line 481 of file ov-base.h.

Referenced by get_current_shlib().

◆ is_nested_function()

bool octave_user_function::is_nested_function ( void  ) const
inline

Definition at line 352 of file ov-usr-fcn.h.

Referenced by octave_fcn_handle::octave_fcn_handle().

◆ is_package()

virtual bool octave_base_value::is_package ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef_meta.

Definition at line 401 of file ov-base.h.

◆ is_perm_matrix()

virtual bool octave_base_value::is_perm_matrix ( void  ) const
inlinevirtualinherited

Reimplemented in octave_perm_matrix.

Definition at line 383 of file ov-base.h.

◆ is_private_function()

bool octave_function::is_private_function ( void  ) const
inlineinherited

Definition at line 135 of file ov-fcn.h.

Referenced by Ffunctions(), and get_class_context().

◆ is_private_function_of_class()

bool octave_function::is_private_function_of_class ( const std::string nm) const
inlineinherited

Definition at line 137 of file ov-fcn.h.

References nm.

Referenced by octave_class::in_class_method().

◆ is_range()

virtual bool octave_base_value::is_range ( void  ) const
inlinevirtualinherited

Reimplemented in octave_range.

Definition at line 389 of file ov-base.h.

◆ is_real_matrix()

virtual bool octave_base_value::is_real_matrix ( void  ) const
inlinevirtualinherited

◆ is_real_scalar()

virtual bool octave_base_value::is_real_scalar ( void  ) const
inlinevirtualinherited

◆ is_relative()

bool octave_function::is_relative ( void  ) const
inlineinherited

Definition at line 180 of file ov-fcn.h.

Referenced by octave::out_of_date_check().

◆ is_scalar_type()

◆ is_single_type()

virtual bool octave_base_value::is_single_type ( void  ) const
inlinevirtualinherited

◆ is_sorted_rows()

◆ is_special_expr()

bool octave_user_function::is_special_expr ( void  ) const
inline

Definition at line 347 of file ov-usr-fcn.h.

Referenced by call(), and special_expr().

◆ is_sq_string()

virtual bool octave_base_value::is_sq_string ( void  ) const
inlinevirtualinherited

Reimplemented in octave_char_matrix_sq_str.

Definition at line 387 of file ov-base.h.

Referenced by octave_char_matrix_str::edit_display(), and octave_char_matrix_str::resize().

◆ is_string()

virtual bool octave_base_value::is_string ( void  ) const
inlinevirtualinherited

Reimplemented in octave_char_matrix_str.

Definition at line 385 of file ov-base.h.

◆ is_subfunction()

bool octave_user_function::is_subfunction ( void  ) const
inlinevirtual

Reimplemented from octave_function.

Definition at line 324 of file ov-usr-fcn.h.

Referenced by octave_fcn_handle::octave_fcn_handle(), and profiler_name().

◆ is_system_fcn_file()

bool octave_user_function::is_system_fcn_file ( void  ) const
inlinevirtual

Reimplemented from octave_function.

Definition at line 294 of file ov-usr-fcn.h.

◆ is_true()

◆ is_uint16_type()

virtual bool octave_base_value::is_uint16_type ( void  ) const
inlinevirtualinherited

Definition at line 433 of file ov-base.h.

◆ is_uint32_type()

virtual bool octave_base_value::is_uint32_type ( void  ) const
inlinevirtualinherited

Definition at line 435 of file ov-base.h.

◆ is_uint64_type()

virtual bool octave_base_value::is_uint64_type ( void  ) const
inlinevirtualinherited

Definition at line 437 of file ov-base.h.

◆ is_uint8_type()

virtual bool octave_base_value::is_uint8_type ( void  ) const
inlinevirtualinherited

Definition at line 431 of file ov-base.h.

◆ is_user_code()

bool octave_user_code::is_user_code ( void  ) const
inlinevirtualinherited

Reimplemented from octave_base_value.

Definition at line 85 of file ov-usr-fcn.h.

◆ is_user_function()

bool octave_user_function::is_user_function ( void  ) const
inlinevirtual

Reimplemented from octave_base_value.

Definition at line 296 of file ov-usr-fcn.h.

◆ is_user_script()

virtual bool octave_base_value::is_user_script ( void  ) const
inlinevirtualinherited

Reimplemented in octave_user_script.

Definition at line 471 of file ov-base.h.

Referenced by Ffunctions().

◆ is_zero_by_zero()

bool octave_base_value::is_zero_by_zero ( void  ) const
inlineinherited

Definition at line 361 of file ov-base.h.

References dims.

Referenced by octave_char_matrix_str::edit_display().

◆ iscell()

virtual bool octave_base_value::iscell ( void  ) const
inlinevirtualinherited

Reimplemented in octave_cell.

Definition at line 363 of file ov-base.h.

◆ iscellstr()

virtual bool octave_base_value::iscellstr ( void  ) const
inlinevirtualinherited

Reimplemented in octave_cell.

Definition at line 365 of file ov-base.h.

◆ iscomplex()

virtual bool octave_base_value::iscomplex ( void  ) const
inlinevirtualinherited

◆ isempty()

◆ isfloat()

◆ isinteger()

virtual bool octave_base_value::isinteger ( void  ) const
inlinevirtualinherited

Reimplemented in OCTAVE_VALUE_INT_SCALAR_T, and OCTAVE_VALUE_INT_MATRIX_T.

Definition at line 441 of file ov-base.h.

◆ isjava()

virtual bool octave_base_value::isjava ( void  ) const
inlinevirtualinherited

Reimplemented in octave_java.

Definition at line 403 of file ov-base.h.

◆ islocked()

bool octave_function::islocked ( void  ) const
inlinevirtualinherited

Reimplemented from octave_base_value.

Definition at line 160 of file ov-fcn.h.

◆ islogical()

virtual bool octave_base_value::islogical ( void  ) const
inlinevirtualinherited

Reimplemented in octave_bool_matrix, octave_sparse_bool_matrix, and octave_bool.

Definition at line 439 of file ov-base.h.

◆ isnull()

virtual bool octave_base_value::isnull ( void  ) const
inlinevirtualinherited

Reimplemented in octave_null_sq_str, octave_null_str, and octave_null_matrix.

Definition at line 459 of file ov-base.h.

◆ isnumeric()

◆ isobject()

virtual bool octave_base_value::isobject ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef, octave_class, and octave_oncleanup.

Definition at line 393 of file ov-base.h.

◆ isreal()

◆ issorted()

◆ issparse()

virtual bool octave_base_value::issparse ( void  ) const
inlinevirtualinherited

◆ isstruct()

virtual bool octave_base_value::isstruct ( void  ) const
inlinevirtualinherited

Reimplemented in octave_classdef, octave_scalar_struct, octave_class, octave_struct, and octave_java.

Definition at line 391 of file ov-base.h.

◆ leading_comment()

octave::comment_list* octave_user_function::leading_comment ( void  )
inline

Definition at line 390 of file ov-usr-fcn.h.

◆ list_value()

octave_value_list octave_base_value::list_value ( void  ) const
virtualinherited

Reimplemented in octave_cell, and octave_cs_list.

Definition at line 925 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ load_ascii()

◆ load_binary()

◆ load_hdf5()

◆ lock()

void octave_function::lock ( void  )
inlinevirtualinherited

Reimplemented from octave_base_value.

Definition at line 148 of file ov-fcn.h.

◆ lock_subfunctions()

void octave_user_function::lock_subfunctions ( void  )
virtual

Reimplemented from octave_function.

Definition at line 441 of file ov-usr-fcn.cc.

References octave::symbol_scope::lock_subfunctions(), and octave_user_code::m_scope.

◆ long_value()

long int octave_base_value::long_value ( bool  require_int = false,
bool  frc_str_conv = false 
) const
virtualinherited

Definition at line 494 of file ov-base.cc.

◆ map()

◆ map_keys()

string_vector octave_base_value::map_keys ( void  ) const
virtualinherited

◆ map_value()

octave_map octave_base_value::map_value ( void  ) const
virtualinherited

◆ mark_as_anonymous_function()

void octave_user_function::mark_as_anonymous_function ( void  )
inline

Definition at line 330 of file ov-usr-fcn.h.

Referenced by octave::tree_evaluator::visit_anon_fcn_handle().

◆ mark_as_class_constructor()

void octave_user_function::mark_as_class_constructor ( void  )
inline

Definition at line 356 of file ov-usr-fcn.h.

Referenced by make_function_of_class().

◆ mark_as_class_method()

void octave_user_function::mark_as_class_method ( void  )
inline

Definition at line 372 of file ov-usr-fcn.h.

Referenced by make_function_of_class().

◆ mark_as_classdef_constructor()

void octave_user_function::mark_as_classdef_constructor ( void  )
inline

Definition at line 358 of file ov-usr-fcn.h.

Referenced by make_function_of_class().

◆ mark_as_inline_function()

void octave_user_function::mark_as_inline_function ( void  )
inline

Definition at line 326 of file ov-usr-fcn.h.

◆ mark_as_nested_function()

void octave_user_function::mark_as_nested_function ( void  )
inline

Definition at line 354 of file ov-usr-fcn.h.

◆ mark_as_private_function()

void octave_user_function::mark_as_private_function ( const std::string cname = "")
virtual

◆ mark_as_subfunction()

void octave_user_function::mark_as_subfunction ( void  )
inline

Definition at line 322 of file ov-usr-fcn.h.

◆ mark_as_system_fcn_file()

void octave_user_function::mark_as_system_fcn_file ( void  )

Definition at line 391 of file ov-usr-fcn.cc.

◆ mark_fcn_file_up_to_date()

void octave_user_function::mark_fcn_file_up_to_date ( const octave::sys::time t)
inlinevirtual

Reimplemented from octave_function.

Definition at line 269 of file ov-usr-fcn.h.

References t.

◆ mark_relative()

void octave_function::mark_relative ( void  )
inlineinherited

Definition at line 178 of file ov-fcn.h.

Referenced by install_dld_function(), and install_mex_function().

◆ matrix_type() [1/2]

◆ matrix_type() [2/2]

◆ matrix_value()

◆ maybe_economize()

◆ maybe_relocate_end()

void octave_user_function::maybe_relocate_end ( void  )
virtual

Reimplemented from octave_function.

Definition at line 343 of file ov-usr-fcn.cc.

References f, maybe_relocate_end_internal(), and subfunctions().

◆ maybe_relocate_end_internal()

◆ mex_get_data()

◆ mex_get_ir()

virtual octave_idx_type* octave_base_value::mex_get_ir ( void  ) const
inlinevirtualinherited

◆ mex_get_jc()

virtual octave_idx_type* octave_base_value::mex_get_jc ( void  ) const
inlinevirtualinherited

◆ name()

◆ ndims()

◆ newline()

◆ nfields()

octave_idx_type octave_base_value::nfields ( void  ) const
virtualinherited

Reimplemented in octave_scalar_struct, octave_class, and octave_struct.

Definition at line 327 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ nint_value()

int octave_base_value::nint_value ( bool  frc_str_conv = false) const
virtualinherited

◆ nnz()

◆ nparents()

size_t octave_base_value::nparents ( void  ) const
virtualinherited

Reimplemented in octave_class.

Definition at line 842 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ numel() [1/2]

◆ numel() [2/2]

◆ numeric_assign()

◆ numeric_conversion_function()

◆ numeric_demotion_function()

virtual type_conv_info octave_base_value::numeric_demotion_function ( void  ) const
inlinevirtualinherited

◆ nzmax()

octave_idx_type octave_base_value::nzmax ( void  ) const
virtualinherited

◆ operator=()

octave_user_function& octave_user_function::operator= ( const octave_user_function fn)
delete

◆ package_name()

std::string octave_function::package_name ( void  ) const
inlineinherited

Definition at line 126 of file ov-fcn.h.

Referenced by octave::out_of_date_check().

◆ parameter_list()

octave::tree_parameter_list* octave_user_function::parameter_list ( void  )
inline

Definition at line 384 of file ov-usr-fcn.h.

Referenced by is_method_executing(), and octave_oncleanup::octave_oncleanup().

◆ parent_class_name_list()

std::list< std::string > octave_base_value::parent_class_name_list ( void  ) const
virtualinherited

Reimplemented in octave_class.

Definition at line 848 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ parent_class_names()

string_vector octave_base_value::parent_class_names ( void  ) const
virtualinherited

Reimplemented in octave_class.

Definition at line 855 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

◆ parent_fcn_name()

std::string octave_user_function::parent_fcn_name ( void  ) const
inlinevirtual

Reimplemented from octave_function.

Definition at line 281 of file ov-usr-fcn.h.

◆ parent_fcn_scope()

octave::symbol_scope octave_user_function::parent_fcn_scope ( void  ) const
inlinevirtual

Reimplemented from octave_function.

Definition at line 283 of file ov-usr-fcn.h.

References octave::symbol_scope::parent_scope().

◆ perm_matrix_value()

PermMatrix octave_base_value::perm_matrix_value ( void  ) const
virtualinherited

◆ permute()

◆ print()

◆ print_as_scalar()

◆ print_code_function_header()

void octave_user_function::print_code_function_header ( const std::string prefix)
private

◆ print_code_function_trailer()

void octave_user_function::print_code_function_trailer ( const std::string prefix)
private

◆ print_info()

◆ print_name_tag()

◆ print_raw()

◆ print_with_name()

void octave_base_value::print_with_name ( std::ostream &  output_buf,
const std::string name,
bool  print_padding = true 
)
virtualinherited

◆ profiler_name()

std::string octave_user_function::profiler_name ( void  ) const
virtual

◆ push_dispatch_class()

virtual void octave_function::push_dispatch_class ( const std::string )
inlinevirtualinherited

Reimplemented in octave_builtin.

Definition at line 115 of file ov-fcn.h.

Referenced by octave::fcn_info::fcn_info_rep::install_built_in_dispatch().

◆ range_value()

Range octave_base_value::range_value ( void  ) const
virtualinherited

Reimplemented in octave_range.

Definition at line 813 of file ov-base.cc.

References err_wrong_type_arg(), and octave_base_value::type_name().

Referenced by octave::octave_jit_cast_range_any().

◆ register_type() [1/2]

void octave_user_function::register_type ( octave::type_info ti)
static

Definition at line 237 of file ov-usr-fcn.cc.

◆ register_type() [2/2]

void octave_user_function::register_type ( void  )
static

Definition at line 237 of file ov-usr-fcn.cc.

Referenced by install_types().

◆ release()

◆ reset()

void octave_base_value::reset ( void  ) const
protectedinherited

◆ reset_indent_level()

void octave_base_value::reset_indent_level ( void  ) const
inlineprotectedinherited

Definition at line 840 of file ov-base.h.

◆ reshape()

◆ resize()

◆ restore_warning_states()

void octave_user_function::restore_warning_states ( void  )
private

◆ return_list()

octave::tree_parameter_list* octave_user_function::return_list ( void  )
inline

Definition at line 386 of file ov-usr-fcn.h.

Referenced by is_method_executing().

◆ rows()

octave_idx_type octave_base_value::rows ( void  ) const
inlineinherited

Definition at line 316 of file ov-base.h.

References dims, and dv.

Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), octave_sparse_bool_matrix::complex_value(), octave_sparse_matrix::complex_value(), octave_float_complex_matrix::complex_value(), octave_complex_matrix::complex_value(), octave_char_matrix::complex_value(), octave_float_matrix::complex_value(), octave_perm_matrix::complex_value(), octave_bool_matrix::complex_value(), octave_matrix::complex_value(), octave_char_matrix::double_value(), octave_float_complex_matrix::double_value(), octave_complex_matrix::double_value(), octave_bool_matrix::double_value(), octave_char_matrix_str::edit_display(), octave_float_complex_matrix::float_complex_value(), octave_complex_matrix::float_complex_value(), octave_char_matrix::float_complex_value(), octave_float_matrix::float_complex_value(), octave_perm_matrix::float_complex_value(), octave_bool_matrix::float_complex_value(), octave_matrix::float_complex_value(), octave_char_matrix::float_value(), octave_float_complex_matrix::float_value(), octave_complex_matrix::float_value(), octave_bool_matrix::float_value(), octave_char_matrix::int64_scalar_value(), oct_binop_add_cdm_scm(), oct_binop_add_cdm_sm(), oct_binop_add_dm_scm(), oct_binop_add_dm_sm(), oct_binop_add_scm_cdm(), oct_binop_add_scm_dm(), oct_binop_add_sm_cdm(), oct_binop_add_sm_dm(), oct_binop_div(), oct_binop_div_scm_cdm(), oct_binop_div_scm_dm(), oct_binop_div_sm_cdm(), oct_binop_div_sm_dm(), oct_binop_ldiv(), oct_binop_mul_cdm_scm(), oct_binop_mul_cdm_sm(), oct_binop_mul_dm_scm(), oct_binop_mul_dm_sm(), oct_binop_mul_pm_scm(), oct_binop_mul_pm_sm(), oct_binop_mul_scm_cdm(), oct_binop_mul_scm_dm(), oct_binop_mul_scm_pm(), oct_binop_mul_sm_cdm(), oct_binop_mul_sm_dm(), oct_binop_mul_sm_pm(), oct_binop_sub_cdm_scm(), oct_binop_sub_cdm_sm(), oct_binop_sub_dm_scm(), oct_binop_sub_dm_sm(), oct_binop_sub_scm_cdm(), oct_binop_sub_scm_dm(), oct_binop_sub_sm_cdm(), oct_binop_sub_sm_dm(), octave_cell::print_raw(), octave_float_complex_matrix::save_ascii(), octave_cell::save_ascii(), octave_complex_matrix::save_ascii(), octave_float_matrix::save_ascii(), octave_bool_matrix::save_ascii(), octave_matrix::save_ascii(), and octave_char_matrix::uint64_scalar_value().

◆ save_ascii()

◆ save_binary()

◆ save_hdf5()

◆ scalar_map_value()

octave_scalar_map octave_base_value::scalar_map_value ( void  ) const
virtualinherited

Reimplemented in octave_scalar_struct, and octave_oncleanup.

Definition at line 825 of file ov-base.cc.

References error(), octave_base_value::map_value(), and tmp.

◆ scalar_value()

◆ scope()

octave::symbol_scope octave_user_code::scope ( void  )
inlinevirtualinherited

◆ short_disp()

◆ short_value()

short int octave_base_value::short_value ( bool  require_int = false,
bool  frc_str_conv = false 
) const
virtualinherited

Definition at line 488 of file ov-base.cc.

◆ size()

Matrix octave_base_value::size ( void  )
virtualinherited

Reimplemented in octave_class.

Definition at line 183 of file ov-base.cc.

References octave_base_value::dims(), dv, i, and dim_vector::ndims().

Referenced by octave_class::size().

◆ sort() [1/2]

◆ sort() [2/2]

◆ sort_rows_idx()

◆ sparse_bool_matrix_value()

SparseBoolMatrix octave_base_value::sparse_bool_matrix_value ( bool  = false) const
virtualinherited

◆ sparse_complex_matrix_value()

◆ sparse_matrix_value()

◆ special_expr()

◆ squeeze()

◆ src_file_name()

virtual std::string octave_function::src_file_name ( void  ) const
inlinevirtualinherited

Reimplemented in octave_builtin.

Definition at line 76 of file ov-fcn.h.

◆ stash_dir_name()

void octave_function::stash_dir_name ( const std::string dir)
inlineinherited

Definition at line 146 of file ov-fcn.h.

Referenced by octave::tree_evaluator::visit_anon_fcn_handle().

◆ stash_dispatch_class()

void octave_function::stash_dispatch_class ( const std::string nm)
inlineinherited

Definition at line 120 of file ov-fcn.h.

References nm.

Referenced by octave::tree_evaluator::visit_anon_fcn_handle().

◆ stash_fcn_end_location()

void octave_user_function::stash_fcn_end_location ( int  line,
int  col 
)
inline

Definition at line 250 of file ov-usr-fcn.h.

◆ stash_fcn_file_name()

void octave_user_function::stash_fcn_file_name ( const std::string nm)

Definition at line 293 of file ov-usr-fcn.cc.

References file_name, and nm.

◆ stash_fcn_file_time()

void octave_user_function::stash_fcn_file_time ( const octave::sys::time t)
inline

Definition at line 271 of file ov-usr-fcn.h.

References t.

◆ stash_fcn_location()

void octave_user_function::stash_fcn_location ( int  line,
int  col 
)
inline

Definition at line 241 of file ov-usr-fcn.h.

◆ stash_function_name()

void octave_user_function::stash_function_name ( const std::string s)
inline

Definition at line 320 of file ov-usr-fcn.h.

References s.

◆ stash_info()

void octave_user_function::stash_info ( octave::jit_function_info info)
inline

Definition at line 405 of file ov-usr-fcn.h.

◆ stash_leading_comment()

void octave_user_function::stash_leading_comment ( octave::comment_list lc)
inline

Definition at line 265 of file ov-usr-fcn.h.

◆ stash_package_name()

void octave_function::stash_package_name ( const std::string pack)
inlineinherited

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

◆ stash_parent_fcn_name()

void octave_user_function::stash_parent_fcn_name ( const std::string p)
inline

Definition at line 261 of file ov-usr-fcn.h.

References p.

Referenced by octave::tree_evaluator::visit_anon_fcn_handle().

◆ stash_parent_fcn_scope()

void octave_user_function::stash_parent_fcn_scope ( const octave::symbol_scope ps)

◆ stash_subfunction_names()

void octave_user_function::stash_subfunction_names ( const std::list< std::string > &  names)
virtual

Reimplemented from octave_function.

Definition at line 465 of file ov-usr-fcn.cc.

References octave_user_code::m_scope, and octave::symbol_scope::stash_subfunction_names().

◆ stash_trailing_comment()

void octave_user_function::stash_trailing_comment ( octave::comment_list tc)
inline

Definition at line 267 of file ov-usr-fcn.h.

◆ static_class_name()

static std::string octave_user_function::static_class_name ( void  )
inlinestatic

Definition at line 502 of file ov-usr-fcn.h.

◆ static_type_id()

static int octave_user_function::static_type_id ( void  )
inlinestatic

Definition at line 502 of file ov-usr-fcn.h.

◆ static_type_name()

static std::string octave_user_function::static_type_name ( void  )
inlinestatic

Definition at line 502 of file ov-usr-fcn.h.

◆ string_value()

std::string octave_base_value::string_value ( bool  force = false) const
virtualinherited

Reimplemented in octave_char_matrix_str.

Definition at line 791 of file ov-base.cc.

References octave_base_value::convert_to_str(), and tmp.

◆ string_vector_value()

string_vector octave_base_value::string_vector_value ( bool  pad = false) const
virtualinherited

Reimplemented in octave_class, octave_cell, and octave_char_matrix_str.

Definition at line 783 of file ov-base.cc.

References octave_base_value::convert_to_str(), and tmp.

◆ subfunction_names()

std::list< std::string > octave_user_function::subfunction_names ( void  ) const
virtual

Reimplemented from octave_function.

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

References octave_user_code::m_scope, and octave::symbol_scope::subfunction_names().

◆ subfunctions()

std::map< std::string, octave_value > octave_user_function::subfunctions ( void  ) const
virtual

Reimplemented from octave_user_code.

Definition at line 453 of file ov-usr-fcn.cc.

References octave_user_code::m_scope, and octave::symbol_scope::subfunctions().

Referenced by maybe_relocate_end().

◆ subsasgn()

octave_value octave_base_value::subsasgn ( const std::string type,
const std::list< octave_value_list > &  idx,
const octave_value rhs 
)
virtualinherited

◆ subsasgn_optimization_ok()

◆ subsref() [1/3]

◆ subsref() [2/3]

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