GNU Octave 7.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-2022 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
36namespace octave
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__ (const std::string& who);
57
58 extern OCTINTERP_API dynamic_loader& __get_dynamic_loader__ (const std::string& who);
59
60 extern OCTINTERP_API error_system& __get_error_system__ (const std::string& who);
61
62 extern OCTINTERP_API gh_manager& __get_gh_manager__ (const std::string& who);
63
64 extern OCTINTERP_API help_system& __get_help_system__ (const std::string& who);
65
66 extern OCTINTERP_API input_system& __get_input_system__ (const std::string& who);
67
68 extern OCTINTERP_API load_path& __get_load_path__ (const std::string& who);
69
70 extern OCTINTERP_API load_save_system& __get_load_save_system__ (const std::string& who);
71
72 extern OCTINTERP_API event_manager& __get_event_manager__ (const std::string& who);
73
74 extern OCTINTERP_API output_system& __get_output_system__ (const std::string& who);
75
76 extern OCTINTERP_API type_info& __get_type_info__ (const std::string& who);
77
78 extern OCTINTERP_API symbol_table& __get_symbol_table__ (const std::string& who);
79
80 extern OCTINTERP_API symbol_scope __get_current_scope__ (const std::string& who);
81
82 extern OCTINTERP_API symbol_scope __require_current_scope__ (const std::string& who);
83
84 extern OCTINTERP_API tree_evaluator& __get_evaluator__ (const std::string& who);
85
86 extern OCTINTERP_API bp_table& __get_bp_table__ (const std::string& who);
87
88 extern OCTINTERP_API child_list& __get_child_list__ (const std::string& who);
89
90 extern OCTINTERP_API cdef_manager& __get_cdef_manager__ (const std::string& who);
91
92 extern OCTINTERP_API display_info& __get_display_info__ (const std::string& who);
93
94 extern OCTINTERP_API gtk_manager& __get_gtk_manager__ (const std::string& who);
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
116#endif
Provides threadsafe access to octave.
error_system & __get_error_system__(const std::string &who)
child_list & __get_child_list__(const std::string &who)
symbol_scope __require_current_scope__(const std::string &who)
cdef_manager & __get_cdef_manager__(const std::string &who)
dynamic_loader & __get_dynamic_loader__(const std::string &who)
event_manager & __get_event_manager__(const std::string &who)
output_system & __get_output_system__(const std::string &who)
input_system & __get_input_system__(const std::string &who)
octave_value get_function_handle(interpreter &interp, const octave_value &arg, const std::string &parameter_name)
interpreter & __get_interpreter__(const std::string &who)
type_info & __get_type_info__(const std::string &who)
tree_evaluator & __get_evaluator__(const std::string &who)
gh_manager & __get_gh_manager__(const std::string &who)
symbol_scope __get_current_scope__(const std::string &who)
help_system & __get_help_system__(const std::string &who)
load_save_system & __get_load_save_system__(const std::string &who)
display_info & __get_display_info__(const std::string &who)
bp_table & __get_bp_table__(const std::string &who)
load_path & __get_load_path__(const std::string &who)
gtk_manager & __get_gtk_manager__(const std::string &who)
symbol_table & __get_symbol_table__(const std::string &who)