#include <HuffmanEncodingTreeFactory.h>
Public Member Functions | |
HuffmanEncodingTreeFactory () | |
void | Reset (void) |
void | AddToFrequencyTable (unsigned char *array, int size) |
void | GetFrequencyTable (unsigned long _frequency[256]) |
unsigned long * | GetFrequencyTable (void) |
HuffmanEncodingTree * | GenerateTree (void) |
Private Attributes | |
unsigned long | frequency [256] |
|
Default Constructor |
|
Pass an array of bytes to this to add those elements to the frequency table
|
|
Generate a HuffmanEncodingTree. You can also use GetFrequencyTable and GenerateFromFrequencyTable in the tree itself |
|
Returns the frequency table as a pointer
|
|
Copies the frequency table to the array passed Retrieve the frequency table
|
|
Reset the frequency table. You don't need to call this unless you want to reuse the class for a new tree |
|
256 frequencies. |