/* * This file contains the implementation of the methods for the * templated SlowPQ class. */ // constructor template SlowPQ::SlowPQ() { } // number of items template int SlowPQ::size() const { return -1; // stub } // is the queue empty? template bool SlowPQ::isEmpty() const { return true; // stub } // insert into queue template void SlowPQ::insertItem(double k, const Element& e) { } // returns element with min key template Element& SlowPQ::minElement() throw(EmptyContainerException) { static Element junk; // replace these lines as needed return junk; // replace these lines as needed } // returns min key template double SlowPQ::minKey() const throw(EmptyContainerException) { return 0.0; // stub } // remove minimum template void SlowPQ::removeMin() throw(EmptyContainerException) { } // destructor template SlowPQ::~SlowPQ() { }