| Puma Reference Manual | Puma::InstantiationTokenProvider Class Reference |
Provides tokens from a syntax tree. More...
#include <Puma/InstantiationTokenProvider.h>

Public Member Functions | |
| InstantiationTokenProvider (InstantiationTokenSource &s) | |
| Constructor. More... | |
| CTree * | node () const |
| Get current token node. More... | |
Public Member Functions inherited from Puma::TokenProvider | |
| TokenProvider (PumaTokenSource &s) | |
| Constructor. More... | |
| virtual | ~TokenProvider () |
| Destructor. More... | |
| void | init () |
| Initialize the token provider by reading the first token. More... | |
| PumaTokenSource & | source () const |
| Get the token source. More... | |
| Token * | next () |
| Read the next token from the token source. More... | |
| Token * | current () const |
| Get the last token read from the token source. More... | |
| State | get_state () |
| Get the current read position. More... | |
| void | set_state (State restored_pos) |
| Restore the read position. More... | |
Protected Member Functions | |
| virtual void * | read () |
| Read next token. More... | |
| virtual Token * | token () const |
| Get the current token. More... | |
Additional Inherited Members | |
Public Types inherited from Puma::TokenProvider | |
| typedef TokenStore::Iterator | State |
| Read position. More... | |
Protected Types inherited from Puma::TokenProvider | |
| typedef BCList< void *, 8192 > | TokenStore |
Protected Attributes inherited from Puma::TokenProvider | |
| PumaTokenSource & | _source |
| TokenStore | _tokens |
| TokenStore::Iterator | _read_pos |
Provides tokens from a syntax tree.
|
inline |
Constructor.
| s | The token source from which to read the tokens. |
| CTree* Puma::InstantiationTokenProvider::node | ( | ) | const |
Get current token node.
|
protectedvirtual |
Read next token.
Reimplemented from Puma::TokenProvider.
|
protectedvirtual |
Get the current token.
Reimplemented from Puma::TokenProvider.