#include "oct-map.h"
Public Types | |
typedef octave_fields::const_iterator | const_iterator |
typedef octave_scalar_map | element_type |
typedef const_iterator | iterator |
Static Public Member Functions | |
static octave_map | cat (int dim, octave_idx_type n, const octave_map *map_list) |
static octave_map | cat (int dim, octave_idx_type n, const octave_scalar_map *map_list) |
typedef const_iterator octave_map::iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
octave_map::octave_map | ( | const octave_scalar_map & | m | ) |
Definition at line 262 of file oct-map.cc.
References octave_scalar_map::nfields().
void octave_map::assign | ( | const Array< octave::idx_vector > & | ia, |
const octave_map & | rhs | ||
) |
Definition at line 1090 of file oct-map.cc.
References assign(), error(), octave_fields::is_same(), nfields(), orderfields(), and panic_unless.
void octave_map::assign | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
const octave_map & | rhs | ||
) |
Definition at line 1042 of file oct-map.cc.
References assign(), error(), octave_fields::is_same(), nfields(), orderfields(), and panic_unless.
void octave_map::assign | ( | const octave::idx_vector & | i, |
const octave_map & | rhs | ||
) |
Definition at line 995 of file oct-map.cc.
References assign(), error(), octave_fields::is_same(), nfields(), orderfields(), and panic_unless.
void octave_map::assign | ( | const octave_value_list & | idx, |
const octave_map & | rhs | ||
) |
Definition at line 1138 of file oct-map.cc.
References assign(), and octave_value_list::length().
void octave_map::assign | ( | const octave_value_list & | idx, |
const std::string & | k, | ||
const Cell & | rhs | ||
) |
Definition at line 1192 of file oct-map.cc.
References Cell::assign(), contents(), Array< T, Alloc >::dims(), end(), nfields(), seek(), and setfield().
|
inline |
Definition at line 344 of file oct-map.h.
Referenced by octave_class::octave_class(), assign(), assign(), assign(), assign(), F__ftp_dir__(), F__version_info__(), Fdbstatus(), Fperms(), Fwarning(), tree_evaluator::get_autoload_map(), profiler::get_flat(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), make_idx_args(), symbol_info_list::map_value(), read_mat5_binary_element(), error_system::set_warning_option(), bp_table::stop_on_err_warn_status(), and octave_struct::subsasgn().
|
inline |
Definition at line 297 of file oct-map.h.
References octave_fields::begin().
Referenced by Fdbstatus(), octave_class::save_ascii(), octave_class::save_binary(), octave_class::save_hdf5(), and save_mat5_element_length().
|
static |
Definition at line 754 of file oct-map.cc.
References dim_vector::concat(), error(), octave_fields::is_same(), nfields(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 690 of file oct-map.cc.
References error(), octave_fields::is_same(), octave_scalar_map::nfields(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
Referenced by Fget().
|
inline |
Definition at line 300 of file oct-map.h.
Referenced by octave_class::byte_size(), octave_struct::byte_size(), concat(), and octave_class::reconstruct_parents().
|
inline |
Definition at line 301 of file oct-map.h.
Referenced by octave_class::byte_size(), octave_struct::byte_size(), concat(), and octave_class::reconstruct_parents().
|
inline |
|
inline |
|
inline |
Definition at line 378 of file oct-map.h.
Referenced by F__magick_formats__(), octave_struct::fast_elem_extract(), octave_base_value::scalar_map_value(), and octave_struct::try_narrowing_conversion().
|
inline |
Definition at line 361 of file oct-map.h.
Referenced by error_system::set_warning_option().
|
inline |
octave_map octave_map::column | ( | octave_idx_type | k | ) | const |
Definition at line 979 of file oct-map.cc.
References index().
|
inline |
Definition at line 374 of file oct-map.h.
Referenced by octave_struct::edit_display().
octave_map octave_map::concat | ( | const octave_map & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 1321 of file oct-map.cc.
References dim_vector::all_zero(), cbegin(), cend(), contents(), dims(), error(), Cell::insert(), key(), nfields(), ra_idx, and seek().
|
inline |
Definition at line 329 of file oct-map.h.
Referenced by Fwarning(), octave_class::reconstruct_parents(), and error_system::rethrow_error().
Cell & octave_map::contents | ( | const std::string & | k | ) |
Definition at line 352 of file oct-map.cc.
References octave_fields::getfield().
Cell octave_map::contents | ( | const std::string & | k | ) | const |
Definition at line 346 of file oct-map.cc.
References getfield().
|
inline |
Definition at line 310 of file oct-map.h.
Referenced by octave_struct::as_mxArray(), assign(), call_stack::backtrace(), octave_class::break_closure_cycles(), octave_struct::break_closure_cycles(), octave_class::byte_size(), octave_struct::byte_size(), concat(), bp_table::dbstop_process_map_args(), error_system::default_warning_state(), error_system::display_warning_options(), octave_class::dotref(), octave_struct::dotref(), octave_struct::edit_display(), Fdbstatus(), octave_class::find_parent_class(), Fperms(), Fstruct2cell(), Fwarning(), octave_class::is_instance_of(), error_system::make_stack_frame_list(), error_system::make_stack_map(), octave_struct::print_raw(), octave_class::reconstruct_parents(), octave_user_function::restore_warning_states(), octave_class::save_ascii(), octave_struct::save_ascii(), octave_class::save_binary(), octave_struct::save_binary(), octave_class::save_hdf5(), octave_struct::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), error_system::set_warning_option(), octave_struct::subsasgn(), octave_class::unique_parent_class(), tree_evaluator::visit_complex_for_command(), error_system::warning_enabled(), and error_system::warning_query().
|
inline |
|
inline |
void octave_map::delete_elements | ( | const Array< octave::idx_vector > & | ia | ) |
Definition at line 1270 of file oct-map.cc.
References delete_elements(), Array< T, Alloc >::delete_elements(), Array< T, Alloc >::dims(), and nfields().
void octave_map::delete_elements | ( | const octave::idx_vector & | i | ) |
Definition at line 1230 of file oct-map.cc.
References delete_elements(), Array< T, Alloc >::delete_elements(), Array< T, Alloc >::dims(), and nfields().
Referenced by delete_elements(), delete_elements(), delete_elements(), delete_elements(), F__magick_formats__(), and octave_struct::subsasgn().
void octave_map::delete_elements | ( | const octave_value_list & | idx | ) |
Definition at line 1290 of file oct-map.cc.
References delete_elements(), and octave_value_list::length().
void octave_map::delete_elements | ( | int | dim, |
const octave::idx_vector & | i | ||
) |
Definition at line 1250 of file oct-map.cc.
References delete_elements(), Array< T, Alloc >::delete_elements(), Array< T, Alloc >::dims(), and nfields().
|
inline |
Definition at line 409 of file oct-map.h.
Referenced by octave_class::octave_class(), concat(), octave_struct::dims(), Fstruct2cell(), and permute_to_correct_order1().
octave_scalar_map octave_map::elem | ( | const Array< octave_idx_type > & | ra_idx | ) | const |
Definition at line 392 of file oct-map.cc.
References compute_index(), and ra_idx.
octave_scalar_map octave_map::elem | ( | octave_idx_type | i, |
octave_idx_type | j | ||
) | const |
Definition at line 381 of file oct-map.cc.
References compute_index().
octave_scalar_map octave_map::elem | ( | octave_idx_type | n | ) | const |
Definition at line 370 of file oct-map.cc.
References compute_index().
|
inline |
Definition at line 298 of file oct-map.h.
Referenced by assign(), octave_class::dotref(), octave_struct::dotref(), Fdbstatus(), octave_class::save_ascii(), octave_class::save_binary(), octave_class::save_hdf5(), save_mat5_element_length(), and octave_struct::subsasgn().
octave_scalar_map octave_map::fast_elem_extract | ( | octave_idx_type | n | ) | const |
Definition at line 403 of file oct-map.cc.
bool octave_map::fast_elem_insert | ( | octave_idx_type | n, |
const octave_scalar_map & | rhs | ||
) |
Definition at line 413 of file oct-map.cc.
References octave_fields::equal_up_to_order(), octave_fields::is_same(), nfields(), and OCTAVE_LOCAL_BUFFER.
Referenced by F__magick_finfo__(), F__magick_formats__(), and octave_struct::fast_elem_insert().
|
inline |
Definition at line 332 of file oct-map.h.
Referenced by F__fieldnames__(), F__magick_formats__(), Fperms(), octave_struct::map_keys(), octave_struct::print_raw(), octave_struct::save_ascii(), octave_scalar_struct::save_ascii(), octave_struct::save_binary(), octave_scalar_struct::save_binary(), and octave_struct::save_hdf5().
Cell octave_map::getfield | ( | const std::string & | key | ) | const |
Definition at line 275 of file oct-map.cc.
References octave_fields::getfield().
Referenced by contents(), Fdbstop(), and Fset().
octave_map octave_map::index | ( | const Array< octave::idx_vector > & | ia, |
bool | resize_ok = false |
||
) | const |
Definition at line 897 of file oct-map.cc.
References Array< T, Alloc >::dims(), Array< T, Alloc >::index(), and nfields().
octave_map octave_map::index | ( | const octave::idx_vector & | i, |
bool | resize_ok = false |
||
) | const |
Definition at line 848 of file oct-map.cc.
References Array< T, Alloc >::dims(), Array< T, Alloc >::index(), and nfields().
octave_map octave_map::index | ( | const octave::idx_vector & | i, |
const octave::idx_vector & | j, | ||
bool | resize_ok = false |
||
) | const |
Definition at line 872 of file oct-map.cc.
References Array< T, Alloc >::dims(), Array< T, Alloc >::index(), and nfields().
octave_map octave_map::index | ( | const octave_value_list & | idx, |
bool | resize_ok = false |
||
) | const |
Definition at line 921 of file oct-map.cc.
References index(), and octave_value_list::length().
|
inline |
Definition at line 307 of file oct-map.h.
Referenced by octave_class::octave_class(), column(), octave_struct::do_index_op(), octave_scalar_struct::do_index_op(), index(), page(), and octave_class::subsref().
|
inline |
Definition at line 370 of file oct-map.h.
Referenced by Fdbstatus(), Fdbstop(), permute_to_correct_order1(), and error_system::rethrow_error().
|
inline |
Definition at line 326 of file oct-map.h.
Referenced by bp_table::dbstop_process_map_args(), Fdbstop(), Frmfield(), Fset(), and octave_struct::isfield().
|
inline |
Definition at line 305 of file oct-map.h.
Referenced by octave_class::byte_size(), octave_struct::byte_size(), concat(), octave_class::reconstruct_parents(), octave_class::save_ascii(), octave_class::save_binary(), and octave_class::save_hdf5().
|
inline |
Definition at line 335 of file oct-map.h.
Referenced by octave_class::exemplar_info::exemplar_info(), octave_class::exemplar_info::compare(), permute_to_correct_order1(), save_mat5_binary_element(), and tree_evaluator::visit_complex_for_command().
|
inline |
|
inline |
Definition at line 323 of file oct-map.h.
Referenced by octave_class::octave_class(), assign(), assign(), assign(), assign(), octave_class::break_closure_cycles(), octave_struct::break_closure_cycles(), cat(), concat(), delete_elements(), delete_elements(), delete_elements(), F__version_info__(), fast_elem_insert(), Fstruct2cell(), index(), index(), index(), octave_struct::nfields(), orderfields(), orderfields(), permute(), permute_to_correct_order1(), reshape(), resize(), octave_class::save_ascii(), octave_struct::save_ascii(), octave_scalar_struct::save_ascii(), octave_class::save_binary(), octave_struct::save_binary(), octave_scalar_struct::save_binary(), octave_struct::save_hdf5(), save_mat5_binary_element(), setfield(), squeeze(), and transpose().
|
inline |
Definition at line 368 of file oct-map.h.
Referenced by octave_class::octave_class(), F__magick_formats__(), F__version_info__(), octave_struct::fast_elem_extract(), octave_struct::fast_elem_insert(), Fperms(), Fstruct2cell(), octave_struct::numel(), octave_user_function::restore_warning_states(), save_mat5_binary_element(), save_mat5_element_length(), octave_base_value::scalar_map_value(), octave_struct::subsref(), octave_class::subsref(), and error_system::warning_enabled().
|
inline |
|
inline |
|
inline |
octave_map octave_map::orderfields | ( | ) | const |
Definition at line 306 of file oct-map.cc.
References orderfields().
Referenced by assign(), assign(), assign(), orderfields(), and permute_to_correct_order1().
octave_map octave_map::orderfields | ( | Array< octave_idx_type > & | perm | ) | const |
Definition at line 313 of file oct-map.cc.
References nfields(), octave_fields::orderfields(), and Array< T, Alloc >::xelem().
octave_map octave_map::orderfields | ( | const octave_map & | other, |
Array< octave_idx_type > & | perm | ||
) | const |
Definition at line 326 of file oct-map.cc.
References octave_fields::equal_up_to_order(), error(), octave_fields::is_same(), nfields(), and Array< T, Alloc >::xelem().
octave_map octave_map::page | ( | octave_idx_type | k | ) | const |
Definition at line 985 of file oct-map.cc.
References index().
octave_map octave_map::permute | ( | const Array< int > & | vec, |
bool | inv = false |
||
) | const |
Definition at line 465 of file oct-map.cc.
References Array< T, Alloc >::dims(), nfields(), and Array< T, Alloc >::permute().
Referenced by octave_struct::permute(), and octave_scalar_struct::permute().
octave_map octave_map::reshape | ( | const dim_vector & | dv | ) | const |
Definition at line 524 of file oct-map.cc.
References dim_vector::chop_trailing_singletons(), nfields(), and Array< T, Alloc >::reshape().
Referenced by octave_class::reshape(), octave_struct::reshape(), and octave_scalar_struct::reshape().
void octave_map::resize | ( | const dim_vector & | dv, |
bool | fill = false |
||
) |
Definition at line 574 of file oct-map.cc.
References nfields(), and Array< T, Alloc >::resize().
Referenced by octave_class::octave_class(), F__version_info__(), Fwarning(), octave_struct::resize(), octave_scalar_struct::resize(), and octave_class::resize().
void octave_map::rmfield | ( | const std::string & | key | ) |
Definition at line 298 of file oct-map.cc.
References octave_fields::rmfield().
Referenced by Frmfield().
|
inline |
Definition at line 372 of file oct-map.h.
Referenced by octave_struct::edit_display().
|
inline |
Definition at line 303 of file oct-map.h.
Referenced by assign(), concat(), octave_class::dotref(), octave_struct::dotref(), octave_class::find_parent_class(), octave_class::is_instance_of(), octave_struct::subsasgn(), and octave_class::unique_parent_class().
void octave_map::setfield | ( | const std::string & | key, |
const Cell & | val | ||
) |
Definition at line 282 of file oct-map.cc.
References Array< T, Alloc >::dims(), error(), octave_fields::getfield(), and nfields().
Referenced by assign(), F__magick_finfo__(), Faudiodevinfo(), Fcell2struct(), Fdbstatus(), Fstruct(), Fwarning(), octave_struct::load_ascii(), octave_struct::load_binary(), octave_struct::load_hdf5(), cdef_object::map_value(), error_system::rethrow_error(), and octave_struct::subsasgn().
octave_map octave_map::squeeze | ( | ) | const |
Definition at line 442 of file oct-map.cc.
References nfields(), and dim_vector::squeeze().
Referenced by octave_struct::squeeze().
octave_map octave_map::transpose | ( | ) | const |
Definition at line 499 of file oct-map.cc.
References nfields().