diff libinterp/corefcn/interpreter-private.h @ 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.h	Thu May 25 08:10:34 2017 -0700
+++ b/libinterp/corefcn/interpreter-private.h	Thu May 25 13:13:17 2017 -0400
@@ -31,10 +31,13 @@
 {
   class interpreter;
   class load_path;
+  class tree_evaluator;
 
   extern interpreter& __get_interpreter__ (const std::string& who);
 
   extern load_path& __get_load_path__ (const std::string& who);
+
+  extern tree_evaluator& __get_evaluator__ (const std::string& who);
 }
 
 #endif