itpp::HuffmanCoder::HuffmanCoder::sort_elem Class Reference

Internal class to create the huffman table. More...

#include <HuffmanCoder.h>

List of all members.

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 !=.


Detailed Description

Internal class to create the huffman table.

Member Function Documentation

unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::getFrequency (  )  const [inline]

getter for the frequency of the symbol value.

Returns:
Frequency of occurence of the element.

unsigned int itpp::HuffmanCoder::HuffmanCoder::sort_elem::getSymbol (  )  const [inline]

getter for the symbol value.

Returns:
Symbol value of the element.

void itpp::HuffmanCoder::HuffmanCoder::sort_elem::setSymbol ( unsigned int  symbol  )  [inline]

Setter for the symbol value.

Parameters:
symbol Symbol value for the element.


Member Data Documentation

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


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

Generated on Mon Feb 9 17:40:07 2009 for Huffman-Coder by  doxygen 1.5.8