GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-map.h"
Classes | |
class | fields_rep |
Public Types | |
typedef std::map< std::string, octave_idx_type > ::const_iterator | const_iterator |
typedef const_iterator | iterator |
Static Private Member Functions | |
static fields_rep * | nil_rep (void) |
Private Attributes | |
fields_rep * | rep |
typedef std::map<std::string, octave_idx_type>::const_iterator octave_fields::const_iterator |
|
inline |
Definition at line 62 of file oct-map.h.
References octave_fields::fields_rep::count.
octave_fields::octave_fields | ( | const string_vector & | fields | ) |
Definition at line 36 of file oct-map.cc.
References Array< T >::numel(), and rep.
octave_fields::octave_fields | ( | const char *const * | fields | ) |
Definition at line 44 of file oct-map.cc.
|
inline |
Definition at line 66 of file oct-map.h.
References octave_fields::fields_rep::count.
|
inline |
Definition at line 85 of file oct-map.h.
References octave_fields::fields_rep::count.
|
inline |
Definition at line 103 of file oct-map.h.
Referenced by equal_up_to_order(), and fieldnames().
|
inline |
Definition at line 104 of file oct-map.h.
Referenced by equal_up_to_order(), and fieldnames().
bool octave_fields::equal_up_to_order | ( | const octave_fields & | other, |
octave_idx_type * | perm | ||
) | const |
Definition at line 117 of file oct-map.cc.
References begin(), and end().
Referenced by equal_up_to_order(), octave_map::fast_elem_insert(), octave_scalar_map::orderfields(), and octave_map::orderfields().
bool octave_fields::equal_up_to_order | ( | const octave_fields & | other, |
Array< octave_idx_type > & | perm | ||
) | const |
Definition at line 141 of file oct-map.cc.
References Array< T >::clear(), equal_up_to_order(), Array< T >::fortran_vec(), Array< T >::length(), and nfields().
string_vector octave_fields::fieldnames | ( | void | ) | const |
Definition at line 152 of file oct-map.cc.
References begin(), end(), nfields(), and Array< T >::xelem().
octave_idx_type octave_fields::getfield | ( | const std::string & | name | ) | const |
Definition at line 59 of file oct-map.cc.
References rep.
Referenced by octave_scalar_map::contents(), octave_map::contents(), octave_scalar_map::getfield(), octave_map::getfield(), octave_scalar_map::setfield(), and octave_map::setfield().
octave_idx_type octave_fields::getfield | ( | const std::string & | name | ) |
Definition at line 66 of file oct-map.cc.
References make_unique(), and rep.
|
inline |
|
inline |
Definition at line 140 of file oct-map.h.
References rep.
Referenced by octave_map::assign(), octave_map::cat(), octave_map::fast_elem_insert(), octave_scalar_map::orderfields(), and octave_map::orderfields().
bool octave_fields::isfield | ( | const std::string & | name | ) | const |
Definition at line 53 of file oct-map.cc.
References rep.
|
inline |
|
inline |
Definition at line 72 of file oct-map.h.
References octave_fields::fields_rep::count.
Referenced by getfield(), orderfields(), and rmfield().
|
inline |
Definition at line 115 of file oct-map.h.
Referenced by equal_up_to_order(), and fieldnames().
|
inlinestaticprivate |
|
inline |
Definition at line 88 of file oct-map.h.
References octave_fields::fields_rep::count, and rep.
void octave_fields::orderfields | ( | Array< octave_idx_type > & | perm | ) |
Definition at line 101 of file oct-map.cc.
References Array< T >::clear(), make_unique(), and rep.
Referenced by octave_scalar_map::orderfields(), and octave_map::orderfields().
octave_idx_type octave_fields::rmfield | ( | const std::string & | name | ) |
Definition at line 80 of file oct-map.cc.
References make_unique(), and rep.
Referenced by octave_scalar_map::rmfield(), and octave_map::rmfield().
|
inline |
|
private |
Definition at line 52 of file oct-map.h.
Referenced by getfield(), is_same(), isfield(), octave_fields(), operator=(), orderfields(), and rmfield().