#include <HuffmanCoder.h>
Public Member Functions | |
sort_elem () | |
Constructor. | |
~sort_elem () | |
destructor | |
void | setSymbol (unsigned int symbol) |
Setter for the symbol value. | |
unsigned int | getSymbol () const |
getter for the symbol value. | |
unsigned int | getFrequency () const |
getter for the frequency of the symbol value. | |
void | operator++ () |
Increment operator for the frequency. | |
Protected Attributes | |
unsigned int | symbol |
unsigned int | rel_h |
Friends | |
bool | operator< (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator <. | |
bool | operator<= (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator <=. | |
bool | operator> (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator >. | |
bool | operator>= (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator >=. | |
bool | operator== (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator ==. | |
bool | operator!= (const HuffmanCoder::sort_elem &a, const HuffmanCoder::sort_elem &b) |
Compare operator !=. |
unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::getFrequency | ( | ) | const [inline] |
getter for the frequency of the symbol value.
unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::getSymbol | ( | ) | const [inline] |
getter for the symbol value.
void itpp::HuffmanCoder::HuffmanCoder::sort_elem::setSymbol | ( | unsigned int | symbol | ) | [inline] |
Setter for the symbol value.
symbol | Symbol value for the element. |
unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::rel_h [protected] |
frequency of the symbol
unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::symbol [protected] |
symbol value of the element