comparison src/ov-base.h @ 3219:30770ba4457a

[project @ 1998-11-13 03:44:31 by jwe]
author jwe
date Fri, 13 Nov 1998 03:44:36 +0000
parents bf61c443a366
children 2efa28a91e7a
comparison
equal deleted inserted replaced
3218:2c91af0db179 3219:30770ba4457a
82 82
83 octave_value do_struct_elt_index_op (const string& nm, bool silent); 83 octave_value do_struct_elt_index_op (const string& nm, bool silent);
84 84
85 octave_lvalue struct_elt_ref (octave_value *parent, const string& nm); 85 octave_lvalue struct_elt_ref (octave_value *parent, const string& nm);
86 86
87 int rows (void) const { reteurn -1; } 87 int rows (void) const { return -1; }
88 88
89 int columns (void) const { reteurn -1; } 89 int columns (void) const { return -1; }
90 90
91 int length (void) const { reteurn -1; } 91 int length (void) const { return -1; }
92 92
93 bool is_defined (void) const { return false; } 93 bool is_defined (void) const { return false; }
94 94
95 bool is_real_scalar (void) const { return false; } 95 bool is_real_scalar (void) const { return false; }
96 96
195 195
196 void print_raw (ostream& os, bool pr_as_read_syntax = false) const; 196 void print_raw (ostream& os, bool pr_as_read_syntax = false) const;
197 197
198 bool print_name_tag (ostream& os, const string& name) const; 198 bool print_name_tag (ostream& os, const string& name) const;
199 199
200 int type_id (void) const { return t_id; }
201
202 string type_name (void) const { return t_name; }
203
204 static int static_type_id (void) { return t_id; }
205
206 static void register_type (void)
207 { t_id = octave_value_typeinfo::register_type (t_name); }
208
209 private: 200 private:
210 201
211 // Type id of base value objects, set by register_type(). 202 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
212 static int t_id;
213
214 // Type name of base value objects, defined in ov-base.cc.
215 static const string t_name;
216 }; 203 };
217 204
218 #endif 205 #endif
219 206
220 /* 207 /*