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

#include <map>
#include <iostream>
#include <sstream>
#include "tpt_typedefs.h"
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  tpt

Defines

#define FLAGBITS   2
#define FLAGMASK   (uchar(3))
#define HAS_VALUE_MASK   (uchar(2))
#define HAS_CHILD_MASK   (uchar(1))

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 (std::istream &in, filepos_type start, filepos_type stop, id_type key, unsigned char &flags)
bool tpt::tightfind_noflags (std::istream &in, filepos_type start, filepos_type stop, id_type key)
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::tightfind_midpoint (std::istream &in, filepos_type start, filepos_type stop)
char const * tpt::tightread2 (char const *start, char const *stop, uint16_t &dest)
char const * tpt::tightread4 (char const *start, char const *stop, uint32_t &dest)
char const * tpt::tightread8 (char const *start, char const *stop, uint64_t &dest)
template<typename numType >
char const * tpt::tightread (char const *start, char const *stop, numType &dest)

Variables

bool debug


Define Documentation

#define FLAGBITS   2

Definition at line 18 of file tpt_tightindex.h.

Referenced by tpt::linear_search(), and tpt::tightfind().

#define FLAGMASK   (uchar(3))

Definition at line 19 of file tpt_tightindex.h.

Referenced by tpt::linear_search(), and tpt::tightfind().

#define HAS_CHILD_MASK   (uchar(1))

Definition at line 21 of file tpt_tightindex.h.

#define HAS_VALUE_MASK   (uchar(2))

Definition at line 20 of file tpt_tightindex.h.


Variable Documentation

bool debug


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