GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
interpreter-private.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2017-2025 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
38class bp_table;
39class cdef_manager;
40class child_list;
41class display_info;
42class dynamic_loader;
43class error_system;
44class event_manager;
45class gh_manager;
46class gtk_manager;
47class help_system;
48class input_system;
49class interpreter;
50class load_path;
52class output_system;
53class tree_evaluator;
54class type_info;
55
56extern OCTINTERP_API interpreter& __get_interpreter__ ();
57
58extern OCTINTERP_API dynamic_loader& __get_dynamic_loader__ ();
59
60extern OCTINTERP_API error_system& __get_error_system__ ();
61
62extern OCTINTERP_API gh_manager& __get_gh_manager__ ();
63
64extern OCTINTERP_API help_system& __get_help_system__ ();
65
66extern OCTINTERP_API input_system& __get_input_system__ ();
67
68extern OCTINTERP_API load_path& __get_load_path__ ();
69
70extern OCTINTERP_API load_save_system& __get_load_save_system__ ();
71
72extern OCTINTERP_API event_manager& __get_event_manager__ ();
73
74extern OCTINTERP_API output_system& __get_output_system__ ();
75
76extern OCTINTERP_API type_info& __get_type_info__ ();
77
78extern OCTINTERP_API symbol_table& __get_symbol_table__ ();
79
80extern OCTINTERP_API symbol_scope __get_current_scope__ ();
81
82extern OCTINTERP_API symbol_scope __require_current_scope__ ();
83
84extern OCTINTERP_API tree_evaluator& __get_evaluator__ ();
85
86extern OCTINTERP_API bp_table& __get_bp_table__ ();
87
88extern OCTINTERP_API child_list& __get_child_list__ ();
89
90extern OCTINTERP_API cdef_manager& __get_cdef_manager__ ();
91
92extern OCTINTERP_API display_info& __get_display_info__ ();
93
94extern 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
104OCTINTERP_API
106get_function_handle (interpreter& interp, const octave_value& arg,
107 const std::string& parameter_name);
108
109OCTINTERP_API
111get_function_handle (interpreter& interp, const octave_value& arg,
112 const std::list<std::string>& parameter_names
113 = std::list<std::string> ());
114
115OCTAVE_END_NAMESPACE(octave)
116
117#endif
Provides threadsafe access to octave.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
tree_evaluator & __get_evaluator__()
event_manager & __get_event_manager__()
child_list & __get_child_list__()
dynamic_loader & __get_dynamic_loader__()
cdef_manager & __get_cdef_manager__()
output_system & __get_output_system__()
error_system & __get_error_system__()
gh_manager & __get_gh_manager__()
display_info & __get_display_info__()
symbol_table & __get_symbol_table__()
symbol_scope __require_current_scope__()
symbol_scope __get_current_scope__()
help_system & __get_help_system__()
bp_table & __get_bp_table__()
type_info & __get_type_info__()
load_path & __get_load_path__()
input_system & __get_input_system__()
gtk_manager & __get_gtk_manager__()
interpreter & __get_interpreter__()
load_save_system & __get_load_save_system__()
octave_value get_function_handle(interpreter &interp, const octave_value &arg, const std::string &parameter_name)