GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
input_system Class Reference

#include "input.h"

Collaboration diagram for input_system:

Public Member Functions

 input_system (interpreter &interp)
 
void add_input_event_hook (const hook_function &hook_fcn)
 
bool auto_repeat_debug_command (bool val)
 
octave_value auto_repeat_debug_command (const octave_value_list &args, int nargout)
 
bool auto_repeat_debug_command (void) const
 
void clear_input_event_hooks (void)
 
char completion_append_char (char c)
 
octave_value completion_append_char (const octave_value_list &args, int nargout)
 
char completion_append_char (void) const
 
std::string dir_encoding (const std::string &dir)
 
octave_value_list get_user_input (const octave_value_list &args, int nargout)
 
bool gud_mode (bool flag)
 
octave_value gud_mode (const octave_value_list &args, int nargout)
 
bool gud_mode (void) const
 
bool have_input_event_hooks (void) const
 
void initialize (bool line_editing)
 
std::string interactive_input (const std::string &s, bool &eof)
 
std::string last_debugging_command (const std::string &s)
 
std::string last_debugging_command (void) const
 
octave_value mfile_encoding (const octave_value_list &args, int nargout)
 
std::string mfile_encoding (const std::string &s)
 
std::string mfile_encoding (void) const
 
octave_value PS1 (const octave_value_list &args, int nargout)
 
std::string PS1 (const std::string &s)
 
std::string PS1 (void) const
 
octave_value PS2 (const octave_value_list &args, int nargout)
 
std::string PS2 (const std::string &s)
 
std::string PS2 (void) const
 
bool remove_input_event_hook (const std::string &hook_fcn_id)
 
void run_input_event_hooks (void)
 
void set_completion_append_char (char c)
 
void set_dir_encoding (const std::string &dir, std::string &enc)
 
void set_gud_mode (bool flag)
 
void set_mfile_encoding (const std::string &s)
 
void set_PS1 (const std::string &s)
 
void set_PS2 (const std::string &s)
 
bool yes_or_no (const std::string &prompt)
 

Private Member Functions

std::string gnu_readline (const std::string &s, bool &eof) const
 

Private Attributes

bool m_auto_repeat_debug_command
 
char m_completion_append_char
 
std::unordered_map< std::string, std::string > m_dir_encoding
 
bool m_gud_mode
 
bool m_initialized
 
hook_function_list m_input_event_hook_functions
 
interpreterm_interpreter
 
std::string m_last_debugging_command
 
std::string m_mfile_encoding
 
std::string m_PS1
 
std::string m_PS2
 

Detailed Description

Definition at line 59 of file input.h.

Constructor & Destructor Documentation

◆ input_system()

input_system::input_system ( interpreter interp)

Definition at line 404 of file input.cc.

Member Function Documentation

◆ add_input_event_hook()

void input_system::add_input_event_hook ( const hook_function hook_fcn)

◆ auto_repeat_debug_command() [1/3]

bool input_system::auto_repeat_debug_command ( bool  val)
inline

Definition at line 160 of file input.h.

References m_auto_repeat_debug_command.

◆ auto_repeat_debug_command() [2/3]

octave_value input_system::auto_repeat_debug_command ( const octave_value_list args,
int  nargout 
)

◆ auto_repeat_debug_command() [3/3]

bool input_system::auto_repeat_debug_command ( void  ) const
inline

Definition at line 155 of file input.h.

References m_auto_repeat_debug_command.

◆ clear_input_event_hooks()

void input_system::clear_input_event_hooks ( void  )

Referenced by interpreter::shutdown().

◆ completion_append_char() [1/3]

char input_system::completion_append_char ( char  c)
inline

Definition at line 113 of file input.h.

References m_completion_append_char.

◆ completion_append_char() [2/3]

octave_value input_system::completion_append_char ( const octave_value_list args,
int  nargout 
)

Referenced by generate_completion().

◆ completion_append_char() [3/3]

char input_system::completion_append_char ( void  ) const
inline

Definition at line 108 of file input.h.

References m_completion_append_char.

◆ dir_encoding()

std::string input_system::dir_encoding ( const std::string &  dir)

◆ get_user_input()

octave_value_list input_system::get_user_input ( const octave_value_list args,
int  nargout 
)

◆ gnu_readline()

std::string input_system::gnu_readline ( const std::string &  s,
bool &  eof 
) const
private

◆ gud_mode() [1/3]

bool input_system::gud_mode ( bool  flag)
inline

Definition at line 126 of file input.h.

References m_gud_mode.

◆ gud_mode() [2/3]

octave_value input_system::gud_mode ( const octave_value_list args,
int  nargout 
)

Referenced by debugger::repl().

◆ gud_mode() [3/3]

bool input_system::gud_mode ( void  ) const
inline

Definition at line 124 of file input.h.

References m_gud_mode.

◆ have_input_event_hooks()

bool input_system::have_input_event_hooks ( void  ) const

◆ initialize()

◆ interactive_input()

std::string input_system::interactive_input ( const std::string &  s,
bool &  eof 
)

◆ last_debugging_command() [1/2]

std::string input_system::last_debugging_command ( const std::string &  s)
inline

Definition at line 98 of file input.h.

References m_last_debugging_command.

◆ last_debugging_command() [2/2]

std::string input_system::last_debugging_command ( void  ) const
inline

Definition at line 93 of file input.h.

References m_last_debugging_command.

◆ mfile_encoding() [1/3]

octave_value input_system::mfile_encoding ( const octave_value_list args,
int  nargout 
)

Referenced by Ffopen().

◆ mfile_encoding() [2/3]

std::string input_system::mfile_encoding ( const std::string &  s)
inline

Definition at line 139 of file input.h.

References m_mfile_encoding.

◆ mfile_encoding() [3/3]

std::string input_system::mfile_encoding ( void  ) const
inline

Definition at line 137 of file input.h.

References m_mfile_encoding.

◆ PS1() [1/3]

◆ PS1() [2/3]

std::string input_system::PS1 ( const std::string &  s)
inline

Definition at line 71 of file input.h.

References m_PS1.

◆ PS1() [3/3]

std::string input_system::PS1 ( void  ) const
inline

Definition at line 69 of file input.h.

References m_PS1.

◆ PS2() [1/3]

◆ PS2() [2/3]

std::string input_system::PS2 ( const std::string &  s)
inline

Definition at line 84 of file input.h.

References m_PS2.

◆ PS2() [3/3]

std::string input_system::PS2 ( void  ) const
inline

Definition at line 82 of file input.h.

References m_PS2.

◆ remove_input_event_hook()

bool input_system::remove_input_event_hook ( const std::string &  hook_fcn_id)

◆ run_input_event_hooks()

void input_system::run_input_event_hooks ( void  )

◆ set_completion_append_char()

void input_system::set_completion_append_char ( char  c)
inline

Definition at line 120 of file input.h.

References m_completion_append_char.

◆ set_dir_encoding()

void input_system::set_dir_encoding ( const std::string &  dir,
std::string &  enc 
)

◆ set_gud_mode()

void input_system::set_gud_mode ( bool  flag)
inline

Definition at line 133 of file input.h.

References m_gud_mode.

◆ set_mfile_encoding()

void input_system::set_mfile_encoding ( const std::string &  s)
inline

Definition at line 146 of file input.h.

References m_mfile_encoding.

◆ set_PS1()

void input_system::set_PS1 ( const std::string &  s)
inline

Definition at line 78 of file input.h.

References m_PS1.

Referenced by debugger::repl().

◆ set_PS2()

void input_system::set_PS2 ( const std::string &  s)
inline

Definition at line 91 of file input.h.

References m_PS2.

◆ yes_or_no()

bool input_system::yes_or_no ( const std::string &  prompt)

Referenced by Frmdir().

Member Data Documentation

◆ m_auto_repeat_debug_command

bool input_system::m_auto_repeat_debug_command
private

Definition at line 208 of file input.h.

Referenced by auto_repeat_debug_command().

◆ m_completion_append_char

char input_system::m_completion_append_char
private

Definition at line 196 of file input.h.

Referenced by completion_append_char(), and set_completion_append_char().

◆ m_dir_encoding

std::unordered_map<std::string, std::string> input_system::m_dir_encoding
private

Definition at line 205 of file input.h.

◆ m_gud_mode

bool input_system::m_gud_mode
private

Definition at line 199 of file input.h.

Referenced by gud_mode(), and set_gud_mode().

◆ m_initialized

bool input_system::m_initialized
private

Definition at line 217 of file input.h.

Referenced by initialize().

◆ m_input_event_hook_functions

hook_function_list input_system::m_input_event_hook_functions
private

Definition at line 215 of file input.h.

◆ m_interpreter

interpreter& input_system::m_interpreter
private

Definition at line 186 of file input.h.

◆ m_last_debugging_command

std::string input_system::m_last_debugging_command
private

Definition at line 213 of file input.h.

Referenced by last_debugging_command().

◆ m_mfile_encoding

std::string input_system::m_mfile_encoding
private

Definition at line 202 of file input.h.

Referenced by mfile_encoding(), and set_mfile_encoding().

◆ m_PS1

std::string input_system::m_PS1
private

Definition at line 189 of file input.h.

Referenced by PS1(), and set_PS1().

◆ m_PS2

std::string input_system::m_PS2
private

Definition at line 192 of file input.h.

Referenced by PS2(), and set_PS2().


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