#ifndef priority_queue_h_ #define priority_queue_h_ #include #include #include template class priority_queue { private: std::vector m_heap; public: priority_queue() {} priority_queue( std::vector const& values ) { } const T& top() const { assert( !m_heap.empty() ); return m_heap[0]; } void push( const T& entry ) { } void pop() { assert( !m_heap.empty() ); } int size() { return m_heap.size(); } bool empty() { return m_heap.empty(); } // The following three functions are used for debugging. // Check to see that internally the heap property is realized. bool check_heap( ) { return this->check_heap( this->m_heap ); } // Check an external vector to see that the heap property is realized. bool check_heap( const std::vector& heap ) { } // A utility to print the contents of the heap. Use it for debugging. void print_heap( std::ostream & ostr ) { for ( unsigned int i=0; i void heap_sort( std::vector & v ) { } #endif