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

#include "lex.h"

Collaboration diagram for octave::lexical_feedback::token_cache:

Public Member Functions

 token_cache (const token_cache &)=delete
 
 token_cache (void)
 
 ~token_cache (void)
 
tokenat (size_t n)
 
const tokenat (size_t n) const
 
tokenback (void)
 
const tokenback (void) const
 
void clear (void)
 
bool empty (void) const
 
tokenfront (void)
 
const tokenfront (void) const
 
token_cacheoperator= (const token_cache &)=delete
 
void pop (void)
 
void push (token *tok)
 
size_t size (void) const
 

Private Attributes

std::deque< token * > m_buffer
 

Detailed Description

Definition at line 178 of file lex.h.

Constructor & Destructor Documentation

◆ token_cache() [1/2]

octave::lexical_feedback::token_cache::token_cache ( void  )
inline

Definition at line 194 of file lex.h.

◆ token_cache() [2/2]

octave::lexical_feedback::token_cache::token_cache ( const token_cache )
delete

◆ ~token_cache()

octave::lexical_feedback::token_cache::~token_cache ( void  )
inline

Definition at line 202 of file lex.h.

Member Function Documentation

◆ at() [1/2]

token* octave::lexical_feedback::token_cache::at ( size_t  n)
inline

Definition at line 219 of file lex.h.

References n.

◆ at() [2/2]

const token* octave::lexical_feedback::token_cache::at ( size_t  n) const
inline

Definition at line 224 of file lex.h.

References n.

◆ back() [1/2]

token* octave::lexical_feedback::token_cache::back ( void  )
inline

Definition at line 240 of file lex.h.

◆ back() [2/2]

const token* octave::lexical_feedback::token_cache::back ( void  ) const
inline

Definition at line 245 of file lex.h.

◆ clear()

void octave::lexical_feedback::token_cache::clear ( void  )
inline

◆ empty()

bool octave::lexical_feedback::token_cache::empty ( void  ) const
inline

Definition at line 253 of file lex.h.

◆ front() [1/2]

◆ front() [2/2]

const token* octave::lexical_feedback::token_cache::front ( void  ) const
inline

Definition at line 235 of file lex.h.

◆ operator=()

token_cache& octave::lexical_feedback::token_cache::operator= ( const token_cache )
delete

◆ pop()

void octave::lexical_feedback::token_cache::pop ( void  )
inline

Definition at line 209 of file lex.h.

◆ push()

void octave::lexical_feedback::token_cache::push ( token tok)
inline

Definition at line 204 of file lex.h.

Referenced by octave::base_lexer::push_token().

◆ size()

size_t octave::lexical_feedback::token_cache::size ( void  ) const
inline

Definition at line 251 of file lex.h.

Referenced by octave::base_lexer::pending_token_count().

Member Data Documentation

◆ m_buffer

std::deque<token *> octave::lexical_feedback::token_cache::m_buffer
private

Definition at line 263 of file lex.h.


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