![]() |
PUMA Library Reference Manual
|
#include <Puma/UnitTokenSrc.h>
Inheritance diagram for Puma::UnitTokenSrc: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... | |
|
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.