Mercurial > dedupe
comparison HuffmanString.hpp @ 21:3bcdb8bb6914
Huffman representations.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 05 Sep 2012 21:54:53 +0200 |
| parents | |
| children | f711ddb56ae7 |
comparison
equal
deleted
inserted
replaced
| 20:754e12c927b3 | 21:3bcdb8bb6914 |
|---|---|
| 1 #ifndef HUFFMANSTRING_HPP | |
| 2 #define HUFFMANSTRING_HPP | |
| 3 | |
| 4 #include <QtCore/QString> | |
| 5 #include "HuffmanSet.hpp" | |
| 6 | |
| 7 class HuffmanString { | |
| 8 static HuffmanSet* set; | |
| 9 HuffmanSet::key_t key; | |
| 10 public: | |
| 11 | |
| 12 HuffmanString(const QString& str = QString(), HuffmanSet* set = NULL); | |
| 13 QString toString() const; | |
| 14 operator QString() const; | |
| 15 bool operator<(const HuffmanString& rhs) const; | |
| 16 bool operator==(const HuffmanString& rhs) const; | |
| 17 }; | |
| 18 | |
| 19 #endif //HUFFMANSTRING_HPP |
