Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HuffmanEncoder Class Reference

Huffman Encoder. More...

#include <zdeflate.h>

Collaboration diagram for HuffmanEncoder:
[legend]

Classes

struct  Code
 

Public Types

typedef unsigned int code_t
 
typedef unsigned int value_t
 

Public Member Functions

 HuffmanEncoder ()
 Construct a HuffmanEncoder. More...
 
 HuffmanEncoder (const unsigned int *codeBits, unsigned int nCodes)
 Construct a HuffmanEncoder. More...
 
void Initialize (const unsigned int *codeBits, unsigned int nCodes)
 Initialize or reinitialize this object. More...
 
void Encode (LowFirstBitWriter &writer, value_t value) const
 

Static Public Member Functions

static void GenerateCodeLengths (unsigned int *codeBits, unsigned int maxCodeBits, const unsigned int *codeCounts, size_t nCodes)
 

Public Attributes

SecBlock< Codem_valueToCode
 

Detailed Description

Huffman Encoder.

Since
Crypto++ 1.0

Definition at line 43 of file zdeflate.h.

Member Typedef Documentation

typedef unsigned int HuffmanEncoder::code_t

Definition at line 46 of file zdeflate.h.

typedef unsigned int HuffmanEncoder::value_t

Definition at line 47 of file zdeflate.h.

Constructor & Destructor Documentation

HuffmanEncoder::HuffmanEncoder ( )
inline

Construct a HuffmanEncoder.

Definition at line 50 of file zdeflate.h.

Here is the call graph for this function:

HuffmanEncoder::HuffmanEncoder ( const unsigned int *  codeBits,
unsigned int  nCodes 
)

Construct a HuffmanEncoder.

Parameters
codeBitsa table of code bits
nCodesthe number of codes in the table

Definition at line 94 of file zdeflate.cpp.

Here is the call graph for this function:

Member Function Documentation

void HuffmanEncoder::Encode ( LowFirstBitWriter writer,
value_t  value 
) const
inline

Definition at line 225 of file zdeflate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HuffmanEncoder::GenerateCodeLengths ( unsigned int *  codeBits,
unsigned int  maxCodeBits,
const unsigned int *  codeCounts,
size_t  nCodes 
)
static

Definition at line 119 of file zdeflate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HuffmanEncoder::Initialize ( const unsigned int *  codeBits,
unsigned int  nCodes 
)

Initialize or reinitialize this object.

Parameters
codeBitsa table of code bits
nCodesthe number of codes in the table

Definition at line 193 of file zdeflate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

SecBlock<Code> HuffmanEncoder::m_valueToCode

Definition at line 72 of file zdeflate.h.


The documentation for this class was generated from the following files: