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

#include "input.h"

Collaboration diagram for octave::base_reader:

Public Member Functions

 base_reader (const base_reader &x)
 
 base_reader (interpreter &interp)
 
virtual ~base_reader (void)=default
 
virtual std::string get_input (const std::string &prompt, bool &eof)=0
 
virtual bool input_from_eval_string (void) const
 
virtual bool input_from_file (void) const
 
virtual bool input_from_terminal (void) const
 
virtual std::string input_source (void) const
 
std::string octave_gets (const std::string &prompt, bool &eof)
 

Protected Attributes

interpreterm_interpreter
 

Static Private Attributes

static const std::string s_in_src
 

Friends

class input_reader
 

Detailed Description

Definition at line 217 of file input.h.

Constructor & Destructor Documentation

◆ base_reader() [1/2]

octave::base_reader::base_reader ( interpreter interp)
inline

Definition at line 223 of file input.h.

◆ base_reader() [2/2]

octave::base_reader::base_reader ( const base_reader x)
inline

Definition at line 227 of file input.h.

◆ ~base_reader()

virtual octave::base_reader::~base_reader ( void  )
virtualdefault

Member Function Documentation

◆ get_input()

virtual std::string octave::base_reader::get_input ( const std::string &  prompt,
bool &  eof 
)
pure virtual

◆ input_from_eval_string()

virtual bool octave::base_reader::input_from_eval_string ( void  ) const
inlinevirtual

Definition at line 243 of file input.h.

◆ input_from_file()

virtual bool octave::base_reader::input_from_file ( void  ) const
inlinevirtual

Definition at line 241 of file input.h.

◆ input_from_terminal()

virtual bool octave::base_reader::input_from_terminal ( void  ) const
inlinevirtual

Definition at line 239 of file input.h.

◆ input_source()

virtual std::string octave::base_reader::input_source ( void  ) const
inlinevirtual

Definition at line 235 of file input.h.

◆ octave_gets()

std::string octave::base_reader::octave_gets ( const std::string &  prompt,
bool &  eof 
)

Friends And Related Function Documentation

◆ input_reader

friend class input_reader
friend

Definition at line 221 of file input.h.

Member Data Documentation

◆ m_interpreter

interpreter& octave::base_reader::m_interpreter
protected

Definition at line 247 of file input.h.

◆ s_in_src

const std::string octave::base_reader::s_in_src
staticprivate

Definition at line 251 of file input.h.


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