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

#include "ovl.h"

Public Member Functions

 octave_value_list ()=default
 
 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 ()=default
 
bool all_scalars () const
 
bool all_strings_p () const
 
bool any_cell () const
 
octave_value_listappend (const octave_value &val)
 
octave_value_listappend (const octave_value_list &lst)
 
Array< octave_valuearray_value () const
 
Cell cell_value () const
 
void clear ()
 
bool empty () const
 
octave_value first_or_nil_ov () const
 
bool has_magic_colon () const
 
octave_idx_type length () const
 
string_vector make_argv (const std::string &="") const
 
void make_storable_values ()
 
string_vector name_tags () 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 ()
 
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)
 

Detailed Description

Definition at line 41 of file ovl.h.

Constructor & Destructor Documentation

◆ octave_value_list() [1/11]

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

◆ 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(), n, ovl(), and panic_unless.

◆ ~octave_value_list()

octave_value_list::~octave_value_list ( )
default

Member Function Documentation

◆ all_scalars()

bool octave_value_list::all_scalars ( ) const

Definition at line 188 of file ovl.cc.

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

Referenced by octave_cell::subsasgn().

◆ all_strings_p()

bool octave_value_list::all_strings_p ( ) const

Definition at line 176 of file ovl.cc.

References length(), and n.

Referenced by make_argv().

◆ any_cell()

bool octave_value_list::any_cell ( ) const

Definition at line 203 of file ovl.cc.

References length(), and n.

◆ append() [1/2]

octave_value_list & octave_value_list::append ( const octave_value val)

Definition at line 98 of file ovl.cc.

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

Referenced by named_hook_function::eval(), fcn_handle_hook_function::eval(), and Fjsondecode().

◆ append() [2/2]

octave_value_list & octave_value_list::append ( const octave_value_list lst)

Definition at line 110 of file ovl.cc.

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

◆ array_value()

◆ cell_value()

Cell octave_value_list::cell_value ( ) const
inline

Definition at line 105 of file ovl.h.

Referenced by tree_cell::evaluate(), Fregexprep(), and Frmfield().

◆ clear()

void octave_value_list::clear ( )
inline

◆ empty()

◆ first_or_nil_ov()

octave_value octave_value_list::first_or_nil_ov ( ) const
inline

Definition at line 175 of file ovl.h.

References octave_value().

◆ has_magic_colon()

bool octave_value_list::has_magic_colon ( ) const

◆ length()

octave_idx_type octave_value_list::length ( ) 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(), base_property::add_listener(), 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(), tree_evaluator::bind_ans(), bitop(), tree_statement_list::breakpoints_and_conds(), call_mex(), tree_evaluator::convert_to_const_vector(), property::create(), tree_evaluator::define_parameter_list_from_arg_vector(), DEFMETHOD(), DEFMETHODX(), 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_bessel(), do_class_concat(), history_system::do_history(), octave_base_matrix< MT >::do_index_op(), 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(), octave::do_simple_cellfun(), octave_class::dotref(), octave_struct::dotref(), octave_scalar_struct::dotref(), tree_evaluator::echo(), 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(), tree_evaluator::execute_builtin_function(), tree_evaluator::execute_user_script(), F__accumarray_sum__(), F__accumdim_sum__(), F__base64_decode_bytes__(), F__calc_dimensions__(), F__db_next_breakpoint_quiet__(), F__eigs__(), 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__ode15__(), F__parent_classes__(), F__recorder_audiorecorder__(), F__show_figure__(), F__sort_rows_idx__(), octave::F__textscan__(), octave::F__varval__(), F__zoom__(), Faddlistener(), octave::Faddpath(), Faddproperty(), Farrayfun(), Fbase64_decode(), Fbase64_encode(), Fcat(), Fcellfun(), Fcellindexmat(), Fcellslices(), Fclass(), octave::Fclear(), Fcolon(), Fcolumns(), Fcomplex(), Fcputime(), Fdbcont(), Fdbquit(), Fdbstep(), Fdellistener(), Fdiff(), Fdrawnow(), octave::Fedit_history(), Feps(), Ferror(), interpreter::feval(), Feye(), octave::Ffeof(), octave::Fferror(), octave::Ffread(), Ffull(), octave::Ffunc2str(), octave::Ffunctions(), octave::Ffwrite(), octave::Fignore_function_time_stamp(), octave::find_bkpt_list(), Finferiorto(), octave::Fis_function_handle(), Fisa(), Fiscolumn(), Fiscomplex(), Fisdebugmode(), Fisempty(), Fisfloat(), Fisinteger(), Fislogical(), Fismatrix(), Fisnumeric(), Fisobject(), Fisreal(), Fisrow(), Fisscalar(), Fissorted(), Fissquare(), Fisvector(), Flength(), Flinspace(), Fmat2cell(), Fmerge(), octave::Fmislocked(), octave::Fmkstemp(), octave::Fmlock(), octave::Fmunlock(), Fndims(), Fnnz(), Fnorm(), Fnth_element(), Fnum2cell(), Fnumel(), Fnzmax(), octave::FP_tmpdir(), octave::Fpause(), octave::Fpclose(), octave::Fpopen(), Frandg(), Frandp(), Frandperm(), Fregexp(), Fregexpi(), Fregexprep(), Fregister_graphics_toolkit(), Frepelems(), Freshape(), Fresize(), Frethrow(), Frows(), octave::Frun_history(), Fsize(), Fsize_equal(), Fsort(), Fspparms(), octave::Fsprintf(), Fsqueeze(), octave::Fsscanf(), octave::Fstr2func(), Fsum(), Fsuperiorto(), Fsvd(), octave::Ftempdir(), octave::Ftempname(), Ftic(), octave::Ftmpfile(), Ftoc(), octave::Fumask(), Fvec(), Fwaitfor(), get_function_handle(), has_magic_colon(), octave_map::index(), Cell::index(), octave_lvalue::index_is_colon(), octave_lvalue::index_is_empty(), load_save_system::load(), make_argv(), make_storable_values(), tree_evaluator::make_value_list(), bp_table::parse_dbfunction_params(), prepend(), octave_class::reconstruct_exemplar(), tree_statement_list::remove_all_breakpoints(), bp_table::remove_breakpoints_from_function(), reverse(), base_property::run_listeners(), graphics_object::set(), octave::set_internal_variable(), octave_class::size(), splice(), octave_class::string_vector_value(), cdef_object_array::subsasgn(), octave_cell::subsasgn(), octave_struct::subsasgn(), octave_scalar_struct::subsasgn(), octave_cell::subsref(), octave_class::subsref(), octave_classdef::subsref(), octave_fcn_handle::subsref(), octave_java::subsref(), octave_struct::subsref(), cdef_object_array::subsref(), stack_frame::value(), octave_class::xnumel(), and xset().

◆ make_argv()

◆ make_storable_values()

void octave_value_list::make_storable_values ( )

◆ name_tags()

string_vector octave_value_list::name_tags ( ) const
inline

Definition at line 167 of file ovl.h.

◆ operator()() [1/2]

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

Definition at line 109 of file ovl.h.

◆ operator()() [2/2]

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

Definition at line 111 of file ovl.h.

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

octave_value_list & octave_value_list::prepend ( const octave_value val)

Definition at line 80 of file ovl.cc.

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

Referenced by octave::Fevalc().

◆ resize()

◆ reverse()

octave_value_list & octave_value_list::reverse ( )

Definition at line 124 of file ovl.cc.

References length(), and n.

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

Definition at line 139 of file ovl.cc.

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

Referenced by F__go_figure__(), and Faddproperty().

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


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