Mercurial > dedupe
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HuffmanString.hpp Wed Sep 05 21:54:53 2012 +0200 @@ -0,0 +1,19 @@ +#ifndef HUFFMANSTRING_HPP +#define HUFFMANSTRING_HPP + +#include <QtCore/QString> +#include "HuffmanSet.hpp" + +class HuffmanString { + static HuffmanSet* set; + HuffmanSet::key_t key; +public: + + HuffmanString(const QString& str = QString(), HuffmanSet* set = NULL); + QString toString() const; + operator QString() const; + bool operator<(const HuffmanString& rhs) const; + bool operator==(const HuffmanString& rhs) const; +}; + +#endif //HUFFMANSTRING_HPP
