Moses::BitWrapper< Container > Class Template Reference

#include <CanonicalHuffman.h>

List of all members.

Public Member Functions

 BitWrapper (Container &data)
bool Read ()
void Put (bool bit)
size_t Tell ()
size_t TellFromEnd ()
void Seek (size_t bitPos)
void SeekFromEnd (size_t bitPosFromEnd)
void Reset ()
Container & GetContainer ()


Detailed Description

template<class Container = std::string>
class Moses::BitWrapper< Container >

Definition at line 251 of file CanonicalHuffman.h.


Constructor & Destructor Documentation

template<class Container = std::string>
Moses::BitWrapper< Container >::BitWrapper ( Container &  data  )  [inline]

Definition at line 265 of file CanonicalHuffman.h.


Member Function Documentation

template<class Container = std::string>
Container& Moses::BitWrapper< Container >::GetContainer (  )  [inline]

Definition at line 319 of file CanonicalHuffman.h.

template<class Container = std::string>
void Moses::BitWrapper< Container >::Put ( bool  bit  )  [inline]

Definition at line 281 of file CanonicalHuffman.h.

template<class Container = std::string>
bool Moses::BitWrapper< Container >::Read (  )  [inline]

Definition at line 270 of file CanonicalHuffman.h.

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

Here is the caller graph for this function:

template<class Container = std::string>
void Moses::BitWrapper< Container >::Reset (  )  [inline]

Definition at line 313 of file CanonicalHuffman.h.

template<class Container = std::string>
void Moses::BitWrapper< Container >::Seek ( size_t  bitPos  )  [inline]

Definition at line 301 of file CanonicalHuffman.h.

Referenced by Moses::BitWrapper< Container >::SeekFromEnd().

Here is the caller graph for this function:

template<class Container = std::string>
void Moses::BitWrapper< Container >::SeekFromEnd ( size_t  bitPosFromEnd  )  [inline]

Definition at line 308 of file CanonicalHuffman.h.

References Moses::BitWrapper< Container >::Seek().

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

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Container = std::string>
size_t Moses::BitWrapper< Container >::Tell (  )  [inline]

Definition at line 291 of file CanonicalHuffman.h.

template<class Container = std::string>
size_t Moses::BitWrapper< Container >::TellFromEnd (  )  [inline]

Definition at line 295 of file CanonicalHuffman.h.

Referenced by Moses::PhraseDecoder::DecodeCollection(), and Moses::CanonicalHuffman< unsigned >::Read().

Here is the caller graph for this function:


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