/disk4/html/www/moses/doxygen/mosesdecoder/moses/TranslationModel/UG/mm/tpt_tightindex.cc File Reference

#include <iostream>
#include <cassert>
#include "tpt_tightindex.h"

Go to the source code of this file.

Namespaces

namespace  tpt

Defines

#define DEBUG_TIGHTREAD   0
#define DEBUG_TIGHTFIND   0

Functions

void tpt::tightwrite (std::ostream &out, uint64_t data, bool flag)
filepos_type tpt::tightread (std::istream &in, std::ios::pos_type stop)
bool tpt::tightfind_midpoint (std::istream &in, filepos_type start, filepos_type stop)
char const * tpt::tightfind_midpoint (char const *const start, char const *const stop)
bool tpt::linear_search (std::istream &in, filepos_type start, filepos_type stop, id_type key, unsigned char &flags)
bool tpt::tightfind (std::istream &in, filepos_type start, filepos_type stop, id_type key, unsigned char &flags)
char const * tpt::tightfind (char const *const start, char const *const stop, id_type key, unsigned char &flags)
char const * tpt::tightfind_noflags (char const *const start, char const *const stop, id_type key)
bool tpt::linear_search_noflags (std::istream &in, filepos_type start, filepos_type stop, id_type key)
bool tpt::tightfind_noflags (std::istream &in, filepos_type start, filepos_type stop, id_type key)
void tpt::tightwrite2 (std::ostream &out, size_t data, bool flag)
char const * tpt::tightread8 (char const *start, char const *stop, uint64_t &dest)
char const * tpt::tightread4 (char const *start, char const *stop, uint32_t &dest)
char const * tpt::tightread2 (char const *start, char const *stop, uint16_t &dest)


Define Documentation

#define DEBUG_TIGHTFIND   0

Definition at line 149 of file tpt_tightindex.cc.

#define DEBUG_TIGHTREAD   0

Definition at line 81 of file tpt_tightindex.cc.


Generated on Thu Jul 6 00:31:34 2017 for Moses by  doxygen 1.5.9