OpenMD 3.0
Molecular Dynamics in the Open
|
This object is a TokenStream that passes through all tokens except for those that you tell it to discard. More...
#include <TokenStreamBasicFilter.hpp>
Public Member Functions | |
TokenStreamBasicFilter (TokenStream &input_) | |
This object is a TokenStream that passes through all tokens except for those that you tell it to discard. | |
void | discard (int ttype) |
void | discard (const BitSet &mask) |
RefToken | nextToken () |
Protected Attributes | |
BitSet | discardMask |
The set of token types to discard. | |
TokenStream * | input |
The input stream. | |
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.
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.
void antlr::TokenStreamBasicFilter::discard | ( | const BitSet & | mask | ) |
Definition at line 27 of file TokenStreamBasicFilter.cpp.
void antlr::TokenStreamBasicFilter::discard | ( | int | ttype | ) |
Definition at line 22 of file TokenStreamBasicFilter.cpp.
|
virtual |
Implements antlr::TokenStream.
Reimplemented in antlr::TokenStreamHiddenTokenFilter.
Definition at line 32 of file TokenStreamBasicFilter.cpp.
|
protected |
The set of token types to discard.
Definition at line 26 of file TokenStreamBasicFilter.hpp.
Referenced by antlr::TokenStreamHiddenTokenFilter::nextToken().
|
protected |
The input stream.
Definition at line 30 of file TokenStreamBasicFilter.hpp.