PUMA Library Reference Manual
|
#include <Puma/UnitTokenSrc.h>
Token unit iterator implementing the token source interface.
Public Member Functions | |
UnitTokenSrc (Unit &unit) | |
Constructor. More... | |
void | current (Token *token) |
Set the current token in the unit that is iterated. More... | |
Token * | next () |
Get the next token in the unit. More... | |
Token * | current () const |
Get the current token in the unit. More... | |
Unit * | unit () const |
Get the token being iterated. More... | |
bool | hasNext () const |
Check if the current token is not the last in the unit. More... | |
Public Member Functions inherited from Puma::TokenSource | |
virtual | ~TokenSource () |
Destructor. More... | |
virtual Token * | next ()=0 |
Get the next token. More... | |
|
inline |
Constructor.
unit | The unit to iterate. |
|
inline |
Get the current token in the unit.
|
inline |
Set the current token in the unit that is iterated.
token | The new current token. |
|
inline |
Check if the current token is not the last in the unit.
|
inlinevirtual |
|
inline |
Get the token being iterated.