Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -81,12 +81,6 @@ octave_value *clone (void) { return new octave_range (*this); } - void *operator new (size_t size) - { return allocator.alloc (size); } - - void operator delete (void *p, size_t size) - { allocator.free (p, size); } - type_conv_fcn numeric_conversion_function (void) const; octave_value *try_narrowing_conversion (void); @@ -152,26 +146,13 @@ bool print_name_tag (ostream& os, const string& name) const; - int type_id (void) const { return t_id; } - - string type_name (void) const { return t_name; } - - static int static_type_id (void) { return t_id; } - - static void register_type (void) - { t_id = octave_value_typeinfo::register_type (t_name); } - private: Range range; - static octave_allocator allocator; + DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA - // Type id of range objects, set by register_type (). - static int t_id; - - // Type name of scalar objects, defined in ov-range.cc. - static const string t_name; + DECLARE_OCTAVE_ALLOCATOR }; #endif