diff src/ov-cell.h @ 3928:e8627dc4bdf2

[project @ 2002-05-03 19:56:01 by jwe]
author jwe
date Fri, 03 May 2002 19:56:02 +0000
parents 3dfae66ad67c
children f9ea3dcf58ee
line wrap: on
line diff
--- a/src/ov-cell.h	Fri May 03 02:13:42 2002 +0000
+++ b/src/ov-cell.h	Fri May 03 19:56:02 2002 +0000
@@ -38,7 +38,7 @@
 
 #include "Cell.h"
 #include "error.h"
-#include "ov-base.h"
+#include "ov-base-mat.h"
 #include "ov-typeinfo.h"
 
 class Octave_map;
@@ -49,45 +49,36 @@
 // Cells.
 
 class
-octave_cell : public octave_base_value
+octave_cell : public octave_base_matrix<Cell>
 {
 public:
 
   octave_cell (void)
-    : octave_base_value () { }
+    : octave_base_matrix<Cell> () { }
 
   octave_cell (const Cell& c)
-    : octave_base_value (), cell_val (c) { }
+    : octave_base_matrix<Cell> (c) { }
 
   octave_cell (const octave_cell& c)
-    : octave_base_value (), cell_val (c.cell_val) { }
+    : octave_base_matrix<Cell> (c) { }
 
   ~octave_cell (void) { }
 
-  octave_value *clone (void) { return new octave_cell (*this); }
-
-  octave_value do_index_op (const octave_value_list& idx);
-
   void assign (const octave_value_list& idx, const octave_value& rhs);
 
-  bool is_defined (void) const { return true; }
+  octave_value *clone (void) { return new octave_cell (*this); }
 
-  bool is_constant (void) const { return true; }
+#if 0
+  octave_value *try_narrowing_conversion (void);
+#endif
+
+  bool is_defined (void) const { return true; }
 
   bool is_cell (void) const { return true; }
 
-  Cell cell_value (void) const { return cell_val; }
-
-  void print (std::ostream& os, bool pr_as_read_syntax = false) const;
-
-  void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
-
-  bool print_name_tag (std::ostream& os, const std::string& name) const;
+  Cell cell_value (void) const { return matrix; }
 
 private:
-
-  Cell cell_val;
-
   DECLARE_OCTAVE_ALLOCATOR
 
   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA