diff libinterp/corefcn/interpreter-private.cc @ 23532:084245f9bd03

pass reference to evaluator to octave_function call methods * interpreter-private.h, interpreter-private.cc: (__get_evaluator__): New function. * interpreter.h, interpreter.cc (interpreter::m_evaluator): Now a reference instead of a pointer. Change all uses. (interpreter::get_evaluator): New function. (intrepreter::current_evaluator): Delete. Replace all uses with __get_evaluator__. * ov-fcn.h, ov-fcn.cc (octave_function::call): Pass reference to tree_evaluator. Change all functions in derived classes and all uses. (octave_function::subsref): Delete. * ov-usr-fcn.h, ov-usr-fcn.cc (octave_user_script::subsref): Delete. * pt-eval.h, pt-eval.cc (tree_evaluator::m_interpreter): Now a reference instead of a pointer. Change all uses. * ov-classdef.h, ov-classdef.cc (execute_ov): Delete. Replaces uses with calls to feval. (octave_classdef_superclass_ref::subsref): Delete.
author John W. Eaton <jwe@octave.org>
date Thu, 25 May 2017 13:13:17 -0400
parents 1bc8f1f50b54
children 14723784b9f2
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.cc	Thu May 25 08:10:34 2017 -0700
+++ b/libinterp/corefcn/interpreter-private.cc	Thu May 25 13:13:17 2017 -0400
@@ -49,4 +49,11 @@
 
     return interp.get_load_path ();
   }
+
+  tree_evaluator& __get_evaluator__ (const std::string& who)
+  {
+    interpreter& interp = __get_interpreter__ (who);
+
+    return interp.get_evaluator ();
+  }
 }