Created
September 10, 2013 12:14
Revisions
-
madsravn created this gist
Sep 10, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #ifndef DIJKSTRA_HPP_ #define DIJKSTRA_HPP_ #include "IQueue.hpp" class Dijkstra { public: Dijkstra(); Dijkstra(IQueue queue); private: IQueue pq; }; #endif This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #ifndef FHEAP_HPP_ #define FHEAP_HPP_ #include "FTree.hpp" #include "IQueue.hpp" #include <vector> class FHeap : public IQueue { public: FHeap(); virtual void MakeHeap(); private: std::vector<FTree> forest; }; #endif This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #ifndef IQUEUE_HPP_ #define IQUEUE_HPP_ class IQueue { public: virtual void MakeHeap() = 0; protected: IQueue() {} }; #endif