GNU Octave  3.8.0
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
lexical_feedback::token_cache Class Reference

#include "lex.h"

Collaboration diagram for 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 174 of file lex.h.

Constructor & Destructor Documentation

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

Definition at line 179 of file lex.h.

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

Member Function Documentation

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

Definition at line 201 of file lex.h.

Referenced by cmlri(), and zmlri().

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

Definition at line 206 of file lex.h.

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

Definition at line 222 of file lex.h.

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

Definition at line 227 of file lex.h.

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

Definition at line 237 of file lex.h.

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

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

Definition at line 235 of file lex.h.

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

Definition at line 217 of file lex.h.

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

Definition at line 191 of file lex.h.

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

Definition at line 183 of file lex.h.

Referenced by octave_base_lexer::push_token().

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

Definition at line 233 of file lex.h.

Member Data Documentation

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

Definition at line 245 of file lex.h.

size_t lexical_feedback::token_cache::sz
private

Definition at line 247 of file lex.h.


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