|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Huffman decoder. More...
#include <Huffman.H>
Public Member Functions | |
| Huffman_Decoder_Engine (BinNode< std::string > *p, const std::string &end) | |
| Decoder constructor. | |
| BinNode< std::string > *& | get_root () |
| Returns the root of the Huffman decoding tree. | |
| void | decode (BitArray &bit_stream, std::ostream &output) |
| Decode a bit stream. | |
Private Attributes | |
| BinNode< std::string > * | root |
| std::string | end_symbol |
Decode a bit stream.
decode(bit_stream, output) decodes bit_stream using the Huffman prefix tree and writes the decoded output into output.
| [in] | bit_stream | Encoded bit stream. |
| [out] | output | Output stream where the decoded text is written. |
Definition at line 705 of file Huffman.H.
References ah_domain_error_if, end_symbol, Aleph::BinNode< Key >::get_key(), Aleph::is_leaf(), Aleph::LLINK(), Aleph::maps(), output, Aleph::RLINK(), root, and Aleph::HTList::size().
|
inline |
Returns the root of the Huffman decoding tree.
Definition at line 689 of file Huffman.H.
References ah_domain_error_if, and root.
|
private |
|
private |
Definition at line 671 of file Huffman.H.
Referenced by decode(), and get_root().