comparison src/ov-struct.h @ 10313:f3b65e1ae355

untabify src header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:16:43 -0500
parents cd96d29c5efa
children 604e13a89c7f
comparison
equal deleted inserted replaced
10312:cbc402e64d83 10313:f3b65e1ae355
64 octave_base_value *empty_clone (void) const { return new octave_struct (); } 64 octave_base_value *empty_clone (void) const { return new octave_struct (); }
65 65
66 Cell dotref (const octave_value_list& idx, bool auto_add = false); 66 Cell dotref (const octave_value_list& idx, bool auto_add = false);
67 67
68 octave_value subsref (const std::string& type, 68 octave_value subsref (const std::string& type,
69 const std::list<octave_value_list>& idx) 69 const std::list<octave_value_list>& idx)
70 { 70 {
71 octave_value_list tmp = subsref (type, idx, 1); 71 octave_value_list tmp = subsref (type, idx, 1);
72 return tmp.length () > 0 ? tmp(0) : octave_value (); 72 return tmp.length () > 0 ? tmp(0) : octave_value ();
73 } 73 }
74 74
75 octave_value_list subsref (const std::string&, 75 octave_value_list subsref (const std::string&,
76 const std::list<octave_value_list>&, int); 76 const std::list<octave_value_list>&, int);
77 77
78 octave_value subsref (const std::string& type, 78 octave_value subsref (const std::string& type,
79 const std::list<octave_value_list>& idx, 79 const std::list<octave_value_list>& idx,
80 bool auto_add); 80 bool auto_add);
81 81
82 static octave_value numeric_conv (const octave_value& val, 82 static octave_value numeric_conv (const octave_value& val,
83 const std::string& type); 83 const std::string& type);
84 84
85 octave_value subsasgn (const std::string& type, 85 octave_value subsasgn (const std::string& type,
86 const std::list<octave_value_list>& idx, 86 const std::list<octave_value_list>& idx,
87 const octave_value& rhs); 87 const octave_value& rhs);
88 88
89 octave_value squeeze (void) const { return map.squeeze (); } 89 octave_value squeeze (void) const { return map.squeeze (); }
90 90
91 octave_value permute (const Array<int>& vec, bool inv = false) const 91 octave_value permute (const Array<int>& vec, bool inv = false) const
92 { return map.permute (vec, inv); } 92 { return map.permute (vec, inv); }
93 93
94 octave_value do_index_op (const octave_value_list& idx, 94 octave_value do_index_op (const octave_value_list& idx,
95 bool resize_ok = false); 95 bool resize_ok = false);
96 96
97 dim_vector dims (void) const { return map.dims (); } 97 dim_vector dims (void) const { return map.dims (); }
98 98
99 size_t byte_size (void) const; 99 size_t byte_size (void) const;
100 100
137 bool load_ascii (std::istream& is); 137 bool load_ascii (std::istream& is);
138 138
139 bool save_binary (std::ostream& os, bool& save_as_floats); 139 bool save_binary (std::ostream& os, bool& save_as_floats);
140 140
141 bool load_binary (std::istream& is, bool swap, 141 bool load_binary (std::istream& is, bool swap,
142 oct_mach_info::float_format fmt); 142 oct_mach_info::float_format fmt);
143 143
144 #if defined (HAVE_HDF5) 144 #if defined (HAVE_HDF5)
145 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); 145 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats);
146 146
147 bool load_hdf5 (hid_t loc_id, const char *name); 147 bool load_hdf5 (hid_t loc_id, const char *name);