diff src/ov-base.h @ 9147:5579998f8acf

Update to OOP facilities. * scripts/general/isa.m: Fixed isa so that multiple layers of class hierarchy are reported correctly. * src/variables.cc: Make exist('obj') for objects report correctly. * src/ov-base.h: Added an assign method so ov-class is able to assign structure elements properly. * src/ov-class.h: Assign map elements. * src/ov-class.cc: - Made sure that there are no duplicate classes in parent tree. - Simplified search algorithm for parent classes. - Fixed subsasgn so cls = method(cls,value) works when properly when method is a parent-class method. - Added __isa_parent__ so isa works correctly.
author rtshort@bristlecone.phaselocked.com
date Wed, 22 Apr 2009 14:33:26 -0400
parents f914834836e7
children d8f9588c6ba1
line wrap: on
line diff
--- a/src/ov-base.h	Wed Apr 22 11:05:55 2009 +0200
+++ b/src/ov-base.h	Wed Apr 22 14:33:26 2009 -0400
@@ -171,6 +171,8 @@
   virtual octave_value_list
   do_multi_index_op (int nargout, const octave_value_list& idx);
 
+  virtual void assign (const std::string&, const octave_value&) { }
+
   virtual octave_value
   subsasgn (const std::string& type,
 	    const std::list<octave_value_list>& idx,