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

#include "input.h"

Inheritance diagram for octave::base_reader:
Collaboration diagram for octave::base_reader:

Public Member Functions

 base_reader (base_lexer *lxr)
 
 base_reader (const base_reader &x)
 
virtual ~base_reader (void)=default
 
void decrement_promptflag (void)
 
virtual std::string get_input (bool &eof)=0
 
void increment_promptflag (void)
 
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 (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

refcount< int > m_count
 
base_lexerm_lexer
 
int m_pflag
 

Static Private Attributes

static const std::string s_in_src
 

Friends

class input_reader
 

Detailed Description

Definition at line 77 of file input.h.

Constructor & Destructor Documentation

◆ base_reader() [1/2]

octave::base_reader::base_reader ( base_lexer lxr)
inline

Definition at line 84 of file input.h.

◆ base_reader() [2/2]

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

Definition at line 88 of file input.h.

◆ ~base_reader()

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

Member Function Documentation

◆ decrement_promptflag()

void octave::base_reader::decrement_promptflag ( void  )
inline

Definition at line 102 of file input.h.

◆ get_input()

virtual std::string octave::base_reader::get_input ( bool eof)
pure virtual

◆ increment_promptflag()

void octave::base_reader::increment_promptflag ( void  )
inline

Definition at line 100 of file input.h.

◆ input_from_eval_string()

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

Reimplemented in octave::eval_string_reader.

Definition at line 125 of file input.h.

◆ input_from_file()

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

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
inlinevirtual

Reimplemented in octave::terminal_reader.

Definition at line 121 of file input.h.

◆ input_source()

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

Reimplemented in octave::eval_string_reader, octave::file_reader, and octave::terminal_reader.

Definition at line 96 of file input.h.

◆ octave_gets()

◆ promptflag() [1/2]

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

Definition at line 104 of file input.h.

◆ promptflag() [2/2]

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

Definition at line 106 of file input.h.

References retval.

◆ reading_classdef_file()

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

Definition at line 278 of file input.cc.

References m_lexer, and octave::lexical_feedback::m_reading_classdef_file.

◆ reading_fcn_file()

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

Definition at line 273 of file input.cc.

References m_lexer, and octave::lexical_feedback::m_reading_fcn_file.

◆ reading_script_file()

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

Definition at line 283 of file input.cc.

References m_lexer, and octave::lexical_feedback::m_reading_script_file.

◆ reset()

void octave::base_reader::reset ( void  )
inline

Definition at line 98 of file input.h.

Friends And Related Function Documentation

◆ input_reader

friend class input_reader
friend

Definition at line 82 of file input.h.

Member Data Documentation

◆ m_count

refcount<int> octave::base_reader::m_count
private

Definition at line 129 of file input.h.

Referenced by octave::input_reader::input_reader(), and octave::input_reader::operator=().

◆ m_lexer

base_lexer* octave::base_reader::m_lexer
private

Definition at line 133 of file input.h.

Referenced by reading_classdef_file(), reading_fcn_file(), and reading_script_file().

◆ m_pflag

int octave::base_reader::m_pflag
private

Definition at line 131 of file input.h.

Referenced by octave_gets().

◆ s_in_src

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

Definition at line 135 of file input.h.


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