GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::eval_string_reader Class Reference
Inheritance diagram for octave::eval_string_reader:
Collaboration diagram for octave::eval_string_reader:

Public Member Functions

 eval_string_reader (const std::string &str, base_lexer *lxr=nullptr)
 
void decrement_promptflag (void)
 
std::string get_input (bool &eof)
 
void increment_promptflag (void)
 
bool input_from_eval_string (void) const
 
virtual bool input_from_file (void) const
 
virtual bool input_from_terminal (void) const
 
std::string input_source (void) const
 
std::string octave_gets (bool &eof)
 
int promptflag (void) const
 
int promptflag (int n)
 
virtual bool reading_classdef_file (void) const
 
virtual bool reading_fcn_file (void) const
 
virtual bool reading_script_file (void) const
 
void reset (void)
 

Private Attributes

std::string m_eval_string
 

Static Private Attributes

static const std::string s_in_src
 

Detailed Description

Definition at line 329 of file input.cc.

Constructor & Destructor Documentation

◆ eval_string_reader()

octave::eval_string_reader::eval_string_reader ( const std::string str,
base_lexer lxr = nullptr 
)
inline

Definition at line 334 of file input.cc.

Member Function Documentation

◆ decrement_promptflag()

void octave::base_reader::decrement_promptflag ( void  )
inlineinherited

Definition at line 102 of file input.h.

◆ get_input()

std::string octave::eval_string_reader::get_input ( bool eof)
virtual

Implements octave::base_reader.

◆ increment_promptflag()

void octave::base_reader::increment_promptflag ( void  )
inlineinherited

Definition at line 100 of file input.h.

◆ input_from_eval_string()

bool octave::eval_string_reader::input_from_eval_string ( void  ) const
inlinevirtual

Reimplemented from octave::base_reader.

Definition at line 342 of file input.cc.

◆ input_from_file()

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

Reimplemented in octave::file_reader.

Definition at line 123 of file input.h.

◆ input_from_terminal()

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

Reimplemented in octave::terminal_reader.

Definition at line 121 of file input.h.

◆ input_source()

std::string octave::eval_string_reader::input_source ( void  ) const
inlinevirtual

Reimplemented from octave::base_reader.

Definition at line 340 of file input.cc.

◆ octave_gets()

◆ promptflag() [1/2]

int octave::base_reader::promptflag ( void  ) const
inlineinherited

Definition at line 104 of file input.h.

◆ promptflag() [2/2]

int octave::base_reader::promptflag ( int  n)
inlineinherited

Definition at line 106 of file input.h.

References retval.

◆ reading_classdef_file()

bool octave::base_reader::reading_classdef_file ( void  ) const
virtualinherited

◆ reading_fcn_file()

bool octave::base_reader::reading_fcn_file ( void  ) const
virtualinherited

◆ reading_script_file()

bool octave::base_reader::reading_script_file ( void  ) const
virtualinherited

◆ reset()

void octave::base_reader::reset ( void  )
inlineinherited

Definition at line 98 of file input.h.

Member Data Documentation

◆ m_eval_string

std::string octave::eval_string_reader::m_eval_string
private

Definition at line 346 of file input.cc.

◆ s_in_src

const std::string octave::eval_string_reader::s_in_src
staticprivate

Definition at line 348 of file input.cc.


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