mosesdecoder/moses/TranslationModel/ProbingPT/huffmanish.hh File Reference

#include "hash.hh"
#include "line_splitter.hh"
#include <cstdio>
#include <fstream>
#include <iostream>
#include <sstream>
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/map.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>

Go to the source code of this file.

Classes

struct  sort_pair
struct  sort_pair_vec
class  Huffman
class  HuffmanDecoder

Functions

std::string getTargetWordsFromIDs (std::vector< unsigned int > ids, std::map< unsigned int, std::string > *lookup_target_phrase)
std::string getTargetWordFromID (unsigned int id, std::map< unsigned int, std::string > *lookup_target_phrase)
unsigned int reinterpret_float (float *num)
float reinterpret_uint (unsigned int *num)
std::vector< unsigned char > vbyte_encode_line (std::vector< unsigned int > line)
std::vector< unsigned char > vbyte_encode (unsigned int num)
std::vector< unsigned int > vbyte_decode_line (std::vector< unsigned char > line)
unsigned int bytes_to_int (std::vector< unsigned char > number)


Function Documentation

unsigned int bytes_to_int ( std::vector< unsigned char >  number  )  [inline]

Definition at line 425 of file huffmanish.cpp.

Referenced by vbyte_decode_line().

Here is the caller graph for this function:

std::string getTargetWordFromID ( unsigned int  id,
std::map< unsigned int, std::string > *  lookup_target_phrase 
) [inline]

Definition at line 325 of file huffmanish.cpp.

Referenced by getTargetWordsFromIDs().

Here is the caller graph for this function:

std::string getTargetWordsFromIDs ( std::vector< unsigned int >  ids,
std::map< unsigned int, std::string > *  lookup_target_phrase 
)

Definition at line 330 of file huffmanish.cpp.

References getTargetWordFromID().

Referenced by QueryEngine::printTargetInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int reinterpret_float ( float *  num  )  [inline]

Definition at line 344 of file huffmanish.cpp.

Referenced by Huffman::encode_line().

Here is the caller graph for this function:

float reinterpret_uint ( unsigned int *  num  )  [inline]

Definition at line 351 of file huffmanish.cpp.

Referenced by HuffmanDecoder::decode_line().

Here is the caller graph for this function:

std::vector<unsigned int> vbyte_decode_line ( std::vector< unsigned char >  line  ) 

Definition at line 409 of file huffmanish.cpp.

References bytes_to_int().

Referenced by HuffmanDecoder::full_decode_line().

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<unsigned char> vbyte_encode ( unsigned int  num  )  [inline]

Definition at line 361 of file huffmanish.cpp.

Referenced by vbyte_encode_line().

Here is the caller graph for this function:

std::vector<unsigned char> vbyte_encode_line ( std::vector< unsigned int >  line  ) 

Definition at line 440 of file huffmanish.cpp.

References vbyte_encode().

Referenced by Huffman::full_encode_line().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu Oct 6 00:31:09 2016 for Moses by  doxygen 1.5.9