Mercurial > hg > octave-lyh
comparison src/ov-class.cc @ 9240:f27a8c07f0b2
clear -classes and support.
* ov-class.h (octave_class::clear_exemplar_map): New function.
* ov-class.cc (octave_class::clear_exemplar_map): New function.
* symtab.h (symbol_record::clear_objects): New function
* symtab.h (symbol_record::do_clear_objects): New function
* variables.cc (do_matlab_compatible_clear, clear): Added classes option
author | Robert T. Short <octave@phaselockedsystems.com> |
---|---|
date | Thu, 21 May 2009 14:26:47 -0700 |
parents | 5f36c6c9be13 |
children | 67fc970dad7d c781fb52c1d7 |
comparison
equal
deleted
inserted
replaced
9239:f29db0a0aa85 | 9240:f27a8c07f0b2 |
---|---|
842 else | 842 else |
843 warning ("no constructor for class %s", c_name.c_str ()); | 843 warning ("no constructor for class %s", c_name.c_str ()); |
844 } | 844 } |
845 | 845 |
846 return retval; | 846 return retval; |
847 } | |
848 | |
849 void | |
850 octave_class::clear_exemplar_map (void) | |
851 { | |
852 exemplar_map.clear (); | |
847 } | 853 } |
848 | 854 |
849 // Load/save does not provide enough information to reconstruct the | 855 // Load/save does not provide enough information to reconstruct the |
850 // class inheritance structure. reconstruct_parents () attempts to | 856 // class inheritance structure. reconstruct_parents () attempts to |
851 // do so. If successful, a "true" value is returned. | 857 // do so. If successful, a "true" value is returned. |