Syndicate::Data::HuffmanTable Class Reference

#include <Syndicate/Data/HuffmanTable.h>

List of all members.

Public Member Functions

 HuffmanTable (Bitstream *bs)
 ~HuffmanTable (void)
unsigned getValue (Bitstream *bs=0)

Private Attributes

Node_root
Bitstream_bs

Classes

struct  Node


Detailed Description

This class implement a huffman tree specific to the RNC bitsream format. This implementation is not realy performant because we build a "complete" tree, which is easier to understand when we read the code i think.


Constructor & Destructor Documentation

Syndicate::Data::HuffmanTable::HuffmanTable ( Bitstream bs  ) 

Instanciate a tree with the given stream.

Parameters:
[in] bs a pointer to the stream

Syndicate::Data::HuffmanTable::~HuffmanTable ( void   ) 


Member Function Documentation

unsigned Syndicate::Data::HuffmanTable::getValue ( Bitstream bs = 0  ) 

Give the value of the tree according to the stream.

Parameters:
[in] bs is a pointer to a stream. If not given take the original stream.
Returns:
the value.


Member Data Documentation

Node* Syndicate::Data::HuffmanTable::_root [private]

Bitstream* Syndicate::Data::HuffmanTable::_bs [private]


The documentation for this class was generated from the following file:
Generated on Sun Sep 30 13:08:36 2007 for libSyndicate by  doxygen 1.5.2