Created
September 10, 2013 12:14
-
-
Save madsravn/6508545 to your computer and use it in GitHub Desktop.
C++ interfaces
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 characters
#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 characters
#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 characters
#ifndef IQUEUE_HPP_ | |
#define IQUEUE_HPP_ | |
class IQueue { | |
public: | |
virtual void MakeHeap() = 0; | |
protected: | |
IQueue() {} | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment