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

#include "input.h"

Collaboration diagram for octave::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
 
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_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
 
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 61 of file input.h.

Constructor & Destructor Documentation

◆ input_system()

octave::input_system::input_system ( interpreter interp)

Member Function Documentation

◆ add_input_event_hook()

void octave::input_system::add_input_event_hook ( const hook_function hook_fcn)

◆ auto_repeat_debug_command() [1/3]

bool octave::input_system::auto_repeat_debug_command ( bool  val)
inline

Definition at line 158 of file input.h.

◆ auto_repeat_debug_command() [2/3]

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

◆ auto_repeat_debug_command() [3/3]

bool octave::input_system::auto_repeat_debug_command ( void  ) const
inline

Definition at line 153 of file input.h.

◆ clear_input_event_hooks()

void octave::input_system::clear_input_event_hooks ( void  )

◆ completion_append_char() [1/3]

char octave::input_system::completion_append_char ( char  c)
inline

Definition at line 115 of file input.h.

◆ completion_append_char() [2/3]

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

◆ completion_append_char() [3/3]

char octave::input_system::completion_append_char ( void  ) const
inline

Definition at line 110 of file input.h.

◆ get_user_input()

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

◆ gnu_readline()

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

◆ gud_mode() [1/3]

bool octave::input_system::gud_mode ( bool  flag)
inline

Definition at line 128 of file input.h.

◆ gud_mode() [2/3]

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

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

◆ gud_mode() [3/3]

bool octave::input_system::gud_mode ( void  ) const
inline

Definition at line 126 of file input.h.

◆ have_input_event_hooks()

bool octave::input_system::have_input_event_hooks ( void  ) const

◆ initialize()

void octave::input_system::initialize ( bool  line_editing)

◆ interactive_input()

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

◆ last_debugging_command() [1/2]

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

Definition at line 100 of file input.h.

◆ last_debugging_command() [2/2]

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

Definition at line 95 of file input.h.

◆ mfile_encoding() [1/3]

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

Referenced by Ffopen().

◆ mfile_encoding() [2/3]

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

Definition at line 141 of file input.h.

◆ mfile_encoding() [3/3]

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

Definition at line 139 of file input.h.

◆ PS1() [1/3]

◆ PS1() [2/3]

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

Definition at line 73 of file input.h.

◆ PS1() [3/3]

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

Definition at line 71 of file input.h.

◆ PS2() [1/3]

◆ PS2() [2/3]

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

Definition at line 86 of file input.h.

◆ PS2() [3/3]

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

Definition at line 84 of file input.h.

◆ remove_input_event_hook()

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

◆ run_input_event_hooks()

void octave::input_system::run_input_event_hooks ( void  )

◆ set_completion_append_char()

void octave::input_system::set_completion_append_char ( char  c)
inline

Definition at line 122 of file input.h.

◆ set_gud_mode()

void octave::input_system::set_gud_mode ( bool  flag)
inline

Definition at line 135 of file input.h.

◆ set_mfile_encoding()

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

Definition at line 148 of file input.h.

◆ set_PS1()

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

Definition at line 80 of file input.h.

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

◆ set_PS2()

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

Definition at line 93 of file input.h.

◆ yes_or_no()

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

Referenced by Frmdir().

Member Data Documentation

◆ m_auto_repeat_debug_command

bool octave::input_system::m_auto_repeat_debug_command
private

Definition at line 203 of file input.h.

◆ m_completion_append_char

char octave::input_system::m_completion_append_char
private

Definition at line 194 of file input.h.

◆ m_gud_mode

bool octave::input_system::m_gud_mode
private

Definition at line 197 of file input.h.

◆ m_initialized

bool octave::input_system::m_initialized
private

Definition at line 212 of file input.h.

◆ m_input_event_hook_functions

hook_function_list octave::input_system::m_input_event_hook_functions
private

Definition at line 210 of file input.h.

◆ m_interpreter

interpreter& octave::input_system::m_interpreter
private

Definition at line 184 of file input.h.

◆ m_last_debugging_command

std::string octave::input_system::m_last_debugging_command
private

Definition at line 208 of file input.h.

◆ m_mfile_encoding

std::string octave::input_system::m_mfile_encoding
private

Definition at line 200 of file input.h.

◆ m_PS1

std::string octave::input_system::m_PS1
private

Definition at line 187 of file input.h.

◆ m_PS2

std::string octave::input_system::m_PS2
private

Definition at line 190 of file input.h.


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