GNU Octave  4.0.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 Attributes | Static Private Attributes | List of all members
octave_eval_string_reader Class Reference

#include "input.h"

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

Public Member Functions

 octave_eval_string_reader (const std::string &str, octave_base_lexer *lxr=0)
 
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 eval_string
 

Static Private Attributes

static const std::string in_src
 

Detailed Description

Definition at line 189 of file input.h.

Constructor & Destructor Documentation

octave_eval_string_reader::octave_eval_string_reader ( const std::string &  str,
octave_base_lexer lxr = 0 
)
inline

Definition at line 194 of file input.h.

Member Function Documentation

void octave_base_reader::decrement_promptflag ( void  )
inlineinherited

Definition at line 110 of file input.h.

Referenced by octave_input_reader::decrement_promptflag().

std::string octave_eval_string_reader::get_input ( bool eof)
virtual

Implements octave_base_reader.

Definition at line 657 of file input.cc.

References eval_string.

void octave_base_reader::increment_promptflag ( void  )
inlineinherited

Definition at line 108 of file input.h.

Referenced by octave_input_reader::increment_promptflag().

bool octave_eval_string_reader::input_from_eval_string ( void  ) const
inlinevirtual

Reimplemented from octave_base_reader.

Definition at line 203 of file input.h.

virtual bool octave_base_reader::input_from_file ( void  ) const
inlinevirtualinherited

Reimplemented in octave_file_reader.

Definition at line 131 of file input.h.

Referenced by octave_input_reader::input_from_file().

virtual bool octave_base_reader::input_from_terminal ( void  ) const
inlinevirtualinherited

Reimplemented in octave_terminal_reader.

Definition at line 129 of file input.h.

Referenced by octave_input_reader::input_from_terminal().

std::string octave_eval_string_reader::input_source ( void  ) const
inlinevirtual

Reimplemented from octave_base_reader.

Definition at line 201 of file input.h.

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

Definition at line 112 of file input.h.

Referenced by octave_input_reader::promptflag().

int octave_base_reader::promptflag ( int  n)
inlineinherited

Definition at line 114 of file input.h.

bool octave_base_reader::reading_classdef_file ( void  ) const
virtualinherited

Definition at line 309 of file input.cc.

References octave_base_reader::lexer, and lexical_feedback::reading_classdef_file.

bool octave_base_reader::reading_fcn_file ( void  ) const
virtualinherited

Definition at line 303 of file input.cc.

References octave_base_reader::lexer, and lexical_feedback::reading_fcn_file.

bool octave_base_reader::reading_script_file ( void  ) const
virtualinherited
void octave_base_reader::reset ( void  )
inlineinherited

Definition at line 106 of file input.h.

References octave_input_reader::promptflag().

Referenced by octave_input_reader::reset().

Member Data Documentation

std::string octave_eval_string_reader::eval_string
private

Definition at line 207 of file input.h.

Referenced by get_input().

const std::string octave_eval_string_reader::in_src
staticprivate

Definition at line 209 of file input.h.


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