#include <Array.h>
Inherited by Puma::Stack< Item > [private]
, and Puma::TokenStream.
Public Member Functions | |
Array (long is=default_init_size, long incr=default_increment) | |
Array (const Array< Item > &array) | |
Array< Item > & | operator= (const Array< Item > &) |
~Array () | |
void | append (const Item &item) |
void | insert (long index, const Item &item) |
void | prepend (const Item &item) |
void | remove (long index) |
void | reset () |
Item & | get (long index) |
Item & | operator[] (long index) |
Item | fetch (long index) const |
Item & | lookup (long index) const |
long | length () const |
template<> | |
void | reset () |
Static Protected Attributes | |
static const long | default_init_size = 5 |
static const long | default_increment = 5 |
Puma::Array< Item >::Array | ( | long | is = default_init_size , |
|
long | incr = default_increment | |||
) | [inline] |
Puma::Array< Item >::Array | ( | const Array< Item > & | array | ) | [inline] |
Puma::Array< Item >::~Array | ( | ) | [inline] |
Array< Item > & Puma::Array< Item >::operator= | ( | const Array< Item > & | array | ) | [inline] |
void Puma::Array< Item >::append | ( | const Item & | item | ) | [inline] |
void Puma::Array< Item >::insert | ( | long | index, | |
const Item & | item | |||
) | [inline] |
void Puma::Array< Item >::prepend | ( | const Item & | item | ) | [inline] |
void Puma::Array< Item >::remove | ( | long | index | ) | [inline] |
void Puma::Array< Item >::reset | ( | ) | [inline] |
Item & Puma::Array< Item >::get | ( | long | index | ) | [inline] |
Item & Puma::Array< Item >::operator[] | ( | long | index | ) | [inline] |
Item Puma::Array< Item >::fetch | ( | long | index | ) | const [inline] |
Item & Puma::Array< Item >::lookup | ( | long | index | ) | const [inline] |
long Puma::Array< Item >::length | ( | ) | const [inline] |
void Puma::Array< int >::reset | ( | ) | [inline] |
Reimplemented in Puma::Stack< Item >.
const long Puma::Array< Item >::default_init_size = 5 [static, protected] |
const long Puma::Array< Item >::default_increment = 5 [static, protected] |