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

#include "lex.h"

Collaboration diagram for base_lexer::input_buffer:

Public Member Functions

 input_buffer (void)
 
bool at_eof (void) const
 
int copy_chunk (char *buf, std::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
 
std::size_t m_chars_left
 
bool m_eof
 
std::size_t m_offset
 

Detailed Description

Definition at line 538 of file lex.h.

Constructor & Destructor Documentation

◆ input_buffer()

base_lexer::input_buffer::input_buffer ( void  )
inline

Definition at line 542 of file lex.h.

Member Function Documentation

◆ at_eof()

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

Definition at line 553 of file lex.h.

◆ copy_chunk()

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

Definition at line 5300 of file lex.cc.

References len.

◆ empty()

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

Definition at line 551 of file lex.h.

◆ fill()

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

Definition at line 5290 of file lex.cc.

References input().

Member Data Documentation

◆ m_buffer

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

Definition at line 557 of file lex.h.

◆ m_chars_left

std::size_t base_lexer::input_buffer::m_chars_left
private

Definition at line 559 of file lex.h.

◆ m_eof

bool base_lexer::input_buffer::m_eof
private

Definition at line 560 of file lex.h.

◆ m_offset

std::size_t base_lexer::input_buffer::m_offset
private

Definition at line 558 of file lex.h.


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