GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::interpreter Class Reference

#include "interpreter.h"

Collaboration diagram for octave::interpreter:

Public Member Functions

 interpreter (application *app_context=nullptr)
 
 interpreter (const interpreter &)=delete
 
 ~interpreter (void)
 
void add_atexit_fcn (const std::string &fname)
 
void assign (const std::string &name, const octave_value &val=octave_value())
 
void assignin (const std::string &context, const std::string &varname, const octave_value &val=octave_value())
 
bool at_top_level (void) const
 
std::list< std::string > autoloaded_functions (void) const
 
void cancel_quit (bool flag)
 
int chdir (const std::string &dir)
 
void cleanup_tmp_files (void)
 
void clear_all (bool force=false)
 
void clear_function (const std::string &name)
 
void clear_function_pattern (const std::string &pat)
 
void clear_function_regexp (const std::string &pat)
 
void clear_functions (bool force=false)
 
void clear_global_variable (const std::string &name)
 
void clear_global_variable_pattern (const std::string &pattern)
 
void clear_global_variable_regexp (const std::string &pattern)
 
void clear_global_variables (void)
 
void clear_objects (void)
 
void clear_symbol (const std::string &name)
 
void clear_symbol_pattern (const std::string &pat)
 
void clear_symbol_regexp (const std::string &pat)
 
void clear_variable (const std::string &name)
 
void clear_variable_pattern (const std::string &pattern)
 
void clear_variable_regexp (const std::string &pattern)
 
void clear_variables (void)
 
octave_value_list eval (const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list eval (const std::string &try_code, int nargout)
 
octave_value_list eval_string (const octave_value &arg, bool silent, int &parse_status, int nargout)
 
octave_value eval_string (const std::string &eval_str, bool silent, int &parse_status)
 
octave_value_list eval_string (const std::string &eval_str, bool silent, int &parse_status, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, const std::string &catch_code, int nargout)
 
octave_value_list evalin (const std::string &context, const std::string &try_code, int nargout)
 
int execute (void)
 
bool executing_finish_script (void) const
 
octave_value_list feval (const char *name, const octave_value_list &args=octave_value_list(), int nargout=0)
 Evaluate an Octave function (built-in or interpreted) and return the list of result values. More...
 
octave_value_list feval (const octave_value &f_arg, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value_list feval (const octave_value_list &args, int nargout=0)
 Evaluate an Octave function (built-in or interpreted) and return the list of result values. More...
 
octave_value_list feval (const std::string &name, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value_list feval (octave_function *fcn, const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value find (const std::string &name)
 
cdef_managerget_cdef_manager (void)
 
child_listget_child_list (void)
 
symbol_scope get_current_scope (void) const
 
display_infoget_display_info (void)
 
dynamic_loaderget_dynamic_loader (void)
 
environmentget_environment (void)
 
error_systemget_error_system (void)
 
tree_evaluatorget_evaluator (void)
 
event_managerget_event_manager (void)
 
gh_managerget_gh_manager (void)
 
gtk_managerget_gtk_manager (void)
 
help_systemget_help_system (void)
 
history_systemget_history_system (void)
 
input_systemget_input_system (void)
 
load_pathget_load_path (void)
 
load_save_systemget_load_save_system (void)
 
output_systemget_output_system (void)
 
profilerget_profiler (void)
 
settingsget_settings (void)
 
stream_listget_stream_list (void)
 
symbol_tableget_symbol_table (void)
 
symbol_scope get_top_scope (void) const
 
type_infoget_type_info (void)
 
url_handle_managerget_url_handle_manager (void)
 
void global_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > global_variable_names (void)
 
octave_value global_varval (const std::string &name) const
 
void handle_exception (const execution_exception &e)
 
bool in_top_level_repl (void) const
 
void inhibit_startup_message (bool flag)
 
void initialize (void)
 
void initialize_history (bool read_history_file=false)
 
void initialize_load_path (bool set_initial_path=true)
 
bool initialized (void) const
 
void install_variable (const std::string &name, const octave_value &value, bool global)
 
void interactive (bool arg)
 
bool interactive (void) const
 
void intern_nargin (octave_idx_type nargs)
 
bool is_local_variable (const std::string &name) const
 
bool is_variable (const std::string &name) const
 
bool isglobal (const std::string &name) const
 
octave_value make_function_handle (const std::string &name)
 
void mark_for_deletion (const std::string &file)
 
std::string mfilename (const std::string &opt="") const
 
bool mislocked (bool skip_first=false) const
 
bool mislocked (const char *nm)
 
bool mislocked (const std::string &nm)
 
void mlock (bool skip_first=false) const
 
void munlock (bool skip_first=false) const
 
void munlock (const char *nm)
 
void munlock (const std::string &nm)
 
interpreteroperator= (const interpreter &)=delete
 
void quit (int exit_status, bool force=false, bool confirm=true)
 
void read_init_files (bool flag)
 
void read_site_files (bool flag)
 
void recover_from_exception (void)
 
bool remove_atexit_fcn (const std::string &fname)
 
symbol_scope require_current_scope (const std::string &who) const
 
void set_global_value (const std::string &name, const octave_value &value)
 
void shutdown (void)
 
void source_file (const std::string &file_name, const std::string &context="", bool verbose=false, bool require_file=true)
 
void top_level_assign (const std::string &name, const octave_value &val=octave_value())
 
std::list< std::string > top_level_variable_names (void)
 
octave_value top_level_varval (const std::string &name) const
 
std::list< std::string > user_function_names (void)
 
std::list< std::string > variable_names (void)
 
octave_value varval (const std::string &name) const
 
void verbose (bool flag)
 

Static Public Member Functions

static void add_atexit_function (const std::string &fname)
 
static bool remove_atexit_function (const std::string &fname)
 
static interpreterthe_interpreter (void)
 

Private Member Functions

void display_startup_message (void) const
 
void execute_atexit_fcns (void)
 
int execute_command_line_file (void)
 
int execute_eval_option_code (void)
 
void execute_pkg_add (const std::string &dir)
 
int execute_startup_files (void)
 
int main_loop (void)
 
void maximum_braindamage (void)
 

Private Attributes

applicationm_app_context
 
std::list< std::string > m_atexit_fcns
 
bool m_cancel_quit
 
cdef_manager m_cdef_manager
 
child_list m_child_list
 
display_info m_display_info
 
dynamic_loader m_dynamic_loader
 
environment m_environment
 
error_system m_error_system
 
tree_evaluator m_evaluator
 
event_manager m_event_manager
 
bool m_executing_atexit
 
bool m_executing_finish_script
 
gh_managerm_gh_manager
 
gtk_manager m_gtk_manager
 
help_system m_help_system
 
bool m_history_initialized
 
history_system m_history_system
 
bool m_in_top_level_repl
 
bool m_inhibit_startup_message
 
bool m_initialized
 
input_system m_input_system
 
bool m_interactive
 
load_path m_load_path
 
bool m_load_path_initialized
 
load_save_system m_load_save_system
 
output_system m_output_system
 
bool m_read_init_files
 
bool m_read_site_files
 
settings m_settings
 
stream_list m_stream_list
 
symbol_table m_symbol_table
 
temporary_file_list m_tmp_files
 
type_info m_type_info
 
url_handle_manager m_url_handle_manager
 
bool m_verbose
 

Static Private Attributes

static OCTAVE_THREAD_LOCAL interpreterinstance = nullptr
 

Detailed Description

Definition at line 112 of file interpreter.h.

Constructor & Destructor Documentation

◆ interpreter() [1/2]

octave::interpreter::interpreter ( application app_context = nullptr)

Definition at line 437 of file interpreter.cc.

References octave::cmdline_options::all_args(), octave::cmdline_options::command_line_path(), octave::cmdline_options::debug_jit(), octave::cmdline_options::doc_cache_file(), octave::cmdline_options::docstrings_file(), octave::tree_evaluator::echo(), octave::tree_evaluator::ECHO_ALL, octave::cmdline_options::echo_commands(), octave::tree_evaluator::ECHO_FUNCTIONS, octave::tree_evaluator::ECHO_SCRIPTS, octave::environment::exec_path(), octave::cmdline_options::exec_path(), Fdebug_jit(), Fjit_enable(), octave::cmdline_options::forced_interactive(), octave::cmdline_options::forced_line_editing(), octave::environment::image_path(), octave::cmdline_options::image_path(), octave::cmdline_options::info_file(), octave::cmdline_options::info_program(), octave::thread::init(), octave::input_system::initialize(), octave::display_info::initialize(), octave::initialize_error_handlers(), octave::initialize_version_info(), octave::initialize_xerbla_error_handler(), octave::install_signal_handlers(), instance, octave::application::intern_argv(), intern_nargin(), octave::application::is_octave_program(), octave::cmdline_options::jit_compiler(), octave::cmdline_options::line_editing(), m_app_context, m_display_info, m_environment, m_evaluator, m_gh_manager, m_input_system, m_interactive, m_load_path, maximum_braindamage(), octave::cmdline_options::no_window_system(), string_vector::numel(), octave_ieee_init(), octave_interpreter_ready, octave_isatty_wrapper(), octave_set_default_fpucw(), octave_unblock_signal_by_name(), octave::application::options(), octave::sys::env::putenv(), quit_allowed, octave::load_path::set_command_line_path(), octave::cmdline_options::texi_macros_file(), and octave::cmdline_options::traditional().

◆ interpreter() [2/2]

octave::interpreter::interpreter ( const interpreter )
delete

◆ ~interpreter()

octave::interpreter::~interpreter ( void  )

Definition at line 636 of file interpreter.cc.

References m_gh_manager.

Member Function Documentation

◆ add_atexit_fcn()

void octave::interpreter::add_atexit_fcn ( const std::string &  fname)

Definition at line 1881 of file interpreter.cc.

References m_atexit_fcns, and m_executing_atexit.

Referenced by add_atexit_function().

◆ add_atexit_function()

void octave::interpreter::add_atexit_function ( const std::string &  fname)
static

Definition at line 1907 of file interpreter.cc.

References octave::__get_interpreter__(), and add_atexit_fcn().

◆ assign()

void octave::interpreter::assign ( const std::string &  name,
const octave_value val = octave_value () 
)

Definition at line 1663 of file interpreter.cc.

References octave::tree_evaluator::assign(), m_evaluator, and name.

Referenced by octave::symbol_table::assign(), and mexPutVariable().

◆ assignin()

void octave::interpreter::assignin ( const std::string &  context,
const std::string &  varname,
const octave_value val = octave_value () 
)

◆ at_top_level()

bool octave::interpreter::at_top_level ( void  ) const

◆ autoloaded_functions()

std::list< std::string > octave::interpreter::autoloaded_functions ( void  ) const

◆ cancel_quit()

void octave::interpreter::cancel_quit ( bool  flag)
inline

Definition at line 457 of file interpreter.h.

◆ chdir()

◆ cleanup_tmp_files()

void octave::interpreter::cleanup_tmp_files ( void  )

Definition at line 1834 of file interpreter.cc.

References octave::temporary_file_list::cleanup(), and m_tmp_files.

Referenced by cleanup_tmp_files().

◆ clear_all()

void octave::interpreter::clear_all ( bool  force = false)

◆ clear_function()

void octave::interpreter::clear_function ( const std::string &  name)

Definition at line 1753 of file interpreter.cc.

References octave::symbol_table::clear_function(), m_symbol_table, and name.

Referenced by do_clear_functions().

◆ clear_function_pattern()

void octave::interpreter::clear_function_pattern ( const std::string &  pat)

Definition at line 1763 of file interpreter.cc.

References octave::symbol_table::clear_function_pattern(), and m_symbol_table.

Referenced by do_clear_functions().

◆ clear_function_regexp()

void octave::interpreter::clear_function_regexp ( const std::string &  pat)

◆ clear_functions()

void octave::interpreter::clear_functions ( bool  force = false)

Definition at line 1748 of file interpreter.cc.

References octave::symbol_table::clear_functions(), and m_symbol_table.

Referenced by do_clear_functions().

◆ clear_global_variable()

void octave::interpreter::clear_global_variable ( const std::string &  name)

◆ clear_global_variable_pattern()

void octave::interpreter::clear_global_variable_pattern ( const std::string &  pattern)

◆ clear_global_variable_regexp()

void octave::interpreter::clear_global_variable_regexp ( const std::string &  pattern)

◆ clear_global_variables()

void octave::interpreter::clear_global_variables ( void  )

◆ clear_objects()

void octave::interpreter::clear_objects ( void  )

Definition at line 1703 of file interpreter.cc.

References octave::tree_evaluator::clear_objects(), and m_evaluator.

Referenced by do_matlab_compatible_clear().

◆ clear_symbol()

void octave::interpreter::clear_symbol ( const std::string &  name)

◆ clear_symbol_pattern()

void octave::interpreter::clear_symbol_pattern ( const std::string &  pat)

◆ clear_symbol_regexp()

void octave::interpreter::clear_symbol_regexp ( const std::string &  pat)

Definition at line 1778 of file interpreter.cc.

References octave::tree_evaluator::clear_symbol_regexp(), and m_evaluator.

◆ clear_variable()

void octave::interpreter::clear_variable ( const std::string &  name)

Definition at line 1708 of file interpreter.cc.

References octave::tree_evaluator::clear_variable(), m_evaluator, and name.

Referenced by do_clear_globals(), and do_clear_variables().

◆ clear_variable_pattern()

void octave::interpreter::clear_variable_pattern ( const std::string &  pattern)

◆ clear_variable_regexp()

void octave::interpreter::clear_variable_regexp ( const std::string &  pattern)

Definition at line 1718 of file interpreter.cc.

References octave::tree_evaluator::clear_variable_regexp(), and m_evaluator.

Referenced by do_clear_variables().

◆ clear_variables()

void octave::interpreter::clear_variables ( void  )

◆ display_startup_message()

void octave::interpreter::display_startup_message ( void  ) const
private

◆ eval() [1/2]

octave_value_list octave::interpreter::eval ( const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

Definition at line 1485 of file interpreter.cc.

References octave::tree_evaluator::eval(), and m_evaluator.

◆ eval() [2/2]

octave_value_list octave::interpreter::eval ( const std::string &  try_code,
int  nargout 
)

Definition at line 1479 of file interpreter.cc.

References octave::tree_evaluator::eval(), and m_evaluator.

◆ eval_string() [1/3]

octave_value_list octave::interpreter::eval_string ( const octave_value arg,
bool  silent,
int &  parse_status,
int  nargout 
)

Definition at line 1472 of file interpreter.cc.

References octave::tree_evaluator::eval_string(), and m_evaluator.

◆ eval_string() [2/3]

octave_value octave::interpreter::eval_string ( const std::string &  eval_str,
bool  silent,
int &  parse_status 
)

Definition at line 1466 of file interpreter.cc.

References octave::tree_evaluator::eval_string(), and m_evaluator.

◆ eval_string() [3/3]

◆ evalin() [1/2]

octave_value_list octave::interpreter::evalin ( const std::string &  context,
const std::string &  try_code,
const std::string &  catch_code,
int  nargout 
)

Definition at line 1499 of file interpreter.cc.

References octave::context, octave::tree_evaluator::evalin(), and m_evaluator.

◆ evalin() [2/2]

octave_value_list octave::interpreter::evalin ( const std::string &  context,
const std::string &  try_code,
int  nargout 
)

Definition at line 1492 of file interpreter.cc.

References octave::context, octave::tree_evaluator::evalin(), and m_evaluator.

Referenced by quit().

◆ execute()

◆ execute_atexit_fcns()

void octave::interpreter::execute_atexit_fcns ( void  )
private

Definition at line 934 of file interpreter.cc.

References feval(), octave::flush_stdout(), m_atexit_fcns, m_executing_atexit, and OCTAVE_SAFE_CALL.

Referenced by shutdown().

◆ execute_command_line_file()

◆ execute_eval_option_code()

int octave::interpreter::execute_eval_option_code ( void  )
private

◆ execute_pkg_add()

void octave::interpreter::execute_pkg_add ( const std::string &  dir)
private

◆ execute_startup_files()

◆ executing_finish_script()

bool octave::interpreter::executing_finish_script ( void  ) const
inline

Definition at line 459 of file interpreter.h.

◆ feval() [1/5]

octave_value_list octave::interpreter::feval ( const char *  name,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

Evaluate an Octave function (built-in or interpreted) and return the list of result values.

Parameters
nameThe name of the function to call.
argsThe arguments to the function.
nargoutThe number of output arguments expected.
Returns
A list of output values. The length of the list is not necessarily the same as nargout.

Definition at line 1516 of file interpreter.cc.

References name.

Referenced by octave::internal_fcn_handle::call(), octave::simple_fcn_handle::call(), octave::scoped_fcn_handle::call(), octave::class_simple_fcn_handle::call(), QtHandles::Canvas::canvasMouseReleaseEvent(), octave::tree_evaluator::evaluate_end_expression(), octave_inline_fcn::execute(), execute_atexit_fcns(), octave::feval(), feval(), octave::get_function_handle(), octave::main_window::handle_open_any_request(), load_inline_fcn(), octave::set_path_model::save(), and shutdown().

◆ feval() [2/5]

◆ feval() [3/5]

octave_value_list octave::interpreter::feval ( const octave_value_list args,
int  nargout = 0 
)

Evaluate an Octave function (built-in or interpreted) and return the list of result values.

Parameters
argsThe first element of args is the function to call. It may be the name of the function as a string, a function handle, or an inline function. The remaining arguments are passed to the function.
nargoutThe number of output arguments expected.
Returns
A list of output values. The length of the list is not necessarily the same as nargout.

Definition at line 1602 of file interpreter.cc.

References error(), feval(), octave_value_list::length(), and octave_value_list::slice().

◆ feval() [4/5]

octave_value_list octave::interpreter::feval ( const std::string &  name,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

◆ feval() [5/5]

octave_value_list octave::interpreter::feval ( octave_function fcn,
const octave_value_list args = octave_value_list (),
int  nargout = 0 
)

Definition at line 1537 of file interpreter.cc.

References octave_function::call(), and m_evaluator.

◆ find()

octave_value octave::interpreter::find ( const std::string &  name)

◆ get_cdef_manager()

cdef_manager& octave::interpreter::get_cdef_manager ( void  )
inline

◆ get_child_list()

child_list& octave::interpreter::get_child_list ( void  )
inline

◆ get_current_scope()

◆ get_display_info()

display_info& octave::interpreter::get_display_info ( void  )
inline

Definition at line 198 of file interpreter.h.

Referenced by octave::__get_display_info__().

◆ get_dynamic_loader()

dynamic_loader& octave::interpreter::get_dynamic_loader ( void  )
inline

Definition at line 238 of file interpreter.h.

Referenced by octave::__get_dynamic_loader__(), and octave::load_fcn_from_file().

◆ get_environment()

environment& octave::interpreter::get_environment ( void  )
inline

Definition at line 203 of file interpreter.h.

Referenced by octave::history_system::do_edit_history().

◆ get_error_system()

◆ get_evaluator()

◆ get_event_manager()

◆ get_gh_manager()

gh_manager& octave::interpreter::get_gh_manager ( void  )
inline

Definition at line 295 of file interpreter.h.

Referenced by QtHandles::Object::Object(), octave::__get_gh_manager__(), QtHandles::ButtonGroup::buttonClicked(), QtHandles::ButtonGroup::buttonToggled(), QtHandles::Container::canvas(), QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasKeyReleaseEvent(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasMouseReleaseEvent(), QtHandles::Canvas::canvasPaintEvent(), QtHandles::Canvas::canvasWheelEvent(), QtHandles::Table::checkBoxClicked(), QtHandles::Table::comboBoxCurrentIndexChanged(), QtHandles::qt_graphics_toolkit::create_object(), QtHandles::GLCanvas::do_getPixels(), QtHandles::GLCanvas::do_print(), QtHandles::GLCanvas::draw(), QtHandles::BaseControl::eventFilter(), QtHandles::ButtonGroup::eventFilter(), QtHandles::Panel::eventFilter(), QtHandles::Table::eventFilter(), QtHandles::Figure::eventNotifyAfter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::ContextMenu::executeAt(), QtHandles::Figure::figureWindowShown(), QtHandles::Figure::fileName(), QtHandles::qt_graphics_toolkit::finalize(), QtHandles::qt_graphics_toolkit::gh_callback_event(), QtHandles::qt_graphics_toolkit::gh_set_event(), octave::graphics_init(), QtHandles::qt_graphics_toolkit::initialize(), QtHandles::Table::itemChanged(), QtHandles::Figure::mouseMode(), QtHandles::Object::object(), QtHandles::Object::parentObject(), QtHandles::Container::resizeEvent(), QtHandles::Figure::screenChanged(), QtHandles::Canvas::select_object(), QtHandles::Figure::setFileName(), QtHandles::Object::slotFinalize(), QtHandles::Figure::slotGetPixels(), QtHandles::Object::slotPrint(), QtHandles::Object::slotRedraw(), QtHandles::Object::slotShow(), QtHandles::Object::slotUpdate(), QtHandles::ButtonControl::toggled(), QtHandles::ButtonControl::update(), QtHandles::ButtonGroup::update(), QtHandles::Figure::update(), QtHandles::Canvas::updateCurrentPoint(), QtHandles::Figure::updateFigureHeight(), and QtHandles::SliderControl::valueChanged().

◆ get_gtk_manager()

gtk_manager& octave::interpreter::get_gtk_manager ( void  )
inline

Definition at line 285 of file interpreter.h.

Referenced by octave::__get_gtk_manager__(), and octave::graphics_init().

◆ get_help_system()

help_system& octave::interpreter::get_help_system ( void  )
inline

Definition at line 218 of file interpreter.h.

Referenced by octave::__get_help_system__().

◆ get_history_system()

history_system& octave::interpreter::get_history_system ( void  )
inline

◆ get_input_system()

◆ get_load_path()

◆ get_load_save_system()

load_save_system& octave::interpreter::get_load_save_system ( void  )
inline

Definition at line 248 of file interpreter.h.

Referenced by octave::__get_load_save_system__().

◆ get_output_system()

output_system& octave::interpreter::get_output_system ( void  )
inline

◆ get_profiler()

profiler & octave::interpreter::get_profiler ( void  )

Definition at line 1367 of file interpreter.cc.

References octave::tree_evaluator::get_profiler(), and m_evaluator.

◆ get_settings()

settings& octave::interpreter::get_settings ( void  )
inline

◆ get_stream_list()

stream_list & octave::interpreter::get_stream_list ( void  )

Definition at line 1334 of file interpreter.cc.

References m_stream_list.

Referenced by printf_internal(), puts_internal(), scanf_internal(), and textscan_internal().

◆ get_symbol_table()

◆ get_top_scope()

symbol_scope octave::interpreter::get_top_scope ( void  ) const

Definition at line 1345 of file interpreter.cc.

References octave::tree_evaluator::get_top_scope(), and m_evaluator.

◆ get_type_info()

◆ get_url_handle_manager()

url_handle_manager & octave::interpreter::get_url_handle_manager ( void  )

Definition at line 1339 of file interpreter.cc.

References m_url_handle_manager.

◆ global_assign()

void octave::interpreter::global_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

◆ global_variable_names()

std::list< std::string > octave::interpreter::global_variable_names ( void  )

◆ global_varval()

octave_value octave::interpreter::global_varval ( const std::string &  name) const

◆ handle_exception()

◆ in_top_level_repl()

bool octave::interpreter::in_top_level_repl ( void  ) const
inline

Definition at line 188 of file interpreter.h.

Referenced by octave::debugger::quitting_debugger().

◆ inhibit_startup_message()

void octave::interpreter::inhibit_startup_message ( bool  flag)
inline

Definition at line 183 of file interpreter.h.

Referenced by display_startup_message(), and execute_startup_files().

◆ initialize()

◆ initialize_history()

void octave::interpreter::initialize_history ( bool  read_history_file = false)

◆ initialize_load_path()

◆ initialized()

bool octave::interpreter::initialized ( void  ) const
inline

◆ install_variable()

void octave::interpreter::install_variable ( const std::string &  name,
const octave_value value,
bool  global 
)

◆ interactive() [1/2]

void octave::interpreter::interactive ( bool  arg)
inline

Definition at line 163 of file interpreter.h.

◆ interactive() [2/2]

◆ intern_nargin()

void octave::interpreter::intern_nargin ( octave_idx_type  nargs)

◆ is_local_variable()

bool octave::interpreter::is_local_variable ( const std::string &  name) const

◆ is_variable()

bool octave::interpreter::is_variable ( const std::string &  name) const

◆ isglobal()

bool octave::interpreter::isglobal ( const std::string &  name) const

Definition at line 1688 of file interpreter.cc.

References octave::tree_evaluator::is_global(), m_evaluator, and name.

◆ main_loop()

◆ make_function_handle()

octave_value octave::interpreter::make_function_handle ( const std::string &  name)

Definition at line 1615 of file interpreter.cc.

References m_evaluator, octave::tree_evaluator::make_fcn_handle(), and name.

◆ mark_for_deletion()

void octave::interpreter::mark_for_deletion ( const std::string &  file)

Definition at line 1829 of file interpreter.cc.

References octave::temporary_file_list::insert(), and m_tmp_files.

Referenced by mark_for_deletion().

◆ maximum_braindamage()

◆ mfilename()

std::string octave::interpreter::mfilename ( const std::string &  opt = "") const

Definition at line 1454 of file interpreter.cc.

References m_evaluator, and octave::tree_evaluator::mfilename().

◆ mislocked() [1/3]

bool octave::interpreter::mislocked ( bool  skip_first = false) const

◆ mislocked() [2/3]

bool octave::interpreter::mislocked ( const char *  nm)

Definition at line 1429 of file interpreter.cc.

References error(), and mislocked().

◆ mislocked() [3/3]

bool octave::interpreter::mislocked ( const std::string &  nm)

◆ mlock()

void octave::interpreter::mlock ( bool  skip_first = false) const

Definition at line 1393 of file interpreter.cc.

References m_evaluator, and octave::tree_evaluator::mlock().

Referenced by F__player_audioplayer__(), and mexLock().

◆ munlock() [1/3]

void octave::interpreter::munlock ( bool  skip_first = false) const

◆ munlock() [2/3]

void octave::interpreter::munlock ( const char *  nm)

Definition at line 1408 of file interpreter.cc.

References error(), and munlock().

◆ munlock() [3/3]

void octave::interpreter::munlock ( const std::string &  nm)

◆ operator=()

interpreter& octave::interpreter::operator= ( const interpreter )
delete

◆ quit()

void octave::interpreter::quit ( int  exit_status,
bool  force = false,
bool  confirm = true 
)

◆ read_init_files()

void octave::interpreter::read_init_files ( bool  flag)
inline

Definition at line 173 of file interpreter.h.

Referenced by execute_startup_files().

◆ read_site_files()

void octave::interpreter::read_site_files ( bool  flag)
inline

Definition at line 168 of file interpreter.h.

Referenced by execute_startup_files().

◆ recover_from_exception()

◆ remove_atexit_fcn()

bool octave::interpreter::remove_atexit_fcn ( const std::string &  fname)

Definition at line 1889 of file interpreter.cc.

References m_atexit_fcns.

Referenced by remove_atexit_function().

◆ remove_atexit_function()

bool octave::interpreter::remove_atexit_function ( const std::string &  fname)
static

Definition at line 1915 of file interpreter.cc.

References octave::__get_interpreter__(), and remove_atexit_fcn().

◆ require_current_scope()

symbol_scope octave::interpreter::require_current_scope ( const std::string &  who) const

Definition at line 1357 of file interpreter.cc.

References error(), and get_current_scope().

◆ set_global_value()

void octave::interpreter::set_global_value ( const std::string &  name,
const octave_value value 
)

◆ shutdown()

◆ source_file()

void octave::interpreter::source_file ( const std::string &  file_name,
const std::string &  context = "",
bool  verbose = false,
bool  require_file = true 
)

◆ the_interpreter()

static interpreter* octave::interpreter::the_interpreter ( void  )
inlinestatic

Definition at line 474 of file interpreter.h.

Referenced by octave::__get_interpreter__().

◆ top_level_assign()

void octave::interpreter::top_level_assign ( const std::string &  name,
const octave_value val = octave_value () 
)

◆ top_level_variable_names()

std::list< std::string > octave::interpreter::top_level_variable_names ( void  )

◆ top_level_varval()

octave_value octave::interpreter::top_level_varval ( const std::string &  name) const

◆ user_function_names()

std::list< std::string > octave::interpreter::user_function_names ( void  )

Definition at line 1798 of file interpreter.cc.

References m_symbol_table, and octave::symbol_table::user_function_names().

Referenced by do_clear_functions().

◆ variable_names()

std::list< std::string > octave::interpreter::variable_names ( void  )

◆ varval()

◆ verbose()

void octave::interpreter::verbose ( bool  flag)
inline

Definition at line 178 of file interpreter.h.

Referenced by execute_command_line_file(), execute_startup_files(), and source_file().

Member Data Documentation

◆ instance

OCTAVE_THREAD_LOCAL interpreter * octave::interpreter::instance = nullptr
staticprivate

Definition at line 486 of file interpreter.h.

Referenced by interpreter().

◆ m_app_context

◆ m_atexit_fcns

std::list<std::string> octave::interpreter::m_atexit_fcns
private

Definition at line 504 of file interpreter.h.

Referenced by add_atexit_fcn(), execute_atexit_fcns(), and remove_atexit_fcn().

◆ m_cancel_quit

bool octave::interpreter::m_cancel_quit
private

Definition at line 566 of file interpreter.h.

Referenced by quit().

◆ m_cdef_manager

cdef_manager octave::interpreter::m_cdef_manager
private

Definition at line 540 of file interpreter.h.

◆ m_child_list

child_list octave::interpreter::m_child_list
private

Definition at line 536 of file interpreter.h.

◆ m_display_info

display_info octave::interpreter::m_display_info
private

Definition at line 506 of file interpreter.h.

Referenced by interpreter().

◆ m_dynamic_loader

dynamic_loader octave::interpreter::m_dynamic_loader
private

Definition at line 522 of file interpreter.h.

◆ m_environment

environment octave::interpreter::m_environment
private

Definition at line 508 of file interpreter.h.

Referenced by interpreter().

◆ m_error_system

error_system octave::interpreter::m_error_system
private

Definition at line 512 of file interpreter.h.

Referenced by handle_exception(), main_loop(), and maximum_braindamage().

◆ m_evaluator

◆ m_event_manager

event_manager octave::interpreter::m_event_manager
private

Definition at line 544 of file interpreter.h.

Referenced by chdir(), quit(), and shutdown().

◆ m_executing_atexit

bool octave::interpreter::m_executing_atexit
private

Definition at line 570 of file interpreter.h.

Referenced by add_atexit_fcn(), and execute_atexit_fcns().

◆ m_executing_finish_script

bool octave::interpreter::m_executing_finish_script
private

Definition at line 568 of file interpreter.h.

Referenced by quit().

◆ m_gh_manager

gh_manager* octave::interpreter::m_gh_manager
private

Definition at line 546 of file interpreter.h.

Referenced by interpreter(), and ~interpreter().

◆ m_gtk_manager

gtk_manager octave::interpreter::m_gtk_manager
private

Definition at line 542 of file interpreter.h.

Referenced by shutdown().

◆ m_help_system

help_system octave::interpreter::m_help_system
private

Definition at line 514 of file interpreter.h.

◆ m_history_initialized

bool octave::interpreter::m_history_initialized
private

Definition at line 561 of file interpreter.h.

Referenced by initialize_history().

◆ m_history_system

history_system octave::interpreter::m_history_system
private

Definition at line 520 of file interpreter.h.

Referenced by initialize_history(), maximum_braindamage(), and shutdown().

◆ m_in_top_level_repl

bool octave::interpreter::m_in_top_level_repl
private

Definition at line 564 of file interpreter.h.

Referenced by main_loop().

◆ m_inhibit_startup_message

bool octave::interpreter::m_inhibit_startup_message
private

Definition at line 557 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_initialized

bool octave::interpreter::m_initialized
private

Definition at line 572 of file interpreter.h.

Referenced by initialize().

◆ m_input_system

input_system octave::interpreter::m_input_system
private

Definition at line 516 of file interpreter.h.

Referenced by interpreter(), maximum_braindamage(), and shutdown().

◆ m_interactive

bool octave::interpreter::m_interactive
private

◆ m_load_path

load_path octave::interpreter::m_load_path
private

Definition at line 524 of file interpreter.h.

Referenced by interpreter(), chdir(), execute_pkg_add(), and initialize_load_path().

◆ m_load_path_initialized

bool octave::interpreter::m_load_path_initialized
private

Definition at line 559 of file interpreter.h.

Referenced by initialize_load_path().

◆ m_load_save_system

load_save_system octave::interpreter::m_load_save_system
private

Definition at line 526 of file interpreter.h.

Referenced by maximum_braindamage().

◆ m_output_system

output_system octave::interpreter::m_output_system
private

Definition at line 518 of file interpreter.h.

◆ m_read_init_files

bool octave::interpreter::m_read_init_files
private

Definition at line 553 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_read_site_files

bool octave::interpreter::m_read_site_files
private

Definition at line 551 of file interpreter.h.

Referenced by execute_startup_files().

◆ m_settings

settings octave::interpreter::m_settings
private

Definition at line 510 of file interpreter.h.

◆ m_stream_list

stream_list octave::interpreter::m_stream_list
private

Definition at line 534 of file interpreter.h.

Referenced by get_stream_list().

◆ m_symbol_table

symbol_table octave::interpreter::m_symbol_table
private

◆ m_tmp_files

temporary_file_list octave::interpreter::m_tmp_files
private

Definition at line 502 of file interpreter.h.

Referenced by cleanup_tmp_files(), and mark_for_deletion().

◆ m_type_info

type_info octave::interpreter::m_type_info
private

Definition at line 528 of file interpreter.h.

◆ m_url_handle_manager

url_handle_manager octave::interpreter::m_url_handle_manager
private

Definition at line 538 of file interpreter.h.

Referenced by get_url_handle_manager().

◆ m_verbose

bool octave::interpreter::m_verbose
private

Definition at line 555 of file interpreter.h.

Referenced by execute_startup_files().


The documentation for this class was generated from the following files: