GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
interpreter-private.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2017-2024 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_interpreter_private_h)
27 #define octave_interpreter_private_h 1
28 
29 #include "octave-config.h"
30 
31 #include <list>
32 #include <string>
33 
34 #include "symtab.h"
35 
37 
38 class bp_table;
39 class cdef_manager;
40 class child_list;
41 class display_info;
42 class dynamic_loader;
43 class error_system;
44 class event_manager;
45 class gh_manager;
46 class gtk_manager;
47 class help_system;
48 class input_system;
49 class interpreter;
50 class load_path;
51 class load_save_system;
52 class output_system;
53 class tree_evaluator;
54 class type_info;
55 
56 extern OCTINTERP_API interpreter& __get_interpreter__ ();
57 
58 extern OCTINTERP_API dynamic_loader& __get_dynamic_loader__ ();
59 
60 extern OCTINTERP_API error_system& __get_error_system__ ();
61 
62 extern OCTINTERP_API gh_manager& __get_gh_manager__ ();
63 
64 extern OCTINTERP_API help_system& __get_help_system__ ();
65 
66 extern OCTINTERP_API input_system& __get_input_system__ ();
67 
68 extern OCTINTERP_API load_path& __get_load_path__ ();
69 
70 extern OCTINTERP_API load_save_system& __get_load_save_system__ ();
71 
72 extern OCTINTERP_API event_manager& __get_event_manager__ ();
73 
74 extern OCTINTERP_API output_system& __get_output_system__ ();
75 
76 extern OCTINTERP_API type_info& __get_type_info__ ();
77 
78 extern OCTINTERP_API symbol_table& __get_symbol_table__ ();
79 
80 extern OCTINTERP_API symbol_scope __get_current_scope__ ();
81 
82 extern OCTINTERP_API symbol_scope __require_current_scope__ ();
83 
84 extern OCTINTERP_API tree_evaluator& __get_evaluator__ ();
85 
86 extern OCTINTERP_API bp_table& __get_bp_table__ ();
87 
88 extern OCTINTERP_API child_list& __get_child_list__ ();
89 
90 extern OCTINTERP_API cdef_manager& __get_cdef_manager__ ();
91 
92 extern OCTINTERP_API display_info& __get_display_info__ ();
93 
94 extern OCTINTERP_API gtk_manager& __get_gtk_manager__ ();
95 
96 // Functions that could be methods in the interpreter class but maybe
97 // shouldn't be exposed as part of the public interface.
98 
99 // Convert octave_value object ARG to be a function handle object. It
100 // may be a function handle, inline function, the name of a function,
101 // or the text of an inline function that has the given argument names
102 // PARAMETER_NAMES. Use of the latter form is discouraged.
103 
104 OCTINTERP_API
106 get_function_handle (interpreter& interp, const octave_value& arg,
107  const std::string& parameter_name);
108 
109 OCTINTERP_API
111 get_function_handle (interpreter& interp, const octave_value& arg,
112  const std::list<std::string>& parameter_names
113  = std::list<std::string> ());
114 
115 OCTAVE_END_NAMESPACE(octave)
116 
117 #endif
Provides threadsafe access to octave.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
display_info & __get_display_info__()
event_manager & __get_event_manager__()
gh_manager & __get_gh_manager__()
bp_table & __get_bp_table__()
load_save_system & __get_load_save_system__()
gtk_manager & __get_gtk_manager__()
interpreter & __get_interpreter__()
output_system & __get_output_system__()
symbol_scope __require_current_scope__()
symbol_scope __get_current_scope__()
cdef_manager & __get_cdef_manager__()
input_system & __get_input_system__()
help_system & __get_help_system__()
load_path & __get_load_path__()
child_list & __get_child_list__()
type_info & __get_type_info__()
tree_evaluator & __get_evaluator__()
error_system & __get_error_system__()
symbol_table & __get_symbol_table__()
dynamic_loader & __get_dynamic_loader__()
octave_value get_function_handle(interpreter &interp, const octave_value &arg, const std::string &parameter_name)