GNU Octave  4.2.1
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 Member Functions | Private Attributes | List of all members
octave::lexical_feedback::token_cache Class Reference

#include "lex.h"

Collaboration diagram for octave::lexical_feedback::token_cache:
Collaboration graph
[legend]

Public Member Functions

 token_cache (size_t sz_arg=std::numeric_limits< size_t >::max())
 
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
 
void pop (void)
 
void push (token *tok)
 
size_t size (void) const
 

Private Member Functions

 token_cache (const token_cache &)
 
token_cacheoperator= (const token_cache &)
 

Private Attributes

std::deque< token * > buffer
 
size_t sz
 

Detailed Description

Definition at line 180 of file lex.h.

Constructor & Destructor Documentation

octave::lexical_feedback::token_cache::token_cache ( size_t  sz_arg = std::numeric_limits<size_t>::max ())
inline

Definition at line 185 of file lex.h.

octave::lexical_feedback::token_cache::token_cache ( const token_cache )
private

Member Function Documentation

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

Definition at line 207 of file lex.h.

References empty.

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

Definition at line 212 of file lex.h.

References empty.

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

Definition at line 228 of file lex.h.

References empty.

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

Definition at line 233 of file lex.h.

References empty.

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

Definition at line 243 of file lex.h.

References empty.

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

Definition at line 241 of file lex.h.

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

Definition at line 223 of file lex.h.

References empty.

token_cache& octave::lexical_feedback::token_cache::operator= ( const token_cache )
private
void octave::lexical_feedback::token_cache::pop ( void  )
inline

Definition at line 197 of file lex.h.

References empty.

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

Definition at line 189 of file lex.h.

References sz.

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

Definition at line 239 of file lex.h.

Member Data Documentation

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

Definition at line 251 of file lex.h.

size_t octave::lexical_feedback::token_cache::sz
private

Definition at line 253 of file lex.h.


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