24 #if !defined (octave_ov_class_h)
25 #define octave_ov_class_h 1
54 parent_list (), obsolete_copies (0)
58 const std::list<std::string>& plist)
60 parent_list (plist), obsolete_copies (0)
68 parent_list (s.parent_list), obsolete_copies (0) { }
88 const std::list<octave_value_list>& idx)
95 const std::list<octave_value_list>& idx,
101 return subsref (
"(", std::list<octave_value_list> (1, idx), nargout);
105 const std::string&
type);
108 { map.assign (k, rhs); };
111 const std::list<octave_value_list>& idx,
115 const std::list<octave_value_list>& idx,
122 size_t byte_size (
void)
const;
134 size_t nparents (
void)
const {
return parent_list.size (); }
152 bool is_map (
void)
const {
return false; }
160 std::list<std::string> parent_class_name_list (
void)
const
161 {
return parent_list; }
172 void print (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
174 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
176 bool print_name_tag (std::ostream& os,
const std::string& name)
const;
178 void print_with_name (std::ostream& os,
const std::string& name,
179 bool print_padding =
true);
181 bool reconstruct_exemplar (
void);
183 static void clear_exemplar_map (
void);
185 bool reconstruct_parents (
void);
187 bool save_ascii (std::ostream& os);
189 bool load_ascii (std::istream& is);
191 bool save_binary (std::ostream& os,
bool& save_as_floats);
193 bool load_binary (std::istream& is,
bool swap,
196 #if defined (HAVE_HDF5)
197 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
199 bool load_hdf5 (hid_t loc_id,
const char *name);
202 mxArray *as_mxArray (
void)
const;
218 static void register_type (
void);
227 bool in_class_method (
void);
228 std::string get_current_method_class (
void);
231 const std::string&
type,
232 const std::list<octave_value_list>& idx,
249 : field_names (x.field_names),
250 parent_class_names (x.parent_class_names) { }
264 size_t nparents (
void)
const {
return parent_class_names.size (); }
268 std::list<std::string>
parents (
void)
const {
return parent_class_names; }
281 typedef std::map<std::string, exemplar_info>::iterator
283 typedef std::map<std::string, exemplar_info>::const_iterator