|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include <Adaptive_Huffman.H>
Public Member Functions | |
| bool | is_leaf () const noexcept |
| Test whether this node is a leaf. | |
Public Attributes | |
| std::uint64_t | weight = 0 |
| Subtree frequency. | |
| int | parent = -1 |
| Parent index, or -1 at the root. | |
| int | left = -1 |
| Left child index, or -1 at a leaf. | |
| int | right = -1 |
| Right child index, or -1 at a leaf. | |
| int | order = 0 |
| Position in the sibling-property numbering. | |
| unsigned char | symbol = 0 |
| Byte value, meaningful only at data leaves. | |
Definition at line 74 of file Adaptive_Huffman.H.
|
inlinenoexcept |
Test whether this node is a leaf.
Definition at line 86 of file Adaptive_Huffman.H.
References left.
Referenced by Aleph::Adaptive_Huffman_Decoder::decode_bit().
| int Aleph::adaptive_huffman_detail::Model::Node::left = -1 |
Left child index, or -1 at a leaf.
Definition at line 78 of file Adaptive_Huffman.H.
Referenced by Aleph::Adaptive_Huffman_Decoder::decode_bit(), is_leaf(), Aleph::adaptive_huffman_detail::Model::swap_nodes(), and Aleph::adaptive_huffman_detail::Model::update().
| int Aleph::adaptive_huffman_detail::Model::Node::order = 0 |
Position in the sibling-property numbering.
Definition at line 80 of file Adaptive_Huffman.H.
Referenced by Aleph::adaptive_huffman_detail::Model::block_leader(), Aleph::adaptive_huffman_detail::Model::reset(), Aleph::adaptive_huffman_detail::Model::swap_nodes(), and Aleph::adaptive_huffman_detail::Model::update().
| int Aleph::adaptive_huffman_detail::Model::Node::parent = -1 |
Parent index, or -1 at the root.
Definition at line 77 of file Adaptive_Huffman.H.
Referenced by Aleph::Adaptive_Huffman_Encoder::encode(), Aleph::adaptive_huffman_detail::Model::swap_nodes(), and Aleph::adaptive_huffman_detail::Model::update().
| int Aleph::adaptive_huffman_detail::Model::Node::right = -1 |
Right child index, or -1 at a leaf.
Definition at line 79 of file Adaptive_Huffman.H.
Referenced by Aleph::Adaptive_Huffman_Decoder::decode_bit(), Aleph::Adaptive_Huffman_Encoder::encode(), Aleph::adaptive_huffman_detail::Model::swap_nodes(), and Aleph::adaptive_huffman_detail::Model::update().
| unsigned char Aleph::adaptive_huffman_detail::Model::Node::symbol = 0 |
Byte value, meaningful only at data leaves.
Definition at line 81 of file Adaptive_Huffman.H.
Referenced by Aleph::Adaptive_Huffman_Decoder::decode_bit(), and Aleph::adaptive_huffman_detail::Model::update().
| std::uint64_t Aleph::adaptive_huffman_detail::Model::Node::weight = 0 |
Subtree frequency.
Definition at line 76 of file Adaptive_Huffman.H.
Referenced by Aleph::adaptive_huffman_detail::Model::block_leader(), Aleph::Adaptive_Huffman_Encoder::frequency(), Aleph::Adaptive_Huffman_Decoder::frequency(), Aleph::Adaptive_Huffman_Encoder::symbols_processed(), Aleph::Adaptive_Huffman_Decoder::symbols_processed(), and Aleph::adaptive_huffman_detail::Model::update().