#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 m.
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(), error_unless, octave_fields::is_same(), nfields(), and orderfields().
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(), error_unless, octave_fields::is_same(), nfields(), and orderfields().
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(), error_unless, octave_fields::is_same(), nfields(), and orderfields().
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(), octave::F__ftp_dir__(), octave::F__version_info__(), Fdbstatus(), Fperms(), symbol_info_list::map_value(), and bp_table::stop_on_err_warn_status().
|
inline |
Definition at line 297 of file oct-map.h.
References octave_fields::begin().
Referenced by Fdbstatus().
|
static |
Definition at line 754 of file oct-map.cc.
References error(), octave_fields::is_same(), n, nfields(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 690 of file oct-map.cc.
References error(), octave_fields::is_same(), n, octave_scalar_map::nfields(), and OCTAVE_LOCAL_BUFFER.
|
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 octave_struct::fast_elem_extract(), octave_base_value::scalar_map_value(), and octave_struct::try_narrowing_conversion().
|
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 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(), 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(), octave_class::is_instance_of(), error_system::make_stack_frame_list(), octave_class::reconstruct_parents(), octave_struct::save_ascii(), octave_struct::save_binary(), octave_struct::save_hdf5(), 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 Array< T, Alloc >::delete_elements(), Array< T, Alloc >::dims(), and nfields().
Referenced by delete_elements().
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(), 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(), and n.
|
inline |
Definition at line 298 of file oct-map.h.
Referenced by assign(), octave_class::dotref(), octave_struct::dotref(), and Fdbstatus().
octave_scalar_map octave_map::fast_elem_extract | ( | octave_idx_type | n | ) | const |
Definition at line 403 of file oct-map.cc.
References n.
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(), n, nfields(), and OCTAVE_LOCAL_BUFFER.
Referenced by octave_struct::fast_elem_insert().
|
inline |
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(), 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(), 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(), and Fset().
|
inline |
Definition at line 305 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 335 of file oct-map.h.
Referenced by octave_class::exemplar_info::compare(), permute_to_correct_order1(), and tree_evaluator::visit_complex_for_command().
|
inline |
Definition at line 369 of file oct-map.h.
References numel().
Referenced by octave::F__version_info__().
|
inline |
Definition at line 323 of file oct-map.h.
Referenced by octave_class::octave_class(), assign(), octave_class::break_closure_cycles(), octave_struct::break_closure_cycles(), cat(), concat(), delete_elements(), octave::F__version_info__(), fast_elem_insert(), index(), orderfields(), permute(), permute_to_correct_order1(), reshape(), resize(), setfield(), squeeze(), and transpose().
|
inline |
Definition at line 368 of file oct-map.h.
Referenced by octave_class::octave_class(), octave::F__version_info__(), octave_struct::fast_elem_extract(), octave_struct::fast_elem_insert(), Fperms(), 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.
Referenced by assign(), 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_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(), 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(), octave::F__version_info__(), 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().
|
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(), 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(), Fdbstatus(), cdef_object::map_value(), and error_system::rethrow_error().
octave_map octave_map::squeeze | ( | ) | const |
Definition at line 442 of file oct-map.cc.
References nfields(), and dim_vector::squeeze().
octave_map octave_map::transpose | ( | ) | const |
Definition at line 499 of file oct-map.cc.
References nfields().