Puma Reference Manual Puma::Stack< Item > Class Template Reference



Puma::Stack< Item > Class Template Reference

#include <Stack.h>

Inheritance diagram for Puma::Stack< Item >:
Inheritance graph

List of all members.

Public Member Functions

 Stack (long is=8192, long incr=8192)
void push (Item f)
Item & top () const
void pop ()
long length () const
 Get the number of items in the array.
void reset ()
 Reset the array.

template<class Item>
class Puma::Stack< Item >


Constructor & Destructor Documentation

template<class Item>
Puma::Stack< Item >::Stack ( long  is = 8192,
long  incr = 8192 
) [inline]

Member Function Documentation

template<class Item>
long Puma::Stack< Item >::length ( ) const [inline]

Get the number of items in the array.

Reimplemented from Puma::Array< Item >.

template<class Item>
void Puma::Stack< Item >::pop ( ) [inline]
template<class Item>
void Puma::Stack< Item >::push ( Item  f) [inline]
template<class Item>
void Puma::Stack< Item >::reset ( ) [inline]

Reset the array.

Destroys the current array.

Reimplemented from Puma::Array< Item >.

template<class Item>
Item& Puma::Stack< Item >::top ( ) const [inline]