Mercurial > hg > octave-nkf
comparison src/oct-map.h @ 7046:fbf8576cf399
[project @ 2007-10-22 12:12:20 by dbateman]
author | dbateman |
---|---|
date | Mon, 22 Oct 2007 12:12:20 +0000 |
parents | a1dbe9d80eee |
children | 280fae940bb0 |
comparison
equal
deleted
inserted
replaced
7045:271fa61d8fae | 7046:fbf8576cf399 |
---|---|
85 return *this; | 85 return *this; |
86 } | 86 } |
87 | 87 |
88 ~Octave_map (void) { } | 88 ~Octave_map (void) { } |
89 | 89 |
90 Octave_map squeeze (void) const; | |
91 | |
92 Octave_map permute (const Array<int>& vec, bool inv = false) const; | |
93 | |
90 // This is the number of keys. | 94 // This is the number of keys. |
91 octave_idx_type nfields (void) const { return map.size (); } | 95 octave_idx_type nfields (void) const { return map.size (); } |
92 | 96 |
93 void del (const std::string& k) | 97 void del (const std::string& k) |
94 { | 98 { |
170 | 174 |
171 Octave_map& assign (const std::string& k, const octave_value& rhs); | 175 Octave_map& assign (const std::string& k, const octave_value& rhs); |
172 | 176 |
173 Octave_map& assign (const std::string& k, const Cell& rhs); | 177 Octave_map& assign (const std::string& k, const Cell& rhs); |
174 | 178 |
175 Octave_map index (const octave_value_list& idx); | 179 Octave_map index (const octave_value_list& idx, |
180 bool resize_ok = false) const; | |
181 | |
182 Octave_map index (idx_vector& i, int resize_ok = 0, | |
183 const octave_value& rfv = Cell::resize_fill_value ()) const; | |
184 | |
185 Octave_map index (idx_vector& i, idx_vector& j, int resize_ok = 0, | |
186 const octave_value& rfv = Cell::resize_fill_value ()) const; | |
187 | |
188 Octave_map index (Array<idx_vector>& ra_idx, int resize_ok = 0, | |
189 const octave_value& rfv = Cell::resize_fill_value ()) const; | |
176 | 190 |
177 private: | 191 private: |
178 | 192 |
179 // The map of names to values. | 193 // The map of names to values. |
180 std::map<std::string, Cell> map; | 194 std::map<std::string, Cell> map; |