GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::base_lexer::input_buffer Class Reference

#include "lex.h"

Collaboration diagram for octave::base_lexer::input_buffer:

Public Member Functions

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

Private Attributes

std::string m_buffer
 
size_t m_chars_left
 
bool m_eof
 
size_t m_offset
 

Detailed Description

Definition at line 540 of file lex.h.

Constructor & Destructor Documentation

◆ input_buffer()

octave::base_lexer::input_buffer::input_buffer ( void  )
inline

Definition at line 544 of file lex.h.

Member Function Documentation

◆ at_eof()

bool octave::base_lexer::input_buffer::at_eof ( void  ) const
inline

Definition at line 555 of file lex.h.

Referenced by octave::push_lexer::fill_flex_buffer().

◆ copy_chunk()

int octave::base_lexer::input_buffer::copy_chunk ( char *  buf,
size_t  max_size,
bool  by_lines = false 
)

Definition at line 5254 of file lex.cc.

References len.

Referenced by octave::lexer::fill_flex_buffer(), and octave::push_lexer::fill_flex_buffer().

◆ empty()

bool octave::base_lexer::input_buffer::empty ( void  ) const
inline

Definition at line 553 of file lex.h.

Referenced by octave::lexer::fill_flex_buffer(), and octave::push_lexer::fill_flex_buffer().

◆ fill()

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

Definition at line 5244 of file lex.cc.

References input(), m_buffer, m_chars_left, m_eof, and m_offset.

Referenced by octave::push_lexer::append_input(), and octave::lexer::fill_flex_buffer().

Member Data Documentation

◆ m_buffer

std::string octave::base_lexer::input_buffer::m_buffer
private

Definition at line 559 of file lex.h.

Referenced by fill().

◆ m_chars_left

size_t octave::base_lexer::input_buffer::m_chars_left
private

Definition at line 561 of file lex.h.

Referenced by fill().

◆ m_eof

bool octave::base_lexer::input_buffer::m_eof
private

Definition at line 562 of file lex.h.

Referenced by fill().

◆ m_offset

size_t octave::base_lexer::input_buffer::m_offset
private

Definition at line 560 of file lex.h.

Referenced by fill().


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