Creates instances of the class HuffmanEncodingTree.
More...
#include <DS_HuffmanEncodingTreeFactory.h>
List of all members.
Detailed Description
This class takes a frequency table and given that frequence table, will generate an instance of HuffmanEncodingTree
Definition at line 21 of file DS_HuffmanEncodingTreeFactory.h.
Constructor & Destructor Documentation
| RakNet::HuffmanEncodingTreeFactory::HuffmanEncodingTreeFactory |
( |
| ) |
|
Member Function Documentation
| void RakNet::HuffmanEncodingTreeFactory::AddToFrequencyTable |
( |
unsigned char * |
array, |
|
|
int |
size |
|
) |
| |
- Parameters:
-
| [in] | array | the data to insert into the frequency table |
| [in] | size | the size of the data to insert |
You can also use GetFrequencyTable and GenerateFromFrequencyTable in the tree itself
- Returns:
- The generated instance of HuffmanEncodingTree
| unsigned int* RakNet::HuffmanEncodingTreeFactory::GetFrequencyTable |
( |
void |
| ) |
|
- Returns:
- the address of the frenquency table
| void RakNet::HuffmanEncodingTreeFactory::GetFrequencyTable |
( |
unsigned int |
_frequency[256] | ) |
|
- Parameters:
-
| [in] | _frequency | The frequency table used currently |
| void RakNet::HuffmanEncodingTreeFactory::Reset |
( |
void |
| ) |
|
You don't need to call this unless you want to reuse the class for a new tree
Member Data Documentation
The documentation for this class was generated from the following file: