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

#include "ovl.h"

Collaboration diagram for octave_value_list:

Public Member Functions

 octave_value_list (const Array< octave_value > &a)
 
 octave_value_list (const Cell &c)
 
 octave_value_list (const octave_value &tc)
 
 octave_value_list (const octave_value_list &obj)=default
 
template<template< typename... > class OV_Container>
 octave_value_list (const OV_Container< octave_value > &args)
 
 octave_value_list (const std::list< octave_value > &)
 
 octave_value_list (const std::list< octave_value_list > &)
 
 octave_value_list (octave_idx_type n)
 
 octave_value_list (octave_idx_type n, const octave_value &val)
 
 octave_value_list (octave_value_list &&obj)=default
 
 octave_value_list (void)=default
 
 ~octave_value_list (void)=default
 
bool all_scalars (void) const
 
bool all_strings_p (void) const
 
bool any_cell (void) const
 
octave_value_listappend (const octave_value &val)
 
octave_value_listappend (const octave_value_list &lst)
 
Array< octave_valuearray_value (void) const
 
Cell cell_value (void) const
 
void clear (void)
 
bool empty (void) const
 
bool has_magic_colon (void) const
 
octave_idx_type length (void) const
 
string_vector make_argv (const std::string &="") const
 
void make_storable_values (void)
 
string_vector name_tags (void) const
 
octave_valueoperator() (octave_idx_type n)
 
const octave_valueoperator() (octave_idx_type n) const
 
octave_value_listoperator= (const octave_value_list &obj)=default
 
octave_value_listoperator= (octave_value_list &&obj)=default
 
octave_value_listprepend (const octave_value &val)
 
void resize (octave_idx_type n, const octave_value &rfv=octave_value())
 
octave_value_listreverse (void)
 
octave_value_list slice (octave_idx_type offset, octave_idx_type len, bool tags=false) const
 
octave_value_list splice (octave_idx_type offset, octave_idx_type len, const octave_value_list &lst=octave_value_list()) const
 
void stash_name_tags (const string_vector &nm)
 
octave_valuexelem (octave_idx_type i)
 

Private Member Functions

octave_valueelem (octave_idx_type n)
 
const octave_valueelem (octave_idx_type n) const
 

Private Attributes

std::vector< octave_valuem_data
 
string_vector m_names
 

Detailed Description

Definition at line 41 of file ovl.h.

Constructor & Destructor Documentation

◆ octave_value_list() [1/11]

octave_value_list::octave_value_list ( void  )
default

◆ octave_value_list() [2/11]

octave_value_list::octave_value_list ( octave_idx_type  n)
inlineexplicit

Definition at line 49 of file ovl.h.

◆ octave_value_list() [3/11]

octave_value_list::octave_value_list ( octave_idx_type  n,
const octave_value val 
)
inline

Definition at line 52 of file ovl.h.

◆ octave_value_list() [4/11]

octave_value_list::octave_value_list ( const octave_value tc)
inline

Definition at line 55 of file ovl.h.

◆ octave_value_list() [5/11]

template<template< typename... > class OV_Container>
octave_value_list::octave_value_list ( const OV_Container< octave_value > &  args)
inline

Definition at line 59 of file ovl.h.

◆ octave_value_list() [6/11]

octave_value_list::octave_value_list ( const Array< octave_value > &  a)
inline

Definition at line 62 of file ovl.h.

References Array< T, Alloc >::numel().

◆ octave_value_list() [7/11]

octave_value_list::octave_value_list ( const Cell c)
inline

Definition at line 69 of file ovl.h.

References Array< T, Alloc >::numel().

◆ octave_value_list() [8/11]

octave_value_list::octave_value_list ( const octave_value_list obj)
default

◆ octave_value_list() [9/11]

octave_value_list::octave_value_list ( octave_value_list &&  obj)
default

◆ octave_value_list() [10/11]

octave_value_list::octave_value_list ( const std::list< octave_value > &  lst)

Definition at line 36 of file ovl.cc.

References m_data.

◆ octave_value_list() [11/11]

octave_value_list::octave_value_list ( const std::list< octave_value_list > &  lst)

Definition at line 49 of file ovl.cc.

References length(), m_data, n, ovl(), and panic_unless().

◆ ~octave_value_list()

octave_value_list::~octave_value_list ( void  )
default

Member Function Documentation

◆ all_scalars()

bool octave_value_list::all_scalars ( void  ) const

Definition at line 188 of file ovl.cc.

References dim_vector::all_ones(), octave_value::dims(), elem(), length(), and n.

Referenced by octave_cell::subsasgn(), and octave_struct::subsasgn().

◆ all_strings_p()

bool octave_value_list::all_strings_p ( void  ) const

Definition at line 176 of file ovl.cc.

References elem(), length(), and n.

Referenced by make_argv().

◆ any_cell()

bool octave_value_list::any_cell ( void  ) const

Definition at line 203 of file ovl.cc.

References elem(), length(), and n.

◆ append() [1/2]

◆ append() [2/2]

octave_value_list & octave_value_list::append ( const octave_value_list lst)

Definition at line 110 of file ovl.cc.

References elem(), len, length(), and resize().

◆ array_value()

◆ cell_value()

Cell octave_value_list::cell_value ( void  ) const
inline

◆ clear()

void octave_value_list::clear ( void  )
inline

◆ elem() [1/2]

octave_value& octave_value_list::elem ( octave_idx_type  n)
inlineprivate

Definition at line 184 of file ovl.h.

References n.

Referenced by all_scalars(), all_strings_p(), any_cell(), append(), has_magic_colon(), make_argv(), prepend(), reverse(), and splice().

◆ elem() [2/2]

const octave_value& octave_value_list::elem ( octave_idx_type  n) const
inlineprivate

Definition at line 192 of file ovl.h.

References n.

◆ empty()

◆ has_magic_colon()

bool octave_value_list::has_magic_colon ( void  ) const

◆ length()

octave_idx_type octave_value_list::length ( void  ) const
inline

Definition at line 113 of file ovl.h.

Referenced by make_valid_name_options::make_valid_name_options(), octave_class::octave_class(), octave_value_list(), all_scalar_1x1(), all_scalars(), all_strings_p(), octave_user_function::all_va_args(), any_cell(), append(), octave_map::assign(), Cell::assign(), octave_base_matrix< MT >::assign(), octave_base_sparse< T >::assign(), binary_assoc_op_defun_body(), binary_op_defun_body(), tree_evaluator::bind_ans(), bitop(), tree_statement_list::breakpoints_and_conds(), simple_fcn_handle::call(), call_mex(), class_fevalStatic(), class_fromName(), class_get_inferiorclasses(), class_get_methods(), class_get_properties(), class_get_superclasses(), class_getConstant(), compare_property_values(), const_value(), tree_evaluator::convert_to_const_vector(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), tree_evaluator::define_parameter_list_from_arg_vector(), tree_statement_list::delete_breakpoint(), octave_map::delete_elements(), Cell::delete_elements(), octave_base_matrix< MT >::delete_elements(), octave_base_sparse< T >::delete_elements(), dims_to_numel(), do_accumarray_minmax_fcn(), do_bessel(), do_cat(), do_class_concat(), do_cumminmax_body(), do_dbstack(), do_dbupdown(), do_fft(), do_fft2(), do_fftn(), history_system::do_history(), octave_base_sparse< T >::do_index_op(), octave_perm_matrix::do_index_op(), ov_range< T >::do_index_op(), octave_diag_matrix::do_index_op(), octave_struct::do_index_op(), octave_char_matrix_str::do_index_op_internal(), do_minmax_body(), do_permute(), do_simple_cellfun(), do_trilu(), octave_class::dotref(), octave_struct::dotref(), octave_scalar_struct::dotref(), tree_evaluator::echo(), eigs_callback::eigs_complex_func(), eigs_callback::eigs_func(), tree_cell::evaluate(), tree_multi_assignment::evaluate(), tree_superclass_ref::evaluate(), tree_identifier::evaluate(), tree_index_expression::evaluate(), tree_evaluator::evaluate_end_expression(), tree_multi_assignment::evaluate_n(), tree_index_expression::evaluate_n(), cdef_method::cdef_method_rep::execute(), tree_evaluator::execute_builtin_function(), tree_evaluator::execute_user_function(), tree_evaluator::execute_user_script(), F__calc_dimensions__(), F__get__(), F__get_frame__(), F__get_position__(), F__get_system_fonts__(), F__go_delete__(), F__go_execute_callback__(), F__go_figure__(), F__go_figure_handles__(), F__go_handles__(), F__go_post_callback__(), F__image_pixel_size__(), F__is_handle_visible__(), F__ode15__(), F__recorder_audiorecorder__(), F__show_figure__(), F__update_normals__(), F__zoom__(), Faddlistener(), Faddpath(), Faddproperty(), Farrayfun(), Fcellfun(), Fdaspk_options(), Fdasrt_options(), Fdassl_options(), Fdellistener(), Fdrawnow(), Ferror(), interpreter::feval(), Fget(), fill_matrix(), find_bkpt_list(), Fishghandle(), Flsode_options(), Fpause(), Fquad_options(), Fquadcc(), Fregister_graphics_toolkit(), Freset(), Fset(), Fspparms(), Fwaitfor(), get_dispatch_type(), get_function_handle(), main_window::handle_edit_mfile_request(), handle_message(), has_magic_colon(), octave_map::index(), Cell::index(), octave_lvalue::index_is_colon(), octave_lvalue::index_is_empty(), tm_row_const::init(), load_save_system::load(), load_inline_fcn(), make_argv(), make_graphics_object(), make_idx_args(), make_java_index(), make_storable_values(), tree_evaluator::make_value_list(), maybe_extract_message_id(), maybe_missing_function_hook(), mexCallMATLAB(), mk_tmp_hist_file(), oct_binop_default(), oct_unop_default(), octregexp(), octregexprep(), package_fromName(), package_get_classes(), package_get_functions(), package_get_packages(), bp_table::parse_dbfunction_params(), textscan::parse_options(), parse_options(), prepend(), printf_internal(), puts_internal(), quad_float_user_function(), quad_user_function(), octave_class::reconstruct_exemplar(), tree_statement_list::remove_all_breakpoints(), bp_table::remove_breakpoint_1(), reverse(), cdef_class::cdef_class_rep::run_constructor(), sanitize(), scanf_internal(), annotation_dialog::set_gui_props(), set_internal_variable(), cdef_property::cdef_property_rep::set_value(), single_type_concat(), single_type_concat_map(), octave_class::size(), octave_classdef::size(), splice(), streameuler2d_internal(), streameuler3d_internal(), octave_class::string_vector_value(), cdef_object_array::subsasgn(), octave_cell::subsasgn(), octave_struct::subsasgn(), octave_scalar_struct::subsasgn(), octave_class::subsasgn_common(), octave_cell::subsref(), octave_fcn_handle::subsref(), octave_java::subsref(), octave_struct::subsref(), octave_classdef::subsref(), octave_class::subsref(), cdef_object_array::subsref(), textscan_internal(), unary_op_defun_body(), stack_frame::value(), waitfor_del_listener(), waitfor_listener(), octave_class::xnumel(), octave_classdef::xnumel(), xset(), and xzip().

◆ make_argv()

string_vector octave_value_list::make_argv ( const std::string &  fcn_name = "") const

◆ make_storable_values()

void octave_value_list::make_storable_values ( void  )

◆ name_tags()

string_vector octave_value_list::name_tags ( void  ) const
inline

Definition at line 167 of file ovl.h.

Referenced by tree_evaluator::execute_user_function().

◆ operator()() [1/2]

octave_value& octave_value_list::operator() ( octave_idx_type  n)
inline

Definition at line 109 of file ovl.h.

References elem, and n.

◆ operator()() [2/2]

const octave_value& octave_value_list::operator() ( octave_idx_type  n) const
inline

Definition at line 111 of file ovl.h.

References elem, and n.

◆ operator=() [1/2]

octave_value_list& octave_value_list::operator= ( const octave_value_list obj)
default

◆ operator=() [2/2]

octave_value_list& octave_value_list::operator= ( octave_value_list &&  obj)
default

◆ prepend()

◆ resize()

◆ reverse()

octave_value_list & octave_value_list::reverse ( void  )

Definition at line 124 of file ovl.cc.

References elem(), length(), and n.

Referenced by Faddpath().

◆ slice()

octave_value_list octave_value_list::slice ( octave_idx_type  offset,
octave_idx_type  len,
bool  tags = false 
) const
inline

◆ splice()

octave_value_list octave_value_list::splice ( octave_idx_type  offset,
octave_idx_type  len,
const octave_value_list lst = octave_value_list () 
) const

◆ stash_name_tags()

◆ xelem()

octave_value& octave_value_list::xelem ( octave_idx_type  i)
inline

Definition at line 171 of file ovl.h.

Referenced by tree_evaluator::execute_builtin_function(), Farrayfun(), and Fcellfun().

Member Data Documentation

◆ m_data

std::vector<octave_value> octave_value_list::m_data
private

Definition at line 177 of file ovl.h.

Referenced by octave_value_list(), and make_storable_values().

◆ m_names

string_vector octave_value_list::m_names
private

Definition at line 181 of file ovl.h.

Referenced by slice().


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