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