23 #if !defined (octave_ov_struct_h)
24 #define octave_ov_struct_h 1
70 const std::list<octave_value_list>& idx)
77 const std::list<octave_value_list>&,
int);
80 const std::list<octave_value_list>& idx,
84 const std::string&
type);
87 const std::list<octave_value_list>& idx,
93 {
return map.
permute (vec, inv); }
96 bool resize_ok =
false);
100 size_t byte_size (
void)
const;
112 {
return map.
reshape (new_dims); }
121 bool is_map (
void)
const {
return true; }
129 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
131 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
133 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
135 bool save_ascii (std::ostream& os);
137 bool load_ascii (std::istream& is);
139 bool save_binary (std::ostream& os,
bool& save_as_floats);
141 bool load_binary (std::istream& is,
bool swap,
144 #if defined (HAVE_HDF5)
145 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
147 bool load_hdf5 (hid_t loc_id,
const char *name);
150 mxArray *as_mxArray (
void)
const;
194 const std::list<octave_value_list>& idx);
197 const std::list<octave_value_list>& idx,
int);
201 const std::list<octave_value_list>& idx,
205 const std::string&
type);
208 const std::list<octave_value_list>& idx,
217 bool resize_ok =
false);
221 size_t byte_size (
void)
const;
242 bool is_map (
void)
const {
return true; }
252 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
254 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
256 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
258 bool save_ascii (std::ostream& os);
260 bool load_ascii (std::istream& is);
262 bool save_binary (std::ostream& os,
bool& save_as_floats);
264 bool load_binary (std::istream& is,
bool swap,
267 #if defined (HAVE_HDF5)
268 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
270 bool load_hdf5 (hid_t loc_id,
const char *name);
273 mxArray *as_mxArray (
void)
const;
275 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;