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