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

#include "input.h"

Collaboration diagram for 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 222 of file input.h.

Constructor & Destructor Documentation

◆ base_reader() [1/2]

base_reader::base_reader ( interpreter interp)
inline

Definition at line 228 of file input.h.

◆ base_reader() [2/2]

base_reader::base_reader ( const base_reader x)
inline

Definition at line 232 of file input.h.

◆ ~base_reader()

virtual base_reader::~base_reader ( void  )
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 ( void  ) const
inlinevirtual

Definition at line 248 of file input.h.

◆ input_from_file()

virtual bool base_reader::input_from_file ( void  ) const
inlinevirtual

Definition at line 246 of file input.h.

◆ input_from_terminal()

virtual bool base_reader::input_from_terminal ( void  ) const
inlinevirtual

Definition at line 244 of file input.h.

◆ input_source()

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

Definition at line 240 of file input.h.

References s_in_src.

◆ 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 252 of file input.h.

◆ s_in_src

const std::string base_reader::s_in_src
staticprivate

Definition at line 256 of file input.h.

Referenced by input_source().


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