Puma Reference Manual Puma::PtrStack< T > Class Template Reference



Puma::PtrStack< T > Class Template Reference

#include <PtrStack.h>

Inheritance diagram for Puma::PtrStack< T >:
Inheritance graph

List of all members.

Public Member Functions

 PtrStack (long=8192, long=8192)
virtual ~PtrStack ()
void Push (const T *)
void Pop ()
T * Top () const
long Length () const
T * Get (long) const
void New ()
void Forget ()
void Reject ()
void Destroy ()
long Stacks () const
void Reset ()

Protected Member Functions

virtual void Delete ()
virtual void Remove ()

Additional Inherited Members

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

Constructor & Destructor Documentation

template<class T >
Puma::PtrStack< T >::PtrStack ( long  is = 8192,
long  incr = 8192 
)
inline
template<class T>
virtual Puma::PtrStack< T >::~PtrStack ( )
inlinevirtual

Member Function Documentation

template<class T >
void Puma::PtrStack< T >::Delete ( )
inlineprotectedvirtual
template<class T >
void Puma::PtrStack< T >::Destroy ( )
inline
template<class T >
void Puma::PtrStack< T >::Forget ( )
inline
template<class T >
T * Puma::PtrStack< T >::Get ( long  idx) const
inline
template<class T >
long Puma::PtrStack< T >::Length ( ) const
inline
template<class T >
void Puma::PtrStack< T >::New ( )
inline
template<class T >
void Puma::PtrStack< T >::Pop ( )
inline
template<class T>
void Puma::PtrStack< T >::Push ( const T *  item)
inline
template<class T >
void Puma::PtrStack< T >::Reject ( )
inline
template<class T >
void Puma::PtrStack< T >::Remove ( )
inlineprotectedvirtual
template<class T >
void Puma::PtrStack< T >::Reset ( )
inline
template<class T >
long Puma::PtrStack< T >::Stacks ( ) const
inline
template<class T >
T * Puma::PtrStack< T >::Top ( ) const
inline



Puma Reference Manual. Created on Sun Jul 1 2012.