GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
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 47 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 50 of file ovl.h.

◆ octave_value_list() [4/11]

octave_value_list::octave_value_list ( const octave_value tc)
inline

Definition at line 53 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 57 of file ovl.h.

◆ octave_value_list() [6/11]

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

Definition at line 60 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 67 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(), 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(), and length().

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

◆ all_strings_p()

bool octave_value_list::all_strings_p ( ) const

Definition at line 176 of file ovl.cc.

References length().

Referenced by Fwarning(), and make_argv().

◆ any_cell()

bool octave_value_list::any_cell ( ) const

Definition at line 203 of file ovl.cc.

References length().

◆ append() [1/2]

octave_value_list & octave_value_list::append ( const octave_value val)

◆ 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 103 of file ovl.h.

Referenced by tree_cell::evaluate(), Fcellfun(), 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 173 of file ovl.h.

◆ has_magic_colon()

bool octave_value_list::has_magic_colon ( ) const

◆ length()

octave_idx_type octave_value_list::length ( ) const
inline

Definition at line 111 of file ovl.h.

Referenced by make_valid_name_options::make_valid_name_options(), octave_class::octave_class(), octave_value_list(), all_scalars(), all_strings_p(), octave_user_function::all_va_args(), any_cell(), append(), append(), octave_map::assign(), Cell::assign(), octave_base_matrix< MT >::assign(), octave_base_sparse< T >::assign(), octave_base_matrix< MT >::assign(), tree_evaluator::bind_ans(), bitop(), tree_statement_list::breakpoints_and_conds(), call_mex(), tree_evaluator::convert_to_const_vector(), tree_evaluator::define_parameter_list_from_arg_vector(), DEFMETHOD(), DEFMETHOD(), DEFMETHOD(), 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(), octave_cs_list::dims(), dims_to_numel(), do_bessel(), do_class_concat(), history_system::do_history(), octave_base_diag< DMT, MT >::do_index_op(), 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(), do_simple_cellfun(), 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_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__(), 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__java2mat__(), F__java_get__(), F__java_set__(), F__mkdir__(), F__ode15__(), F__parent_classes__(), F__recorder_audiorecorder__(), F__restful_service__(), F__show_figure__(), F__sort_rows_idx__(), F__textscan__(), F__u8_validate__(), F__update_normals__(), F__varval__(), F__zoom__(), Faddlistener(), Faddpath(), Faddproperty(), Fairy(), Farrayfun(), Fbase64_decode(), Fbase64_encode(), Fcat(), Fcellfun(), Fcellindexmat(), Fcellslices(), Fclass(), Fclear(), Fcolon(), Fcolumns(), Fcomplex(), Fcputime(), Fdbcont(), Fdbquit(), Fdbstep(), Fdellistener(), Fdiff(), Fdrawnow(), Fedit_history(), Feps(), Ferror(), interpreter::feval(), Feval(), Feye(), Ffeof(), Fferror(), Ffind(), Ffread(), Ffull(), Ffunc2str(), Ffunctions(), Ffwrite(), Fget(), Fignore_function_time_stamp(), find_bkpt_list(), Finferiorto(), Fis_function_handle(), Fisa(), Fiscolumn(), Fiscomplex(), Fisdebugmode(), Fisempty(), Fisfloat(), Fishghandle(), Fisinteger(), Fisjava(), Fislogical(), Fismatrix(), Fisnumeric(), Fisobject(), Fisreal(), Fisrow(), Fisscalar(), Fissorted(), Fissquare(), Fisvector(), FjavaMethod(), FjavaObject(), Flasterr(), Flasterror(), Flastwarn(), Flength(), Flinspace(), Flist_in_columns(), Fmat2cell(), Fmerge(), Fmislocked(), Fmkstemp(), Fmlock(), Fmunlock(), Fnargin(), Fndims(), Fnnz(), Fnorm(), Fnth_element(), Fnum2cell(), Fnumel(), Fnzmax(), FP_tmpdir(), Fpause(), Fpclose(), Fpopen(), Fqrdelete(), Fqrinsert(), Fquadcc(), Frand(), Frande(), Frandg(), Frandn(), Frandp(), Frandperm(), Fregexp(), Fregexpi(), Fregexprep(), Fregister_graphics_toolkit(), Frepelems(), Freset(), Freshape(), Fresize(), Frethrow(), Frows(), Frun_history(), Fset(), Fsize(), Fsize_equal(), Fsort(), Fspparms(), Fsprintf(), Fsqueeze(), Fsscanf(), Fstr2func(), Fsum(), Fsuperiorto(), Fsvd(), Ftempdir(), Ftempname(), Ftic(), Ftmpfile(), Ftoc(), Fumask(), Furlread(), Fvec(), Fwaitfor(), Fwaitpid(), Fwarning(), get_dispatch_type(), 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_idx_args(), make_storable_values(), tree_evaluator::make_value_list(), maybe_missing_function_hook(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), OCTAVE_BEGIN_NAMESPACE(), bp_table::parse_dbfunction_params(), prepend(), octave_class::reconstruct_exemplar(), tree_statement_list::remove_all_breakpoints(), bp_table::remove_breakpoints_from_function(), reverse(), set_internal_variable(), set_internal_variable(), set_internal_variable(), set_internal_variable(), set_internal_variable(), set_internal_variable(), set_internal_variable(), octave_class::size(), octave_classdef::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(), octave_classdef::subsref(), octave_class::subsref(), octave_classdef::subsref(), cdef_object_array::subsref(), stack_frame::value(), octave_class::xnumel(), octave_classdef::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 165 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 107 of file ovl.h.

◆ operator()() [2/2]

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

Definition at line 109 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(), and resize().

Referenced by Fevalc(), Fprintf(), Fputs(), and Fscanf().

◆ resize()

void octave_value_list::resize ( octave_idx_type  n,
const octave_value rfv = octave_value () 
)
inline

◆ reverse()

octave_value_list & octave_value_list::reverse ( )

Definition at line 124 of file ovl.cc.

References length().

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

Definition at line 139 of file ovl.cc.

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

Referenced by F__go_figure__(), F__textscan__(), and Faddproperty().

◆ stash_name_tags()

◆ xelem()

octave_value & octave_value_list::xelem ( octave_idx_type  i)
inline

Definition at line 169 of file ovl.h.

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


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