#include "oct-map.h"
Definition at line 261 of file oct-map.h.
typedef const_iterator octave_map::iterator |
octave_map::octave_map | ( | const octave_fields & | k | ) | [inline] |
octave_map::octave_map | ( | const dim_vector & | dv, | |
const octave_fields & | k | |||
) | [inline] |
octave_map::octave_map | ( | const dim_vector & | dv | ) | [inline] |
octave_map::octave_map | ( | const string_vector & | k | ) | [inline] |
octave_map::octave_map | ( | const dim_vector & | dv, | |
const string_vector & | k | |||
) | [inline] |
octave_map::octave_map | ( | const octave_map & | m | ) | [inline] |
octave_map::octave_map | ( | const octave_scalar_map & | m | ) |
Definition at line 242 of file oct-map.cc.
References dimensions, octave_scalar_map::nfields(), octave_scalar_map::xvals, and xvals.
octave_map::octave_map | ( | const Octave_map & | m | ) |
Definition at line 254 of file oct-map.cc.
References begin(), Octave_map::contents(), contents(), end(), key(), and optimize_dimensions().
void octave_map::assign | ( | const std::string & | k, | |
const Cell & | val | |||
) | [inline] |
Definition at line 349 of file oct-map.h.
Referenced by mxArray_struct::as_octave_value(), assign(), DEFUN(), DEFUN_DLD(), profile_data_accumulator::get_flat(), profile_data_accumulator::tree_node::get_hierarchical(), octave_class::load_ascii(), octave_class::load_binary(), tree_index_expression::make_arg_struct(), make_idx_args(), symbol_info_list::map_value(), octave_class::octave_class(), octave_struct::subsasgn(), and octave_class::subsasgn_common().
void octave_map::assign | ( | const idx_vector & | i, | |
const octave_map & | rhs | |||
) |
Definition at line 967 of file oct-map.cc.
References assign(), dimensions, error(), error_state, octave_fields::is_same(), nfields(), optimize_dimensions(), orderfields(), xkeys, and xvals.
void octave_map::assign | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
const octave_map & | rhs | |||
) |
Definition at line 1009 of file oct-map.cc.
References assign(), dimensions, error(), error_state, octave_fields::is_same(), nfields(), optimize_dimensions(), orderfields(), xkeys, and xvals.
void octave_map::assign | ( | const Array< idx_vector > & | ia, | |
const octave_map & | rhs | |||
) |
Definition at line 1052 of file oct-map.cc.
References assign(), dimensions, error(), error_state, octave_fields::is_same(), nfields(), optimize_dimensions(), orderfields(), xkeys, and xvals.
void octave_map::assign | ( | const octave_value_list & | idx, | |
const octave_map & | rhs | |||
) |
Definition at line 1095 of file oct-map.cc.
References assign(), error_state, and octave_value_list::length().
void octave_map::assign | ( | const octave_value_list & | idx, | |
const std::string & | k, | |||
const Cell & | rhs | |||
) |
Definition at line 1143 of file oct-map.cc.
References Cell::assign(), contents(), dimensions, Array< T >::dims(), end(), error_state, nfields(), optimize_dimensions(), Cell::resize_fill_value(), seek(), setfield(), and xvals.
const_iterator octave_map::begin | ( | void | ) | const [inline] |
Definition at line 305 of file oct-map.h.
Referenced by octave_struct::byte_size(), octave_class::byte_size(), concat(), Octave_map::Octave_map(), octave_map(), octave_class::reconstruct_parents(), octave_class::save_ascii(), and octave_class::save_binary().
octave_map octave_map::cat | ( | int | dim, | |
octave_idx_type | n, | |||
const octave_scalar_map * | map_list | |||
) | [static] |
Definition at line 664 of file oct-map.cc.
References dimensions, do_cat(), octave_fields::is_same(), octave_scalar_map::nfields(), OCTAVE_LOCAL_BUFFER, optimize_dimensions(), permute_to_correct_order(), dim_vector::resize(), octave_scalar_map::xkeys, and xkeys.
Referenced by DEFUN(), and single_type_concat().
octave_map octave_map::cat | ( | int | dim, | |
octave_idx_type | n, | |||
const octave_map * | map_list | |||
) | [static] |
Definition at line 729 of file oct-map.cc.
References dim_vector::concat(), dimensions, do_cat(), error(), octave_fields::is_same(), nfields(), OCTAVE_LOCAL_BUFFER, optimize_dimensions(), permute_to_correct_order(), and xkeys.
octave_scalar_map octave_map::checkelem | ( | octave_idx_type | n | ) | const |
Definition at line 363 of file oct-map.cc.
References compute_index(), dimensions, extract_scalar(), and xkeys.
Referenced by octave_struct::fast_elem_extract(), octave_base_value::scalar_map_value(), and octave_struct::try_narrowing_conversion().
octave_scalar_map octave_map::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const |
Definition at line 374 of file oct-map.cc.
References compute_index(), dimensions, extract_scalar(), and xkeys.
octave_scalar_map octave_map::checkelem | ( | const Array< octave_idx_type > & | ra_idx | ) | const |
Definition at line 385 of file oct-map.cc.
References compute_index(), dimensions, extract_scalar(), and xkeys.
void octave_map::clear | ( | void | ) | [inline] |
octave_idx_type octave_map::cols | ( | void | ) | const [inline] |
octave_map octave_map::column | ( | octave_idx_type | k | ) | const |
Definition at line 952 of file oct-map.cc.
References idx_vector::colon, and index().
octave_idx_type octave_map::columns | ( | void | ) | const [inline] |
octave_map octave_map::concat | ( | const octave_map & | rb, | |
const Array< octave_idx_type > & | ra_idx | |||
) |
Definition at line 1267 of file oct-map.cc.
References dim_vector::all_zero(), begin(), contents(), dims(), end(), error(), Cell::insert(), key(), nfields(), and seek().
bool octave_map::contains | ( | const std::string & | name | ) | const [inline] |
Definition at line 334 of file oct-map.h.
Referenced by decode_subscripts(), DEFUN(), octave_class::reconstruct_parents(), and octave_class::subsasgn_common().
const Cell& octave_map::contents | ( | octave_idx_type | i | ) | const [inline] |
Cell& octave_map::contents | ( | octave_idx_type | i | ) | [inline] |
Cell octave_map::contents | ( | const std::string & | k | ) | const |
Definition at line 339 of file oct-map.cc.
References getfield().
Cell & octave_map::contents | ( | const std::string & | k | ) |
Definition at line 345 of file oct-map.cc.
References dimensions, octave_fields::getfield(), xkeys, and xvals.
const Cell& octave_map::contents | ( | const_iterator | p | ) | const [inline] |
Definition at line 315 of file oct-map.h.
Referenced by octave_struct::as_mxArray(), assign(), octave_struct::byte_size(), octave_class::byte_size(), concat(), decode_subscripts(), DEFUN(), octave_call_stack::do_backtrace(), do_dbstack(), octave_struct::dotref(), octave_class::dotref(), octave_class::find_parent_class(), Octave_map::Octave_map(), octave_map(), pr_where(), octave_struct::print_raw(), octave_class::reconstruct_parents(), octave_struct::save_ascii(), octave_class::save_ascii(), octave_struct::save_binary(), octave_class::save_binary(), octave_struct::subsasgn(), octave_class::subsasgn_common(), octave_class::unique_parent_class(), tree_evaluator::visit_complex_for_command(), and warning_enabled().
void octave_map::delete_elements | ( | const octave_value_list & | idx | ) |
Definition at line 1241 of file oct-map.cc.
References delete_elements(), error_state, and octave_value_list::length().
void octave_map::delete_elements | ( | const idx_vector & | i | ) |
Definition at line 1181 of file oct-map.cc.
References Array< T >::delete_elements(), dimensions, Array< T >::dims(), nfields(), optimize_dimensions(), and xvals.
Referenced by delete_elements(), octave_struct::subsasgn(), and octave_class::subsasgn_common().
void octave_map::delete_elements | ( | const Array< idx_vector > & | ia | ) |
Definition at line 1221 of file oct-map.cc.
References Array< T >::delete_elements(), delete_elements(), dimensions, Array< T >::dims(), nfields(), optimize_dimensions(), and xvals.
void octave_map::delete_elements | ( | int | dim, | |
const idx_vector & | i | |||
) |
Definition at line 1201 of file oct-map.cc.
References Array< T >::delete_elements(), delete_elements(), dimensions, Array< T >::dims(), nfields(), optimize_dimensions(), and xvals.
dim_vector octave_map::dims | ( | void | ) | const [inline] |
Definition at line 401 of file oct-map.h.
Referenced by concat(), DEFUN(), octave_class::octave_class(), and permute_to_correct_order1().
void octave_map::do_cat | ( | int | dim, | |
octave_idx_type | n, | |||
const octave_scalar_map * | map_list, | |||
octave_map & | retval | |||
) | [static, private] |
Definition at line 578 of file oct-map.cc.
References dimensions, nfields(), dim_vector::resize(), octave_scalar_map::xvals, and xvals.
Referenced by cat().
void octave_map::do_cat | ( | int | dim, | |
octave_idx_type | n, | |||
const octave_map * | map_list, | |||
octave_map & | retval | |||
) | [static, private] |
Definition at line 599 of file oct-map.cc.
References dimensions, nfields(), OCTAVE_LOCAL_BUFFER, and xvals.
const_iterator octave_map::end | ( | void | ) | const [inline] |
Definition at line 306 of file oct-map.h.
Referenced by assign(), octave_struct::byte_size(), octave_class::byte_size(), concat(), octave_struct::dotref(), octave_class::dotref(), Octave_map::Octave_map(), octave_map(), octave_class::reconstruct_parents(), octave_class::save_ascii(), octave_class::save_binary(), octave_struct::subsasgn(), and octave_class::subsasgn_common().
void octave_map::extract_scalar | ( | octave_scalar_map & | dest, | |
octave_idx_type | index | |||
) | const [private] |
Definition at line 354 of file oct-map.cc.
References nfields(), xvals, and octave_scalar_map::xvals.
Referenced by checkelem(), and fast_elem_extract().
octave_scalar_map octave_map::fast_elem_extract | ( | octave_idx_type | n | ) | const |
Definition at line 396 of file oct-map.cc.
References extract_scalar(), and xkeys.
bool octave_map::fast_elem_insert | ( | octave_idx_type | n, | |
const octave_scalar_map & | rhs | |||
) |
Definition at line 406 of file oct-map.cc.
References octave_fields::equal_up_to_order(), octave_fields::is_same(), nfields(), OCTAVE_LOCAL_BUFFER, xkeys, octave_scalar_map::xkeys, octave_scalar_map::xvals, and xvals.
Referenced by octave_struct::fast_elem_insert().
string_vector octave_map::fieldnames | ( | void | ) | const [inline] |
Definition at line 337 of file oct-map.h.
Referenced by DEFUN(), Octave_map::Octave_map(), octave_struct::print_raw(), octave_scalar_struct::save_ascii(), octave_struct::save_ascii(), octave_scalar_struct::save_binary(), and octave_struct::save_binary().
Cell octave_map::getfield | ( | const std::string & | key | ) | const |
Definition at line 264 of file oct-map.cc.
References octave_fields::getfield(), xkeys, and xvals.
Referenced by contents().
octave_idx_type octave_map::index | ( | const_iterator | p | ) | const [inline] |
Definition at line 312 of file oct-map.h.
Referenced by column(), octave_struct::do_index_op(), index(), octave_class::octave_class(), page(), and octave_class::subsref().
octave_map octave_map::index | ( | const octave_value_list & | idx, | |
bool | resize_ok = false | |||
) | const |
Definition at line 900 of file oct-map.cc.
References error_state, index(), and octave_value_list::length().
octave_map octave_map::index | ( | const idx_vector & | i, | |
bool | resize_ok = false | |||
) | const |
Definition at line 827 of file oct-map.cc.
References dimensions, Array< T >::dims(), Array< T >::index(), nfields(), optimize_dimensions(), xkeys, and xvals.
octave_map octave_map::index | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
bool | resize_ok = false | |||
) | const |
Definition at line 851 of file oct-map.cc.
References dimensions, Array< T >::dims(), Array< T >::index(), nfields(), optimize_dimensions(), xkeys, and xvals.
octave_map octave_map::index | ( | const Array< idx_vector > & | ia, | |
bool | resize_ok = false | |||
) | const |
Definition at line 876 of file oct-map.cc.
References dimensions, Array< T >::dims(), Array< T >::index(), nfields(), optimize_dimensions(), xkeys, and xvals.
bool octave_map::is_empty | ( | void | ) | const [inline] |
Definition at line 375 of file oct-map.h.
Referenced by permute_to_correct_order1().
bool octave_map::isfield | ( | const std::string & | name | ) | const [inline] |
std::string octave_map::key | ( | const_iterator | p | ) | const [inline] |
Definition at line 310 of file oct-map.h.
Referenced by octave_struct::byte_size(), octave_class::byte_size(), concat(), Octave_map::Octave_map(), octave_map(), octave_class::reconstruct_parents(), octave_class::save_ascii(), and octave_class::save_binary().
string_vector octave_map::keys | ( | void | ) | const [inline] |
Definition at line 340 of file oct-map.h.
Referenced by octave_class::exemplar_info::compare(), octave_class::exemplar_info::exemplar_info(), permute_to_correct_order1(), and tree_evaluator::visit_complex_for_command().
octave_idx_type octave_map::length | ( | void | ) | const [inline] |
int octave_map::ndims | ( | void | ) | const [inline] |
Definition at line 403 of file oct-map.h.
Referenced by transpose().
octave_idx_type octave_map::nfields | ( | void | ) | const [inline] |
Definition at line 328 of file oct-map.h.
Referenced by assign(), cat(), concat(), decode_subscripts(), DEFUN(), delete_elements(), do_cat(), extract_scalar(), fast_elem_insert(), index(), octave_class::octave_class(), optimize_dimensions(), orderfields(), permute(), permute_to_correct_order1(), reshape(), resize(), octave_scalar_struct::save_ascii(), octave_struct::save_ascii(), octave_class::save_ascii(), octave_scalar_struct::save_binary(), octave_struct::save_binary(), octave_class::save_binary(), setfield(), squeeze(), and transpose().
octave_idx_type octave_map::numel | ( | void | ) | const [inline] |
Definition at line 373 of file oct-map.h.
Referenced by decode_subscripts(), DEFUN(), do_dbstack(), octave_struct::fast_elem_extract(), octave_struct::fast_elem_insert(), octave_class::octave_class(), pr_where(), octave_base_value::scalar_map_value(), octave_struct::subsref(), octave_class::subsref(), and warning_enabled().
octave_scalar_map octave_map::operator() | ( | octave_idx_type | n | ) | const [inline] |
octave_scalar_map octave_map::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline] |
octave_scalar_map octave_map::operator() | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline] |
octave_map& octave_map::operator= | ( | const octave_map & | m | ) | [inline] |
Definition at line 291 of file oct-map.h.
References dimensions, xkeys, and xvals.
void octave_map::optimize_dimensions | ( | void | ) | [private] |
Definition at line 1298 of file oct-map.cc.
References dimensions, error(), nfields(), and xvals.
Referenced by assign(), cat(), delete_elements(), index(), octave_map(), permute(), reshape(), resize(), squeeze(), and transpose().
octave_map octave_map::orderfields | ( | const octave_map & | other, | |
Array< octave_idx_type > & | perm | |||
) | const |
Definition at line 317 of file oct-map.cc.
References octave_fields::equal_up_to_order(), error(), octave_fields::is_same(), nfields(), Array< T >::xelem(), xkeys, and xvals.
octave_map octave_map::orderfields | ( | void | ) | const |
Definition at line 297 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 304 of file oct-map.cc.
References nfields(), octave_fields::orderfields(), Array< T >::xelem(), xkeys, and xvals.
octave_map octave_map::page | ( | octave_idx_type | k | ) | const |
Definition at line 958 of file oct-map.cc.
References idx_vector::colon, and index().
octave_map octave_map::permute | ( | const Array< int > & | vec, | |
bool | inv = false | |||
) | const |
Definition at line 458 of file oct-map.cc.
References dimensions, Array< T >::dims(), nfields(), optimize_dimensions(), Array< T >::permute(), xkeys, and xvals.
octave_map octave_map::reshape | ( | const dim_vector & | dv | ) | const |
Definition at line 519 of file oct-map.cc.
References dimensions, nfields(), optimize_dimensions(), Array< T >::reshape(), xkeys, and xvals.
Referenced by octave_class::reshape().
void octave_map::resize | ( | const dim_vector & | dv, | |
bool | fill = false | |||
) |
Definition at line 552 of file oct-map.cc.
References dimensions, nfields(), optimize_dimensions(), Array< T >::resize(), Cell::resize_fill_value(), and xvals.
Referenced by DEFUN(), octave_class::octave_class(), octave_scalar_struct::resize(), octave_struct::resize(), and octave_class::resize().
void octave_map::rmfield | ( | const std::string & | key | ) |
Definition at line 289 of file oct-map.cc.
References octave_fields::rmfield(), xkeys, and xvals.
Referenced by DEFUN().
octave_idx_type octave_map::rows | ( | void | ) | const [inline] |
const_iterator octave_map::seek | ( | const std::string & | k | ) | const [inline] |
Definition at line 308 of file oct-map.h.
Referenced by assign(), concat(), octave_struct::dotref(), octave_class::dotref(), octave_class::find_parent_class(), octave_struct::subsasgn(), octave_class::subsasgn_common(), and octave_class::unique_parent_class().
void octave_map::setfield | ( | const std::string & | key, | |
const Cell & | val | |||
) |
Definition at line 271 of file oct-map.cc.
References dimensions, Array< T >::dims(), error(), octave_fields::getfield(), nfields(), xkeys, and xvals.
Referenced by assign(), DEFUN(), octave_struct::load_ascii(), octave_struct::load_binary(), octave_struct::subsasgn(), and octave_class::subsasgn_common().
octave_map octave_map::squeeze | ( | void | ) | const |
Definition at line 435 of file oct-map.cc.
References dimensions, nfields(), optimize_dimensions(), dim_vector::squeeze(), and xvals.
octave_map octave_map::transpose | ( | void | ) | const |
Definition at line 492 of file oct-map.cc.
References dimensions, ndims(), nfields(), optimize_dimensions(), xkeys, and xvals.
dim_vector octave_map::dimensions [private] |
Definition at line 461 of file oct-map.h.
Referenced by assign(), cat(), checkelem(), contents(), delete_elements(), do_cat(), index(), octave_map(), operator=(), optimize_dimensions(), permute(), reshape(), resize(), setfield(), squeeze(), and transpose().
octave_fields octave_map::xkeys [private] |
Definition at line 459 of file oct-map.h.
Referenced by assign(), cat(), checkelem(), contents(), fast_elem_extract(), fast_elem_insert(), getfield(), index(), operator=(), orderfields(), permute(), reshape(), rmfield(), setfield(), and transpose().
std::vector<Cell> octave_map::xvals [private] |
Definition at line 460 of file oct-map.h.
Referenced by assign(), contents(), delete_elements(), do_cat(), extract_scalar(), fast_elem_insert(), getfield(), index(), octave_map(), operator=(), optimize_dimensions(), orderfields(), permute(), reshape(), resize(), rmfield(), setfield(), squeeze(), and transpose().