| Puma Reference Manual | Puma::TokenStream Class Reference |
#include <TokenStream.h>

Public Member Functions | |
| TokenStream () | |
| ~TokenStream () | |
| void | push (Unit *unit, Token *curr=0) |
| Unit * | top () const |
| Token * | next () |
| Token * | current () const |
| bool | topHasMore () const |
Public Member Functions inherited from Puma::PumaTokenSource | |
| virtual | ~PumaTokenSource () |
Public Member Functions inherited from Puma::Array< UnitTokenSrc * > | |
| Array (long is=default_init_size, long incr=default_increment) | |
| Constructor. More... | |
| Array (const Array< UnitTokenSrc * > &array) | |
| Copy-constructor. More... | |
| Array< UnitTokenSrc * > & | operator= (const Array< UnitTokenSrc * > ©) |
| Assignment operator. More... | |
| ~Array () | |
| Destructor. More... | |
| void | append (const UnitTokenSrc *&item) |
| Append an item to the array. More... | |
| void | insert (long index, const UnitTokenSrc *&item) |
| Insert an item at the given array index. More... | |
| void | prepend (const UnitTokenSrc *&item) |
| Prepend an item. More... | |
| void | remove (long index) |
| Remove the array item at the given array index. More... | |
| void | reset () |
| Reset the array. More... | |
| UnitTokenSrc *& | get (long index) |
| Get a reference to the array item at the given array index. More... | |
| UnitTokenSrc *& | operator[] (long index) |
| Get a reference to the array item at the given array index. More... | |
| UnitTokenSrc * | fetch (long index) const |
| Get the array item at the given array index. More... | |
| UnitTokenSrc *& | lookup (long index) const |
| Get a reference to the array item at the given array index. More... | |
| long | length () const |
| Get the number of items in the array. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Puma::PumaTokenSource | |
| PumaTokenSource () | |
Static Protected Attributes inherited from Puma::Array< UnitTokenSrc * > | |
| static const long | default_init_size |
| Default array size. More... | |
| static const long | default_increment |
| Default array size increment. More... | |
|
inline |
|
inline |
| Token* Puma::TokenStream::current | ( | ) | const |
|
virtual |
Implements Puma::PumaTokenSource.
| Unit* Puma::TokenStream::top | ( | ) | const |
| bool Puma::TokenStream::topHasMore | ( | ) | const |