GNU Octave  4.2.1
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 "ovl.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)
 
template<template< typename...> class OV_Container>
 octave_value_list (const OV_Container< octave_value > &args)
 
 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 &="") 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 39 of file ovl.h.

Constructor & Destructor Documentation

octave_value_list::octave_value_list ( void  )
inline

Definition at line 45 of file ovl.h.

octave_value_list::octave_value_list ( octave_idx_type  n)
inlineexplicit

Definition at line 48 of file ovl.h.

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

Definition at line 51 of file ovl.h.

octave_value_list::octave_value_list ( const octave_value tc)
inline

Definition at line 54 of file ovl.h.

template<template< typename...> class OV_Container>
octave_value_list::octave_value_list ( const OV_Container< octave_value > &  args)
inline

Definition at line 58 of file ovl.h.

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

Definition at line 61 of file ovl.h.

octave_value_list::octave_value_list ( const Cell tc)
inline

Definition at line 64 of file ovl.h.

octave_value_list::octave_value_list ( const octave_value_list obj)
inline

Definition at line 67 of file ovl.h.

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

Definition at line 35 of file ovl.cc.

References Array< T >::assign(), data, k, octave_lvalue::nel, p, and Array< T >::resize().

octave_value_list::~octave_value_list ( void  )
inline

Definition at line 73 of file ovl.h.

Member Function Documentation

bool octave_value_list::all_scalars ( void  ) const

Definition at line 175 of file ovl.cc.

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

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

bool octave_value_list::all_strings_p ( void  ) const

Definition at line 163 of file ovl.cc.

References elem(), and length().

Referenced by make_argv().

bool octave_value_list::any_cell ( void  ) const

Definition at line 190 of file ovl.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 ovl.cc.

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

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

Definition at line 86 of file ovl.h.

Cell octave_value_list::cell_value ( void  ) const
inline
void octave_value_list::clear ( void  )
inline
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 170 of file ovl.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 96 of file ovl.h.

Referenced by base_property::add_listener(), addlistener(), all_scalars(), 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(), bitop(), tree_statement_list::breakpoints_and_conds(), call_mex(), class_fevalStatic(), class_fromName(), class_get_inferiorclasses(), class_get_methods(), class_get_properties(), class_get_superclasses(), class_getConstant(), property::create(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), tree_parameter_list::define_from_arg_vector(), 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(), do_bessel(), do_colon_op(), do_fft(), do_fft2(), do_fftn(), do_find_bkpt_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_range::do_index_op(), octave_base_sparse< T >::do_index_op(), octave_char_matrix_str::do_index_op_internal(), do_isglobal(), do_minmax_body(), octave_builtin::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), bp_table::do_remove_breakpoint_1(), do_trilu(), octave_struct::dotref(), octave_class::dotref(), octave_scalar_struct::dotref(), eigs_complex_func(), eigs_func(), jit_function_info::execute(), cdef_method::cdef_method_rep::execute(), F__zoom__(), Fdrawnow(), Ffwrite(), Fregister_graphics_toolkit(), get_dispatch_type(), get_user_input(), handle_message(), has_magic_colon(), if(), Cell::index(), octave_map::index(), octave_lvalue::index_is_empty(), tm_row_const::tm_row_const_rep::init(), jit_function_info::jit_function_info(), kpse_truncate_filename(), load_fcn_from_file(), make_argv(), make_fcn_handle(), make_idx_args(), make_java_index(), make_storable_values(), make_subs_cell(), make_value_list(), jit_function_info::match(), mexCallMATLAB(), mk_tmp_hist_file(), octave_class::numel(), octave_class::octave_class(), octave_jit_call(), octregexp(), package_fromName(), package_get_classes(), package_get_functions(), package_get_packages(), parse_dbfunction_params(), parse_options(), octave::textscan::parse_options(), prepend(), quad_float_user_function(), quad_user_function(), octave_class::reconstruct_exemplar(), tree_statement_list::remove_all_breakpoints(), reverse(), cdef_class::cdef_class_rep::run_constructor(), base_property::run_listeners(), tree_funcall::rvalue(), tree_index_expression::rvalue(), tree_multi_assignment::rvalue(), tree_cell::rvalue1(), sanitize(), save_binary_data(), graphics_object::set(), annotation_dialog::set_gui_props(), cdef_property::cdef_property_rep::set_value(), octave_class::size(), splice(), octave_class::string_vector_value(), octave_base_diag< DMT, MT >::subsasgn(), octave_struct::subsasgn(), octave_cell::subsasgn(), octave_scalar_struct::subsasgn(), cdef_object_array::subsasgn(), octave_class::subsasgn_common(), octave_mex_function::subsref(), octave_builtin::subsref(), octave_struct::subsref(), octave_cell::subsref(), octave_fcn_handle::subsref(), octave_java::subsref(), octave_class::subsref(), octave_user_script::subsref(), octave_user_function::subsref(), cdef_object_array::subsref(), octave_classdef_meta::subsref(), octave_classdef_superclass_ref::subsref(), octave_classdef::subsref(), unbox(), unique_symbol_name(), octave_lvalue::value(), waitfor_del_listener(), waitfor_listener(), xset(), and octave::xzip().

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

Definition at line 264 of file ovl.cc.

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

Referenced by octave_builtin::do_multi_index_op().

string_vector octave_value_list::name_tags ( void  ) const
inline

Definition at line 146 of file ovl.h.

Referenced by octave_user_function::do_multi_index_op().

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

Definition at line 92 of file ovl.h.

References elem.

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

Definition at line 94 of file ovl.h.

References elem.

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

Definition at line 75 of file ovl.h.

References data, and names.

octave_value_list & octave_value_list::prepend ( const octave_value val)
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 ovl.cc.

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

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 ovl.cc.

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

Referenced by class_fevalStatic().

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

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

Member Data Documentation

Array<octave_value> octave_value_list::data
private

Definition at line 156 of file ovl.h.

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

string_vector octave_value_list::names
private

Definition at line 160 of file ovl.h.

Referenced by operator=(), octave_fcn_handle::set_fcn(), and slice().


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