diff src/ov-list.h @ 3219:30770ba4457a

[project @ 1998-11-13 03:44:31 by jwe]
author jwe
date Fri, 13 Nov 1998 03:44:36 +0000
parents 3ac3e8edc258
children d14c483b3c12
line wrap: on
line diff
--- a/src/ov-list.h	Thu Nov 12 16:44:12 1998 +0000
+++ b/src/ov-list.h	Fri Nov 13 03:44:36 1998 +0000
@@ -64,12 +64,6 @@
 
   octave_value *clone (void) { return new octave_list (*this); }
 
-  void *operator new (size_t size)
-    { return allocator.alloc (size); }
-
-  void operator delete (void *p, size_t size)
-    { allocator.free (p, size); }
-
   octave_value do_index_op (const octave_value_list& idx);
 
   void assign (const octave_value_list& idx, const octave_value& rhs);
@@ -90,28 +84,14 @@
 
   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:
 
   // The list of Octave values.
   octave_value_list lst;
 
-  // For custom memory management.
-  static octave_allocator allocator;
+  DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
 
-  // Type id of list objects, set by register_type().
-  static int t_id;
-
-  // Type name of list objects, defined in ov-list.cc.
-  static const string t_name;
+  DECLARE_OCTAVE_ALLOCATOR
 };
 
 #endif