Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TREE_HPP
- #define TREE_HPP
- #include <queue>
- #include <map>
- #include "node.hpp"
- class tree
- {
- public:
- tree(const std::map<char, int> histo);
- ~tree();
- node* rootnode() const;
- private:
- node *root;
- std::priority_queue<node*, std::vector<node*>, node_comp> leaves;
- void create_tree();
- };
- #endif // TREE_HPP
Advertisement
Add Comment
Please, Sign In to add comment