diff src/ov.h @ 8456:c1709a45b45b

optimize structure components access
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 11 Jan 2009 14:27:52 +0100
parents f00578b495e9
children d254a21e0120
line wrap: on
line diff
--- a/src/ov.h
+++ b/src/ov.h
@@ -915,6 +915,8 @@
 
   const octave_base_value& get_rep (void) const { return *rep; }
 
+  bool is_copy_of (const octave_value &val) const { return rep == val.rep; }
+
   void print_info (std::ostream& os,
 			   const std::string& prefix = std::string ()) const;