#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) |
unsigned int bytes_to_int | ( | std::vector< unsigned char > | number | ) | [inline] |
Definition at line 425 of file huffmanish.cpp.
Referenced by vbyte_decode_line().
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().
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().
unsigned int reinterpret_float | ( | float * | num | ) | [inline] |
Definition at line 344 of file huffmanish.cpp.
Referenced by Huffman::encode_line().
float reinterpret_uint | ( | unsigned int * | num | ) | [inline] |
Definition at line 351 of file huffmanish.cpp.
Referenced by HuffmanDecoder::decode_line().
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().
std::vector<unsigned char> vbyte_encode | ( | unsigned int | num | ) | [inline] |
Definition at line 361 of file huffmanish.cpp.
Referenced by vbyte_encode_line().
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().