GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ov-class.cc File Reference
#include <iostream>
#include "Array-util.h"
#include "byte-swap.h"
#include "oct-locbuf.h"
#include "lo-mappers.h"
#include "Cell.h"
#include "call-stack.h"
#include "defun.h"
#include "error.h"
#include "file-ops.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "ls-hdf5.h"
#include "ls-oct-text.h"
#include "ls-oct-binary.h"
#include "ls-utils.h"
#include "mxarray.h"
#include "oct-lvalue.h"
#include "oct-hdf5.h"
#include "ov-class.h"
#include "ov-fcn.h"
#include "ov-typeinfo.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "pr-output.h"
#include "unwind-prot.h"
#include "variables.h"
Include dependency graph for ov-class.cc:

Go to the source code of this file.

Classes

class  eealso
 

Functions

static OCTAVE_NORETURN void err_invalid_index1 (void)
 
static OCTAVE_NORETURN void err_invalid_index_for_assignment (void)
 
static OCTAVE_NORETURN void err_invalid_index_type (const std::string &nm, char t)
 
OCTAVE_EXPORT octave_value_list Fclass (octave::interpreter &interp, const octave_value_list &args, int) or create a class with fields from structure ar
 
 if (nargin==0) print_usage()
 
and name (string) ar
 

Variables

octave::call_stackcs = interp.get_call_stack ()
 
 else
 
octave_functionfcn = cs.caller ()
 
Additional arguments name a list of parent classes from which the new class is derived eealso nargin = args.length ()
 
octave_value retval
 

Function Documentation

◆ err_invalid_index1()

static OCTAVE_NORETURN void err_invalid_index1 ( void  )
static

Definition at line 247 of file ov-class.cc.

References error().

Referenced by octave_class::subsref().

◆ err_invalid_index_for_assignment()

static OCTAVE_NORETURN void err_invalid_index_for_assignment ( void  )
static

Definition at line 254 of file ov-class.cc.

References error().

Referenced by octave_class::numeric_conv(), and octave_class::subsasgn_common().

◆ err_invalid_index_type()

static OCTAVE_NORETURN void err_invalid_index_type ( const std::string nm,
char  t 
)
static

Definition at line 261 of file ov-class.cc.

References error(), nm, and t.

Referenced by octave_class::subsasgn_common(), and octave_class::subsref().

◆ Fclass()

OCTAVE_EXPORT octave_value_list Fclass ( octave::interpreter interp,
const octave_value_list args,
int   
)

Definition at line 1735 of file ov-class.cc.

◆ if()

if ( nargin  = =0)

Definition at line 598 of file file-io.cc.

◆ name()

Variable Documentation

◆ cs

◆ else

else
Initial value:
{
std::string id = args(1).xstring_value ("class: ID (class name) must be a string")
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888

Definition at line 1748 of file ov-class.cc.

◆ fcn

octave_function* fcn = cs.caller ()

Definition at line 1754 of file ov-class.cc.

Referenced by octave::bp_table::add_breakpoint_1(), octave::action_container::add_fcn(), octave::symbol_table::alias_built_in_function(), any_all_test(), octave_mex_function::atexit(), binmap(), octave::symbol_table::built_in_function_names(), octave::symbol_table::builtin_find(), call_mex(), called_from_builtin(), octave::load_path::package_info::check_file_type(), check_version(), octave::symbol_table::cmdline_function_names(), octave::jit_convert_llvm::convert_function(), graphics_event::create_function_event(), octave::tree_jit::do_execute(), gh_manager::do_execute_callback(), do_fft(), do_fft2(), do_fftn(), gh_manager::do_post_function(), do_rand(), do_rc_map(), octave::dump_function_map(), octave::profiler::tree_node::enter(), octave::profiler::enter_function(), err_disabled_feature(), err_file_open(), err_not_implemented(), err_square_matrix_required(), octave::tree_jit::execute(), octave::file_editor_tab::exit_debug_and_clear(), octave::profiler::exit_function(), octave::symbol_table::fcn_table_find(), octave_fcn_handle::fcn_val(), Ffunctions(), octave::final_index_error(), octave::symbol_scope_rep::find(), octave::load_path::find_fcn(), octave::load_path::package_info::find_fcn(), octave::load_path::find_fcn_file(), octave::symbol_table::find_method(), octave::load_path::find_mex_file(), octave::load_path::find_oct_file(), octave::fcn_info::fcn_info_rep::find_package(), octave::load_path::find_private_fcn(), octave::load_path::package_info::find_private_fcn(), octave::symbol_table::find_submethod(), mex::function_name(), octave_fcn_handle::function_value(), G__init_fltk__(), get_class_context(), octave_class::get_current_method_class(), octave::get_user_code(), gripe_data_file_in_path(), gripe_disabled_feature(), gripe_not_implemented(), gripe_not_supported(), MDiagArray2< Complex >::hermitian(), MArray< Complex >::hermitian(), DiagArray2< Complex >::hermitian(), Array< octave_value >::hermitian(), octave_class::in_class_method(), octave::fcn_info::fcn_info_rep::install_built_in_dispatch(), octave::symbol_table::install_built_in_function(), install_builtin_function(), octave::symbol_table::install_cmdline_function(), install_dld_function(), cdef_package::install_function(), octave::symbol_table::install_local_function(), install_mex_function(), octave::symbol_table::install_user_function(), is_dummy_method(), octave::jit_convert::jit_convert(), octave::jit_function_info::jit_function_info(), octave::fcn_info::fcn_info_rep::load_class_constructor(), octave::fcn_info::fcn_info_rep::load_class_method(), make_fcn_handle(), make_function_of_class(), cdef_manager::make_method(), MSparse< Complex >::map(), Cell::map(), Sparse< bool >::map(), Array< octave_value >::map(), octave::symbol_scope_rep::mark_subfunctions_in_scope_as_private(), octave::tree_evaluator::maybe_push_echo_state_cleanup(), octave::tree_evaluator::maybe_set_echo_state(), octave_set_xerbla_handler(), octave::out_of_date_check(), octave::call_stack::push(), Sparse< bool >::range_error(), octave_class::reconstruct_exemplar(), octave::jit_typeinfo::register_generic(), octave::bp_table::remove_breakpoint_1(), octave::symbol_scope_rep::set_function(), octave::symbol_scope::set_function(), cdef_method::cdef_method_rep::set_function(), cdef_method::set_function(), Sparse< bool >::test(), Array< octave_value >::test(), Sparse< bool >::test_all(), Array< octave_value >::test_all(), Sparse< bool >::test_any(), Array< octave_value >::test_any(), octave_fcn_handle::user_function_value(), verror(), octave::tree_evaluator::visit_colon_expression(), octave::tree_evaluator::visit_funcall(), octave::tree_checker::visit_function_def(), octave::tree_breakpoint::visit_function_def(), octave::tree_print_code::visit_function_def(), octave::tree_evaluator::visit_function_def(), octave::tree_evaluator::visit_identifier(), octave::tree_evaluator::visit_index_expression(), octave::tree_checker::visit_octave_user_function(), octave::tree_breakpoint::visit_octave_user_function(), octave::tree_print_code::visit_octave_user_function(), octave::tree_print_code::visit_octave_user_function_header(), octave::tree_print_code::visit_octave_user_function_trailer(), octave::tree_checker::visit_octave_user_script(), octave::tree_breakpoint::visit_octave_user_script(), octave::tree_print_code::visit_octave_user_script(), warn_data_file_in_path(), warn_disabled_feature(), octave::fcn_info::fcn_info_rep::x_builtin_find(), octave::fcn_info::fcn_info_rep::xfind(), and singleton_cleanup_list::~singleton_cleanup_list().

◆ nargin

Additional arguments name a list of parent classes from which the new class is derived eealso nargin = args.length ()

◆ retval