Dune::Stack< T > Class Template Reference
[Common]

#include <stack.hh>

Inheritance diagram for Dune::Stack< T >:

Dune::DoubleLinkedList< T >

List of all members.


Detailed Description

template<class T>
class Dune::Stack< T >

(DEPRECATED) dynamic stack implemented with a double linked list

This class can be used instead of the standard STL-stack if detailed knowledge about the stacks implementation is needed. For example, it is unknown if a copy of an empty STL-stack requires time or not

Public Member Functions

bool empty () const
 Returns true if the stack is emptry.
bool full () const
 Always returns false because the stack is never full.
void push (T &t)
 Put a new object onto the stack.
pop ()
 Removes and returns the uppermost object from the stack.
top () const
 Returns the uppermost object from the stack.
int size () const
 Number of elements on the stack.


The documentation for this class was generated from the following file:

Generated on Sun Nov 15 22:28:22 2009 for dune-common by  doxygen 1.5.6