Moses::CanonicalHuffman< Data > Class Template Reference

#include <CanonicalHuffman.h>

Inheritance diagram for Moses::CanonicalHuffman< Data >:

Inheritance graph
[legend]

List of all members.

Classes

struct  MinHeapSorter

Public Member Functions

template<class Iterator >
 CanonicalHuffman (Iterator begin, Iterator end, bool forEncoding=true)
 CanonicalHuffman (std::FILE *pFile, bool forEncoding=false)
template<class BitWrapper >
void Put (BitWrapper &bitWrapper, Data data)
template<class BitWrapper >
Data Read (BitWrapper &bitWrapper)
size_t Load (std::FILE *pFile)
size_t Save (std::FILE *pFile)


Detailed Description

template<typename Data>
class Moses::CanonicalHuffman< Data >

Definition at line 36 of file CanonicalHuffman.h.


Constructor & Destructor Documentation

template<typename Data>
template<class Iterator >
Moses::CanonicalHuffman< Data >::CanonicalHuffman ( Iterator  begin,
Iterator  end,
bool  forEncoding = true 
) [inline]

Definition at line 176 of file CanonicalHuffman.h.

template<typename Data>
Moses::CanonicalHuffman< Data >::CanonicalHuffman ( std::FILE *  pFile,
bool  forEncoding = false 
) [inline]

Definition at line 185 of file CanonicalHuffman.h.


Member Function Documentation

template<typename Data>
size_t Moses::CanonicalHuffman< Data >::Load ( std::FILE *  pFile  )  [inline]

Definition at line 211 of file CanonicalHuffman.h.

Referenced by Moses::CanonicalHuffman< unsigned >::CanonicalHuffman().

Here is the caller graph for this function:

template<typename Data>
template<class BitWrapper >
void Moses::CanonicalHuffman< Data >::Put ( BitWrapper bitWrapper,
Data  data 
) [inline]

Definition at line 193 of file CanonicalHuffman.h.

template<typename Data>
template<class BitWrapper >
Data Moses::CanonicalHuffman< Data >::Read ( BitWrapper bitWrapper  )  [inline]

Definition at line 198 of file CanonicalHuffman.h.

Referenced by Moses::PhraseDecoder::DecodeCollection().

Here is the caller graph for this function:

template<typename Data>
size_t Moses::CanonicalHuffman< Data >::Save ( std::FILE *  pFile  )  [inline]

Definition at line 231 of file CanonicalHuffman.h.


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

Generated on Thu Jul 6 00:33:37 2017 for Moses by  doxygen 1.5.9