lab_huffman
Hazardous Huffman Codes
|
TreeNode class: internal representation of the Huffman tree. More...
Public Member Functions | |
TreeNode (Frequency theFreq) | |
Builds a new TreeNode with the given frequency as data. More... | |
TreeNode (int frequency) | |
Builds a new TreeNode with the given integer as its frequency counter, used for building internal nodes. More... | |
Public Attributes | |
Frequency | freq |
Data for this TreeNode: contains a character and a frquency count. More... | |
TreeNode * | left |
Left child of this TreeNode. More... | |
TreeNode * | right |
Right child of this TreeNode. More... | |
TreeNode class: internal representation of the Huffman tree.
Done using linked memory.
|
inline |
|
inline |
Builds a new TreeNode with the given integer as its frequency counter, used for building internal nodes.
frequency | The frequency for this internal node. |
Frequency HuffmanTree::TreeNode::freq |
Data for this TreeNode: contains a character and a frquency count.