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 | List of all members
octave_base_lexer::input_buffer Class Reference

#include "lex.h"

Collaboration diagram for octave_base_lexer::input_buffer:
Collaboration graph
[legend]

Public Member Functions

 input_buffer (void)
 
bool at_eof (void) const
 
int copy_chunk (char *buf, size_t max_size)
 
bool empty (void) const
 
void fill (const std::string &input, bool eof_arg)
 

Private Attributes

std::string buffer
 
size_t chars_left
 
bool eof
 
const charpos
 

Detailed Description

Definition at line 472 of file lex.h.

Constructor & Destructor Documentation

octave_base_lexer::input_buffer::input_buffer ( void  )
inline

Definition at line 476 of file lex.h.

Member Function Documentation

bool octave_base_lexer::input_buffer::at_eof ( void  ) const
inline

Definition at line 487 of file lex.h.

Referenced by octave_push_lexer::fill_flex_buffer().

int octave_base_lexer::input_buffer::copy_chunk ( char buf,
size_t  max_size 
)

Definition at line 4802 of file lex.cc.

Referenced by octave_lexer::fill_flex_buffer(), and octave_push_lexer::fill_flex_buffer().

bool octave_base_lexer::input_buffer::empty ( void  ) const
inline

Definition at line 485 of file lex.h.

Referenced by octave_lexer::fill_flex_buffer(), and octave_push_lexer::fill_flex_buffer().

void octave_base_lexer::input_buffer::fill ( const std::string &  input,
bool  eof_arg 
)

Definition at line 4793 of file lex.cc.

References buffer, chars_left, eof, input(), and pos.

Referenced by octave_lexer::fill_flex_buffer(), and octave_push_lexer::fill_flex_buffer().

Member Data Documentation

std::string octave_base_lexer::input_buffer::buffer
private

Definition at line 491 of file lex.h.

Referenced by fill().

size_t octave_base_lexer::input_buffer::chars_left
private

Definition at line 493 of file lex.h.

Referenced by fill().

bool octave_base_lexer::input_buffer::eof
private

Definition at line 494 of file lex.h.

Referenced by fill().

const char* octave_base_lexer::input_buffer::pos
private

Definition at line 492 of file lex.h.

Referenced by fill().


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