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

#include "input.h"

Public Member Functions

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

Protected Attributes

interpreterm_interpreter
 

Friends

class input_reader
 

Detailed Description

Definition at line 222 of file input.h.

Constructor & Destructor Documentation

◆ base_reader()

base_reader::base_reader ( interpreter interp)
inline

Definition at line 228 of file input.h.

◆ ~base_reader()

virtual base_reader::~base_reader ( )
virtualdefault

Member Function Documentation

◆ get_input()

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

◆ input_from_eval_string()

virtual bool base_reader::input_from_eval_string ( ) const
inlinevirtual

Definition at line 246 of file input.h.

◆ input_from_file()

virtual bool base_reader::input_from_file ( ) const
inlinevirtual

Definition at line 244 of file input.h.

◆ input_from_terminal()

virtual bool base_reader::input_from_terminal ( ) const
inlinevirtual

Definition at line 242 of file input.h.

◆ input_source()

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

Definition at line 238 of file input.h.

◆ octave_gets()

std::string 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 226 of file input.h.

Member Data Documentation

◆ m_interpreter

interpreter& base_reader::m_interpreter
protected

Definition at line 250 of file input.h.


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