GNU Octave  6.2.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 >::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 >::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, and ovl().

◆ ~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()

◆ clear()

void octave_value_list::clear ( void  )
inline

Definition at line 173 of file ovl.h.

Referenced by octave::tree_index_expression::evaluate_n(), and get_output_list().

◆ elem() [1/2]

octave_value& octave_value_list::elem ( octave_idx_type  n)
inlineprivate

◆ 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

Definition at line 215 of file ovl.cc.

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

Referenced by octave_builtin::execute(), octave_mex_function::execute(), and octave::octave_lvalue::numel().

◆ length()

octave_idx_type octave_value_list::length ( void  ) const
inline

Definition at line 113 of file ovl.h.

Referenced by octave::jit_function_info::jit_function_info(), octave_class::octave_class(), octave_value_list(), base_property::add_listener(), 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(), octave::tree_evaluator::bind_ans(), bitop(), octave::tree_statement_list::breakpoints_and_conds(), octave::simple_fcn_handle::call(), call_mex(), octave::class_fevalStatic(), octave::class_fromName(), octave::class_get_inferiorclasses(), octave::class_get_methods(), octave::class_get_properties(), octave::class_get_superclasses(), octave::class_getConstant(), compare_property_values(), const_value(), octave::tree_evaluator::convert_to_const_vector(), property::create(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), octave::tree_evaluator::define_parameter_list_from_arg_vector(), octave::tree_statement_list::delete_breakpoint(), octave_map::delete_elements(), Cell::delete_elements(), octave_base_matrix< MT >::delete_elements(), octave_base_sparse< T >::delete_elements(), base_property::delete_listener(), octave::dims_to_numel(), do_accumarray_minmax_fun(), do_bessel(), do_cat(), do_class_concat(), do_cumminmax_body(), do_dbstack(), do_dbupdown(), do_fft(), do_fft2(), do_fftn(), octave::history_system::do_history(), octave_base_matrix< MT >::do_index_op(), octave_base_sparse< T >::do_index_op(), octave_perm_matrix::do_index_op(), octave_range::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(), octave::do_simple_cellfun(), do_trilu(), octave_class::dotref(), octave_struct::dotref(), octave_scalar_struct::dotref(), octave::tree_evaluator::echo(), eigs_complex_func(), eigs_func(), octave::tree_cell::evaluate(), octave::tree_evaluator::evaluate_end_expression(), octave::tree_multi_assignment::evaluate_n(), octave::tree_index_expression::evaluate_n(), octave::cdef_method::cdef_method_rep::execute(), octave::jit_function_info::execute(), octave::tree_evaluator::execute_user_function(), octave::tree_evaluator::execute_user_script(), F__go_figure__(), F__ode15__(), Faddpath(), Farrayfun(), Fcellfun(), Ferror(), octave::interpreter::feval(), fill_matrix(), octave::find_bkpt_list(), Fis_dq_string(), Fis_sq_string(), Fquadcc(), Fsizeof(), Fsubsasgn(), Fsubsref(), octave::get_dispatch_type(), octave::get_function_handle(), octave::main_window::handle_edit_mfile_request(), handle_message(), has_magic_colon(), octave_map::index(), Cell::index(), octave::octave_lvalue::index_is_colon(), octave::octave_lvalue::index_is_empty(), octave::tm_row_const::init(), octave::load_save_system::load(), load_inline_fcn(), make_argv(), make_graphics_object(), make_idx_args(), make_java_index(), make_storable_values(), octave::tree_evaluator::make_value_list(), octave::jit_function_info::match(), maybe_extract_message_id(), maybe_missing_function_hook(), octave::mk_tmp_hist_file(), octave::main_window::modify_path(), oct_binop_default(), oct_unop_default(), octave::octave_jit_call(), octregexp(), octregexprep(), octave::package_fromName(), octave::package_get_classes(), octave::package_get_functions(), octave::package_get_packages(), octave::bp_table::parse_dbfunction_params(), octave::textscan::parse_options(), parse_options(), prepend(), printf_internal(), puts_internal(), quad_float_user_function(), quad_user_function(), octave_class::reconstruct_exemplar(), octave::tree_statement_list::remove_all_breakpoints(), octave::bp_table::remove_breakpoint_1(), reverse(), octave::cdef_class::cdef_class_rep::run_constructor(), base_property::run_listeners(), sanitize(), scanf_internal(), graphics_object::set(), annotation_dialog::set_gui_props(), set_internal_variable(), octave::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(), octave::cdef_object_array::subsasgn(), octave_cell::subsasgn(), octave_struct::subsasgn(), octave_scalar_struct::subsasgn(), octave_class::subsasgn_common(), octave_cell::subsref(), octave_class::subsref(), octave_fcn_handle::subsref(), octave_struct::subsref(), octave::cdef_object_array::subsref(), textscan_internal(), unary_op_defun_body(), octave::stack_frame::value(), octave_class::xnumel(), octave_classdef::xnumel(), xset(), and octave::xzip().

◆ make_argv()

◆ make_storable_values()

void octave_value_list::make_storable_values ( void  )

Definition at line 277 of file ovl.cc.

References octave_value::is_copy_of(), len, length(), m_data, and octave_value::storable_value().

◆ name_tags()

string_vector octave_value_list::name_tags ( void  ) const
inline

Definition at line 167 of file ovl.h.

Referenced by octave::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()

◆ 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 Farrayfun(), Fcellfun(), and octave::octave_jit_call().

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.


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