GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
octave_base_reader Class Reference

#include "input.h"

Inheritance diagram for octave_base_reader:
Inheritance graph
[legend]
Collaboration diagram for octave_base_reader:
Collaboration graph
[legend]

Public Member Functions

 octave_base_reader (octave_base_lexer *lxr)
 octave_base_reader (const octave_base_reader &x)
virtual ~octave_base_reader (void)
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 Member Functions

void do_input_echo (const std::string &) const

Private Attributes

int count
octave_base_lexerlexer
int pflag

Static Private Attributes

static const std::string in_src

Friends

class octave_input_reader

Detailed Description

Definition at line 84 of file input.h.

Constructor & Destructor Documentation

octave_base_reader::octave_base_reader ( octave_base_lexer lxr)
inline

Definition at line 91 of file input.h.

octave_base_reader::octave_base_reader ( const octave_base_reader x)
inline

Definition at line 95 of file input.h.

virtual octave_base_reader::~octave_base_reader ( void  )
inlinevirtual

Definition at line 99 of file input.h.

Member Function Documentation

void octave_base_reader::decrement_promptflag ( void  )
inline

Definition at line 109 of file input.h.

Referenced by octave_input_reader::decrement_promptflag().

void octave_base_reader::do_input_echo ( const std::string &  input_string) const
private
virtual std::string octave_base_reader::get_input ( bool eof)
pure virtual
void octave_base_reader::increment_promptflag ( void  )
inline

Definition at line 107 of file input.h.

Referenced by octave_input_reader::increment_promptflag().

virtual bool octave_base_reader::input_from_eval_string ( void  ) const
inlinevirtual

Reimplemented in octave_eval_string_reader.

Definition at line 132 of file input.h.

Referenced by octave_input_reader::input_from_eval_string().

virtual bool octave_base_reader::input_from_file ( void  ) const
inlinevirtual

Reimplemented in octave_file_reader.

Definition at line 130 of file input.h.

Referenced by octave_input_reader::input_from_file().

virtual bool octave_base_reader::input_from_terminal ( void  ) const
inlinevirtual

Reimplemented in octave_terminal_reader.

Definition at line 128 of file input.h.

Referenced by octave_input_reader::input_from_terminal().

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

Referenced by octave_input_reader::input_source().

std::string octave_base_reader::octave_gets ( bool eof)
int octave_base_reader::promptflag ( void  ) const
inline

Definition at line 111 of file input.h.

Referenced by octave_input_reader::promptflag().

int octave_base_reader::promptflag ( int  n)
inline

Definition at line 113 of file input.h.

bool octave_base_reader::reading_classdef_file ( void  ) const
virtual

Definition at line 308 of file input.cc.

References lexer, and lexical_feedback::reading_classdef_file.

bool octave_base_reader::reading_fcn_file ( void  ) const
virtual

Definition at line 302 of file input.cc.

References lexer, and lexical_feedback::reading_fcn_file.

bool octave_base_reader::reading_script_file ( void  ) const
virtual

Definition at line 314 of file input.cc.

References lexer, and lexical_feedback::reading_script_file.

Referenced by do_input_echo().

void octave_base_reader::reset ( void  )
inline

Definition at line 105 of file input.h.

References octave_input_reader::promptflag().

Referenced by octave_gets(), and octave_input_reader::reset().

Friends And Related Function Documentation

friend class octave_input_reader
friend

Definition at line 89 of file input.h.

Member Data Documentation

int octave_base_reader::count
private
const std::string octave_base_reader::in_src
staticprivate

Definition at line 144 of file input.h.

octave_base_lexer* octave_base_reader::lexer
private

Definition at line 140 of file input.h.

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

int octave_base_reader::pflag
private

Definition at line 138 of file input.h.

Referenced by do_input_echo(), and octave_gets().


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