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

[project @ 1998-11-13 03:44:31 by jwe]
author jwe
date Fri, 13 Nov 1998 03:44:36 +0000
parents bc61b0e8d60e
children d14c483b3c12
comparison
equal deleted inserted replaced
3218:2c91af0db179 3219:30770ba4457a
79 79
80 ~octave_range (void) { } 80 ~octave_range (void) { }
81 81
82 octave_value *clone (void) { return new octave_range (*this); } 82 octave_value *clone (void) { return new octave_range (*this); }
83 83
84 void *operator new (size_t size)
85 { return allocator.alloc (size); }
86
87 void operator delete (void *p, size_t size)
88 { allocator.free (p, size); }
89
90 type_conv_fcn numeric_conversion_function (void) const; 84 type_conv_fcn numeric_conversion_function (void) const;
91 85
92 octave_value *try_narrowing_conversion (void); 86 octave_value *try_narrowing_conversion (void);
93 87
94 octave_value do_index_op (const octave_value_list& idx); 88 octave_value do_index_op (const octave_value_list& idx);
150 144
151 void print_raw (ostream& os, bool pr_as_read_syntax = false) const; 145 void print_raw (ostream& os, bool pr_as_read_syntax = false) const;
152 146
153 bool print_name_tag (ostream& os, const string& name) const; 147 bool print_name_tag (ostream& os, const string& name) const;
154 148
155 int type_id (void) const { return t_id; }
156
157 string type_name (void) const { return t_name; }
158
159 static int static_type_id (void) { return t_id; }
160
161 static void register_type (void)
162 { t_id = octave_value_typeinfo::register_type (t_name); }
163
164 private: 149 private:
165 150
166 Range range; 151 Range range;
167 152
168 static octave_allocator allocator; 153 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
169 154
170 // Type id of range objects, set by register_type (). 155 DECLARE_OCTAVE_ALLOCATOR
171 static int t_id;
172
173 // Type name of scalar objects, defined in ov-range.cc.
174 static const string t_name;
175 }; 156 };
176 157
177 #endif 158 #endif
178 159
179 /* 160 /*