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

#include "input.h"

Collaboration diagram for input_reader:

Public Member Functions

 input_reader (const input_reader &ir)=default
 
 input_reader (interpreter &interp)
 
 input_reader (interpreter &interp, const std::string &str)
 
 input_reader (interpreter &interp, FILE *file)
 
 input_reader (interpreter &interp, FILE *file, const std::string &enc)
 
 ~input_reader (void)=default
 
std::string get_input (const std::string &prompt, bool &eof)
 
bool input_from_eval_string (void) const
 
bool input_from_file (void) const
 
bool input_from_terminal (void) const
 
std::string input_source (void) const
 
input_readeroperator= (const input_reader &ir)=default
 

Private Attributes

std::shared_ptr< base_readerm_rep
 

Detailed Description

Definition at line 259 of file input.h.

Constructor & Destructor Documentation

◆ input_reader() [1/5]

input_reader::input_reader ( interpreter interp)

◆ input_reader() [2/5]

input_reader::input_reader ( interpreter interp,
FILE *  file 
)

◆ input_reader() [3/5]

input_reader::input_reader ( interpreter interp,
FILE *  file,
const std::string &  enc 
)

◆ input_reader() [4/5]

input_reader::input_reader ( interpreter interp,
const std::string &  str 
)

◆ input_reader() [5/5]

input_reader::input_reader ( const input_reader ir)
default

◆ ~input_reader()

input_reader::~input_reader ( void  )
default

Member Function Documentation

◆ get_input()

std::string input_reader::get_input ( const std::string &  prompt,
bool &  eof 
)
inline

Definition at line 277 of file input.h.

References m_rep.

Referenced by debugger::repl().

◆ input_from_eval_string()

bool input_reader::input_from_eval_string ( void  ) const
inline

Definition at line 297 of file input.h.

References m_rep.

◆ input_from_file()

bool input_reader::input_from_file ( void  ) const
inline

Definition at line 292 of file input.h.

References m_rep.

◆ input_from_terminal()

bool input_reader::input_from_terminal ( void  ) const
inline

Definition at line 287 of file input.h.

References m_rep.

◆ input_source()

std::string input_reader::input_source ( void  ) const
inline

Definition at line 282 of file input.h.

References m_rep.

◆ operator=()

input_reader& input_reader::operator= ( const input_reader ir)
default

Member Data Documentation

◆ m_rep

std::shared_ptr<base_reader> input_reader::m_rep
private

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