Mercurial > octave-nkf
comparison src/ov-class.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | cda4aa780d58 |
children | d08901c05c1b |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
48 octave_class : public octave_base_value | 48 octave_class : public octave_base_value |
49 { | 49 { |
50 public: | 50 public: |
51 | 51 |
52 octave_class (void) | 52 octave_class (void) |
53 : octave_base_value (), map (), c_name (), | 53 : octave_base_value (), map (), c_name (), |
54 parent_list (), obsolete_copies (0) | 54 parent_list (), obsolete_copies (0) |
55 { } | 55 { } |
56 | 56 |
57 octave_class (const octave_map& m, const std::string& id) | 57 octave_class (const octave_map& m, const std::string& id) |
58 : octave_base_value (), map (m), c_name (id), | 58 : octave_base_value (), map (m), c_name (id), |
59 parent_list (), obsolete_copies (0) | 59 parent_list (), obsolete_copies (0) |
60 { } | 60 { } |
61 | 61 |
62 octave_class (const octave_class& s) | 62 octave_class (const octave_class& s) |
63 : octave_base_value (s), map (s.map), c_name (s.c_name), | 63 : octave_base_value (s), map (s.map), c_name (s.c_name), |
64 parent_list (s.parent_list), obsolete_copies (0) { } | 64 parent_list (s.parent_list), obsolete_copies (0) { } |
65 | 65 |
66 octave_class (const octave_map& m, const std::string& id, | 66 octave_class (const octave_map& m, const std::string& id, |
67 const octave_value_list& parents); | 67 const octave_value_list& parents); |
68 | 68 |
69 ~octave_class (void) { } | 69 ~octave_class (void) { } |
70 | 70 |
71 octave_base_value *clone (void) const { return new octave_class (*this); } | 71 octave_base_value *clone (void) const { return new octave_class (*this); } |
79 | 79 |
80 Cell dotref (const octave_value_list& idx); | 80 Cell dotref (const octave_value_list& idx); |
81 | 81 |
82 Matrix size (void); | 82 Matrix size (void); |
83 | 83 |
84 octave_idx_type numel (const octave_value_list&); | 84 octave_idx_type numel (const octave_value_list&); |
85 | 85 |
86 octave_value subsref (const std::string& type, | 86 octave_value subsref (const std::string& type, |
87 const std::list<octave_value_list>& idx) | 87 const std::list<octave_value_list>& idx) |
88 { | 88 { |
89 octave_value_list tmp = subsref (type, idx, 1); | 89 octave_value_list tmp = subsref (type, idx, 1); |
152 | 152 |
153 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; | 153 void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; |
154 | 154 |
155 bool print_name_tag (std::ostream& os, const std::string& name) const; | 155 bool print_name_tag (std::ostream& os, const std::string& name) const; |
156 | 156 |
157 void print_with_name (std::ostream& os, const std::string& name, | 157 void print_with_name (std::ostream& os, const std::string& name, |
158 bool print_padding = true); | 158 bool print_padding = true); |
159 | 159 |
160 bool reconstruct_exemplar (void); | 160 bool reconstruct_exemplar (void); |
161 | 161 |
162 static void clear_exemplar_map (void); | 162 static void clear_exemplar_map (void); |
167 | 167 |
168 bool load_ascii (std::istream& is); | 168 bool load_ascii (std::istream& is); |
169 | 169 |
170 bool save_binary (std::ostream& os, bool& save_as_floats); | 170 bool save_binary (std::ostream& os, bool& save_as_floats); |
171 | 171 |
172 bool load_binary (std::istream& is, bool swap, | 172 bool load_binary (std::istream& is, bool swap, |
173 oct_mach_info::float_format fmt); | 173 oct_mach_info::float_format fmt); |
174 | 174 |
175 #if defined (HAVE_HDF5) | 175 #if defined (HAVE_HDF5) |
176 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); | 176 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); |
177 | 177 |