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

Public Member Functions

 Stack (long is=8192, long incr=8192)
void push (Item f)
Item & top () const
void pop ()
long length () const
void reset ()

Additional Inherited Members

- Private Member Functions inherited from Puma::Array< Item >
 Array (long is=default_init_size, long incr=default_increment)
 Constructor.
 Array (const Array< Item > &array)
 Copy-constructor.
Array< Item > & operator= (const Array< Item > &copy)
 Assignment operator.
 ~Array ()
 Destructor.
void append (const Item &item)
 Append an item to the array.
void insert (long index, const Item &item)
 Insert an item at the given array index.
void prepend (const Item &item)
 Prepend an item.
void remove (long index)
 Remove the array item at the given array index.
void reset ()
 Reset the array.
Item & get (long index)
 Get a reference to the array item at the given array index.
Item & operator[] (long index)
 Get a reference to the array item at the given array index.
Item fetch (long index) const
 Get the array item at the given array index.
Item & 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.
template<>
void reset ()

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
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
template<class Item>
Item& Puma::Stack< Item >::top ( ) const
inline



Puma Reference Manual. Created on Thu Mar 13 2014.