#include <TokenStreamSelector.hpp>


Public Member Functions | |
| TokenStreamSelector () | |
| ~TokenStreamSelector () | |
| void | addInputStream (TokenStream *stream, const ANTLR_USE_NAMESPACE(std) string &key) |
| TokenStream * | getCurrentStream () const |
| Return the stream from which tokens are being pulled at the moment. | |
| TokenStream * | getStream (const ANTLR_USE_NAMESPACE(std) string &sname) const |
| RefToken | nextToken () |
| TokenStream * | pop () |
| void | push (TokenStream *stream) |
| void | push (const ANTLR_USE_NAMESPACE(std) string &sname) |
| void | retry () |
| void | select (TokenStream *stream) |
| void | select (const ANTLR_USE_NAMESPACE(std) string &sname) |
Protected Types | |
| typedef TokenStream * | inputStreamNames_coll |
Protected Member Functions | |
| typedef | ANTLR_USE_NAMESPACE (std) map< ANTLR_USE_NAMESPACE(std) string |
| typedef | ANTLR_USE_NAMESPACE (std) stack< TokenStream * > streamStack_coll |
Protected Attributes | |
| inputStreamNames_coll | inputStreamNames |
| TokenStream * | input |
| streamStack_coll | streamStack |
Definition at line 27 of file TokenStreamSelector.hpp.
typedef TokenStream* TokenStreamSelector::inputStreamNames_coll [protected] |
Definition at line 34 of file TokenStreamSelector.hpp.
| TokenStreamSelector::TokenStreamSelector | ( | ) |
| TokenStreamSelector::~TokenStreamSelector | ( | ) |
| typedef TokenStreamSelector::ANTLR_USE_NAMESPACE | ( | std | ) | [protected] |
The set of inputs to the MUX
| typedef TokenStreamSelector::ANTLR_USE_NAMESPACE | ( | std | ) | [protected] |
Used to track stack of input streams
| void TokenStreamSelector::addInputStream | ( | TokenStream * | stream, | |
| const ANTLR_USE_NAMESPACE(std) string & | key | |||
| ) |
| TokenStream* TokenStreamSelector::getCurrentStream | ( | ) | const |
Return the stream from which tokens are being pulled at the moment.
| TokenStream* TokenStreamSelector::getStream | ( | const ANTLR_USE_NAMESPACE(std) string & | sname | ) | const |
| RefToken TokenStreamSelector::nextToken | ( | ) | [virtual] |
Implements TokenStream.
| TokenStream* TokenStreamSelector::pop | ( | ) |
| void TokenStreamSelector::push | ( | TokenStream * | stream | ) |
| void TokenStreamSelector::push | ( | const ANTLR_USE_NAMESPACE(std) string & | sname | ) |
| void TokenStreamSelector::retry | ( | ) |
| void TokenStreamSelector::select | ( | TokenStream * | stream | ) |
Set the stream without pushing old stream
| void TokenStreamSelector::select | ( | const ANTLR_USE_NAMESPACE(std) string & | sname | ) |
Definition at line 36 of file TokenStreamSelector.hpp.
TokenStream* TokenStreamSelector::input [protected] |
The currently-selected token stream input
Definition at line 39 of file TokenStreamSelector.hpp.
streamStack_coll TokenStreamSelector::streamStack [protected] |
Definition at line 47 of file TokenStreamSelector.hpp.
1.5.6