// File: HStack.h // // A heterogeneous stack, derived from HList.h // #ifndef HSTACK_H #define HSTACK_H #include "HList.h" class HStack : private HList { public: // Constructors HStack () ; HStack (const HStack& S) ; // Destructor ~HStack() ; // Assignment const HStack& operator=(const HStack& rhs) ; // Stack operations void push(HNode *ptr) ; void pop() ; HNode *top() ; // Expose some HList public members using HList::print ; using HList::size ; } ; ostream& operator<< (ostream& os, const HStack& S) ; #endif