text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

StackL.h

Go to the documentation of this file.
00001 
00017 #include "StackException.h"
00018 #include "ListP.h"     // list operations
00019 
00020 typedef ListItemType StackItemType;
00021 
00024 class Stack
00025 {
00026 public:
00027 // constructors and destructor:
00029    Stack();
00031    Stack(const Stack& aStack);
00033    ~Stack();
00034 
00035 // Stack operations:
00036    bool isEmpty() const;
00037    void push(const StackItemType& newItem) throw(StackException);
00038    void pop() throw(StackException);
00039    void pop(StackItemType& stackTop) throw(StackException);
00040    void getTop(StackItemType& stackTop) const throw(StackException);
00041 
00042 private:
00044    List aList;
00045 }; // end Stack
00046 // End of header file.

Generated on Sun Aug 27 16:41:19 2006 for AWLogo by  doxygen 1.4.6