GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
octave_value_list Class Reference

#include "oct-obj.h"

Collaboration diagram for octave_value_list:
Collaboration graph
[legend]

Public Member Functions

 octave_value_list (void)
 octave_value_list (octave_idx_type n)
 octave_value_list (octave_idx_type n, const octave_value &val)
 octave_value_list (const octave_value &tc)
 octave_value_list (const Array< octave_value > &d)
 octave_value_list (const Cell &tc)
 octave_value_list (const octave_value_list &obj)
 octave_value_list (const std::list< octave_value_list > &)
 ~octave_value_list (void)
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 &=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)
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

Array< octave_valuedata
string_vector names

Detailed Description

Definition at line 37 of file oct-obj.h.

Constructor & Destructor Documentation

octave_value_list::octave_value_list ( void  )
inline

Definition at line 43 of file oct-obj.h.

Referenced by Farrayfun(), Fcellfun(), Fdbcont(), Fdbquit(), and Fdbstep().

octave_value_list::octave_value_list ( octave_idx_type  n)
inlineexplicit

Definition at line 46 of file oct-obj.h.

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

Definition at line 49 of file oct-obj.h.

octave_value_list::octave_value_list ( const octave_value tc)
inline

Definition at line 52 of file oct-obj.h.

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

Definition at line 55 of file oct-obj.h.

octave_value_list::octave_value_list ( const Cell tc)
inline

Definition at line 58 of file oct-obj.h.

octave_value_list::octave_value_list ( const octave_value_list obj)
inline

Definition at line 61 of file oct-obj.h.

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

Definition at line 36 of file oct-obj.cc.

References Array< T >::assign(), data, and Array< T >::resize().

octave_value_list::~octave_value_list ( void  )
inline

Definition at line 67 of file oct-obj.h.

Member Function Documentation

bool octave_value_list::all_scalars ( void  ) const
bool octave_value_list::all_strings_p ( void  ) const

Definition at line 169 of file oct-obj.cc.

References elem(), and length().

Referenced by make_argv().

bool octave_value_list::any_cell ( void  ) const

Definition at line 196 of file oct-obj.cc.

References elem(), and length().

octave_value_list & octave_value_list::append ( const octave_value val)
octave_value_list & octave_value_list::append ( const octave_value_list lst)

Definition at line 97 of file oct-obj.cc.

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

Array<octave_value> octave_value_list::array_value ( void  ) const
inline
Cell octave_value_list::cell_value ( void  ) const
inline
void octave_value_list::clear ( void  )
inline

Definition at line 143 of file oct-obj.h.

Referenced by octave_builtin::do_multi_index_op(), and get_output_list().

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

Definition at line 164 of file oct-obj.h.

bool octave_value_list::empty ( void  ) const
inline
bool octave_value_list::has_magic_colon ( void  ) const
octave_idx_type octave_value_list::length ( void  ) const
inline

Definition at line 90 of file oct-obj.h.

Referenced by base_property::add_listener(), all_scalar_1x1(), all_scalars(), octave_class::all_strings(), all_strings_p(), octave_user_function::all_va_args(), any_cell(), append(), Cell::assign(), octave_base_matrix< MT >::assign(), octave_base_sparse< T >::assign(), octave_map::assign(), attempt_type_conversion(), binary_assoc_op_defun_body(), binary_op_defun_body(), bind_ans(), bitop(), call_mex(), compare_property_values(), const_value(), property::create(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), tree_parameter_list::define_from_arg_vector(), DEFUN(), DEFUN_DLD(), tree_statement_list::delete_breakpoint(), Cell::delete_elements(), octave_base_matrix< MT >::delete_elements(), octave_base_sparse< T >::delete_elements(), octave_map::delete_elements(), base_property::delete_listener(), 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(), do_find_bkpt_list(), bp_table::do_get_breakpoint_list(), do_history(), octave_diag_matrix::do_index_op(), octave_perm_matrix::do_index_op(), octave_base_diag< DMT, MT >::do_index_op(), octave_base_matrix< MT >::do_index_op(), octave_base_sparse< T >::do_index_op(), octave_range::do_index_op(), octave_char_matrix_str::do_index_op_internal(), do_isglobal(), do_keyboard(), do_minmax_body(), octave_builtin::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_fcn_binder::do_multi_index_op(), octave_user_function::do_multi_index_op(), do_permute(), bp_table::do_remove_breakpoint_1(), do_simple_cellfun(), do_trilu(), octave_struct::dotref(), octave_class::dotref(), octave_scalar_struct::dotref(), eigs_complex_func(), eigs_func(), jit_function_info::execute(), F__accumarray_sum__(), F__accumdim_sum__(), F__go_figure__(), F__profiler_data__(), F__profiler_enable__(), F__profiler_reset__(), F__sort_rows_idx__(), Fairy(), Farrayfun(), Fatexit(), Fbalance(), Fbase64_decode(), Fbase64_encode(), Fbesselh(), Fcd(), Fcellfun(), Fcolloc(), Fcputime(), Fdaspk_options(), Fdasrt_options(), Fdassl_options(), Fdet(), Fdiary(), Fdiff(), Fdisp(), Fdlmread(), Fdup2(), Fecho(), Feig(), Fellipj(), Fendgrent(), Fendpwent(), Feps(), Fexec(), Feye(), Ffcntl(), Ffdisp(), Fferror(), Ffgetl(), Ffgets(), Ffilter(), Ffind(), Ffopen(), Ffork(), Fformat(), Ffread(), Ffreport(), Ffscanf(), Ffull(), Fgetgrent(), Fgetgrgid(), Fgetgrnam(), Fgetpgrp(), Fgetpwent(), Fgetpwnam(), Fgetpwuid(), Fgivens(), Fhess(), fill_matrix(), Finput(), Finv(), Fissorted(), Fkeyboard(), Flastwarn(), Flinspace(), Fload(), Flsode_options(), Flu(), Fmerge(), Fmgorth(), Fmkdir(), Fmkfifo(), Fmkstemp(), Fmore(), Fnorm(), Fnth_element(), Fpipe(), Fputenv(), Fquad_options(), Fquadcc(), Fqz(), Freadline_read_init_file(), Fregexp(), Fregexpi(), Fregexprep(), Fremove_input_event_hook(), Frepelems(), Freshape(), Fresize(), Frmdir(), Fsave(), Fschur(), Fsetgrent(), Fsetpwent(), Fsize(), Fsort(), Fspparms(), Fsprintf(), Fsqrtm(), Fsqueeze(), Fsscanf(), Fsvd(), Ftic(), Ftmpfile(), Ftoc(), Funlink(), Furlread(), Furlwrite(), Fvec(), Fwaitpid(), get_dispatch_type(), get_user_input(), handle_message(), has_magic_colon(), Cell::index(), octave_map::index(), Octave_map::index(), octave_class::index_vector(), tm_row_const::tm_row_const_rep::init(), jit_function_info::jit_function_info(), lsode_user_function(), lsode_user_jacobian(), make_argv(), make_graphics_object(), make_idx_args(), make_storable_values(), make_subs_cell(), make_value_list(), jit_function_info::match(), maybe_extract_message_id(), mexCallMATLAB(), mk_tmp_hist_file(), octave_class::numel(), octave_class::octave_class(), octave_jit_call(), octregexp(), octregexprep(), parse_dbfunction_params(), parse_options(), prepend(), quad_float_user_function(), quad_user_function(), octave_class::reconstruct_exemplar(), tree_statement_list::remove_all_breakpoints(), reverse(), base_property::run_listeners(), tree_index_expression::rvalue(), tree_multi_assignment::rvalue(), tree_cell::rvalue1(), sanitize(), graphics_object::set(), set_internal_variable(), single_type_concat(), single_type_concat_map(), octave_class::size(), splice(), octave_base_diag< DMT, MT >::subsasgn(), octave_struct::subsasgn(), octave_cell::subsasgn(), octave_scalar_struct::subsasgn(), octave_class::subsasgn_common(), octave_mex_function::subsref(), octave_builtin::subsref(), octave_struct::subsref(), octave_cell::subsref(), octave_fcn_handle::subsref(), octave_class::subsref(), octave_user_script::subsref(), octave_java::subsref(), octave_user_function::subsref(), unary_op_defun_body(), octave_lvalue::value(), waitfor_del_listener(), waitfor_listener(), and xset().

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

Definition at line 272 of file oct-obj.cc.

References data, octave_value::is_copy_of(), and length().

Referenced by octave_builtin::do_multi_index_op().

string_vector octave_value_list::name_tags ( void  ) const
inline

Definition at line 134 of file oct-obj.h.

References names().

Referenced by octave_user_function::do_multi_index_op().

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

Definition at line 86 of file oct-obj.h.

References elem.

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

Definition at line 88 of file oct-obj.h.

References elem.

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

Definition at line 69 of file oct-obj.h.

References data, names, and names().

octave_value_list & octave_value_list::prepend ( const octave_value val)

Definition at line 67 of file oct-obj.cc.

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

Referenced by get_output_list().

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

Definition at line 111 of file oct-obj.cc.

References elem(), and length().

octave_value_list octave_value_list::slice ( octave_idx_type  offset,
octave_idx_type  len,
bool  tags = false 
) const
inline
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 126 of file oct-obj.cc.

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

Referenced by F__go_figure__(), and make_graphics_object().

void octave_value_list::stash_name_tags ( const string_vector nm)
inline
octave_value& octave_value_list::xelem ( octave_idx_type  i)
inline

Definition at line 138 of file oct-obj.h.

Referenced by octave_builtin::do_multi_index_op(), Farrayfun(), Fcellfun(), and octave_jit_call().

Member Data Documentation

Array<octave_value> octave_value_list::data
private

Definition at line 150 of file oct-obj.h.

Referenced by make_storable_values(), octave_value_list(), and operator=().

string_vector octave_value_list::names
private

Definition at line 154 of file oct-obj.h.

Referenced by operator=(), and slice().


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