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

#include "lex.h"

Public Member Functions

 token_cache ()
 
 ~token_cache ()
 
tokenat (std::size_t n)
 
const tokenat (std::size_t n) const
 
tokenback ()
 
const tokenback () const
 
void clear ()
 
bool empty () const
 
tokenfront ()
 
const tokenfront () const
 
void pop ()
 
void push (token *tok)
 
std::size_t size () const
 

Detailed Description

Definition at line 180 of file lex.h.

Constructor & Destructor Documentation

◆ token_cache()

lexical_feedback::token_cache::token_cache ( )
inline

Definition at line 196 of file lex.h.

◆ ~token_cache()

lexical_feedback::token_cache::~token_cache ( )
inline

Definition at line 200 of file lex.h.

Member Function Documentation

◆ at() [1/2]

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

Definition at line 217 of file lex.h.

References n.

◆ at() [2/2]

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

Definition at line 222 of file lex.h.

References n.

◆ back() [1/2]

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

Definition at line 238 of file lex.h.

◆ back() [2/2]

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

Definition at line 243 of file lex.h.

◆ clear()

void lexical_feedback::token_cache::clear ( )
inline

Definition at line 253 of file lex.h.

Referenced by lexical_feedback::~lexical_feedback(), and lexical_feedback::reset().

◆ empty()

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

Definition at line 251 of file lex.h.

◆ front() [1/2]

◆ front() [2/2]

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

Definition at line 233 of file lex.h.

◆ pop()

void lexical_feedback::token_cache::pop ( )
inline

Definition at line 207 of file lex.h.

◆ push()

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

Definition at line 202 of file lex.h.

Referenced by base_lexer::push_token().

◆ size()

std::size_t lexical_feedback::token_cache::size ( ) const
inline

Definition at line 249 of file lex.h.

Referenced by base_lexer::pending_token_count().


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