Public Member Functions | Private Member Functions | Private Attributes

octave_value_list Class Reference

#include "oct-obj.h"

Collaboration diagram for octave_value_list:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

octave_value_list::octave_value_list ( octave_idx_type  n  )  [inline, explicit]

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(), Array< T >::data(), 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_list lst  ) 

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

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

octave_value_list & octave_value_list::append ( const octave_value val  ) 

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

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

Referenced by tree_breakpoint::take_action().

Array<octave_value> octave_value_list::array_value ( void   )  const [inline]

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

Referenced by DEFUN(), DEFUN_DLD(), do_bessel(), do_rand(), and parse_dbfunction_params().

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  )  [inline, private]
const octave_value& octave_value_list::elem ( octave_idx_type  n  )  const [inline, private]

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 all_scalars(), octave_class::all_strings(), all_strings_p(), octave_user_function::all_va_args(), any_cell(), append(), octave_base_sparse< T >::assign(), octave_base_matrix< MT >::assign(), octave_map::assign(), Cell::assign(), binary_assoc_op_defun_body(), binary_op_defun_body(), bind_ans(), call_mex(), compare_property_values(), const_value(), 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(), DEFUNX(), tree_statement_list::delete_breakpoint(), octave_base_sparse< T >::delete_elements(), octave_base_matrix< MT >::delete_elements(), octave_map::delete_elements(), Cell::delete_elements(), dims_to_numel(), do_accumarray_minmax_fun(), do_bessel(), do_cumminmax_body(), do_dbstack(), do_dbupdown(), do_fft(), do_fft2(), do_fftn(), do_find_bkpt_list(), bp_table::do_get_breakpoint_list(), octave_diag_matrix::do_index_op(), octave_range::do_index_op(), octave_perm_matrix::do_index_op(), octave_base_sparse< T >::do_index_op(), octave_base_matrix< MT >::do_index_op(), octave_base_diag< DMT, MT >::do_index_op(), octave_char_matrix_str::do_index_op_internal(), do_isglobal(), do_keyboard(), do_minmax_body(), octave_user_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_fcn_binder::do_multi_index_op(), octave_builtin::do_multi_index_op(), do_permute(), bp_table::do_remove_all_breakpoints_in_file(), bp_table::do_remove_breakpoint(), do_simple_cellfun(), do_trilu(), octave_scalar_struct::dotref(), octave_struct::dotref(), octave_class::dotref(), eigs_complex_func(), eigs_func(), fill_matrix(), get_dispatch_type(), get_user_input(), handle_message(), has_magic_colon(), Octave_map::index(), octave_map::index(), Cell::index(), octave_class::index_vector(), tm_row_const::tm_row_const_rep::init(), lsode_user_function(), lsode_user_jacobian(), make_argv(), make_graphics_object(), make_idx_args(), make_storable_values(), make_subs_cell(), make_value_list(), mexCallMATLAB(), octave_class::numel(), octave_class::octave_class(), octregexp(), octregexprep(), parse_dbfunction_params(), parse_options(), prepend(), quad_float_user_function(), quad_user_function(), octave_class::reconstruct_exemplar(), reverse(), tree_index_expression::rvalue(), tree_multi_assignment::rvalue(), tree_cell::rvalue1(), sanitize(), octave_fcn_inline::save_binary(), set_internal_variable(), octave_class::size(), splice(), octave_scalar_struct::subsasgn(), octave_struct::subsasgn(), octave_cell::subsasgn(), octave_base_diag< DMT, MT >::subsasgn(), octave_class::subsasgn_common(), octave_user_function::subsref(), octave_user_script::subsref(), octave_struct::subsref(), octave_mex_function::subsref(), octave_fcn_handle::subsref(), octave_class::subsref(), octave_cell::subsref(), octave_builtin::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.

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 = Array<octave_value>::resize_fill_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 DEFUN(), 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 DEFUN_DLD(), and octave_builtin::do_multi_index_op().


Member Data Documentation

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

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

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

Referenced by operator=().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines