OpenMD  2.5
Molecular Dynamics in the Open
antlr::TokenStreamBasicFilter Class Reference

#include <TokenStreamBasicFilter.hpp>

Inheritance diagram for antlr::TokenStreamBasicFilter:
antlr::TokenStream antlr::TokenStreamHiddenTokenFilter

Public Member Functions

 TokenStreamBasicFilter (TokenStream &input_)
 
void discard (int ttype)
 
void discard (const BitSet &mask)
 
RefToken nextToken ()
 
- Public Member Functions inherited from antlr::TokenStream
virtual ~TokenStream ()
 

Protected Attributes

BitSet discardMask
 
TokenStreaminput
 

Detailed Description

This object is a TokenStream that passes through all tokens except for those that you tell it to discard. There is no buffering of the tokens.

Definition at line 23 of file TokenStreamBasicFilter.hpp.

Constructor & Destructor Documentation

◆ TokenStreamBasicFilter()

antlr::TokenStreamBasicFilter::TokenStreamBasicFilter ( TokenStream input_)

This object is a TokenStream that passes through all tokens except for those that you tell it to discard. There is no buffering of the tokens.

Definition at line 17 of file TokenStreamBasicFilter.cpp.

Member Function Documentation

◆ discard() [1/2]

void antlr::TokenStreamBasicFilter::discard ( int  ttype)

Definition at line 22 of file TokenStreamBasicFilter.cpp.

References antlr::BitSet::add(), and discardMask.

◆ discard() [2/2]

void antlr::TokenStreamBasicFilter::discard ( const BitSet mask)

Definition at line 27 of file TokenStreamBasicFilter.cpp.

References discardMask.

◆ nextToken()

RefToken antlr::TokenStreamBasicFilter::nextToken ( void  )
virtual

Member Data Documentation

◆ discardMask

BitSet antlr::TokenStreamBasicFilter::discardMask
protected

◆ input

TokenStream* antlr::TokenStreamBasicFilter::input
protected

The input stream

Definition at line 30 of file TokenStreamBasicFilter.hpp.

Referenced by antlr::TokenStreamHiddenTokenFilter::consume(), and nextToken().


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