/disk4/html/www/moses/doxygen/irstlm/trunk/src/mdiadapt.cpp File Reference

#include <cmath>
#include <string>
#include <assert.h>
#include "util.h"
#include "mfstream.h"
#include "mempool.h"
#include "htable.h"
#include "dictionary.h"
#include "n_gram.h"
#include "ngramcache.h"
#include "ngramtable.h"
#include "normcache.h"
#include "interplm.h"
#include "mdiadapt.h"
#include "shiftlm.h"
#include "lmtable.h"

Go to the source code of this file.

Functions

int swapbytes (char *p, int sz, int n)
void fwritex (char *p, int sz, int n, FILE *f)
void ifwrite (long loc, void *ptr, int size, int, FILE *f)
void writeNull (unsigned short nullCode, float nullProb, FILE *f)


Function Documentation

void fwritex ( char *  p,
int  sz,
int  n,
FILE *  f 
)

Definition at line 688 of file mdiadapt.cpp.

References swapbytes().

Referenced by ifwrite(), mdiadaptlm::saveASR(), and writeNull().

Here is the call graph for this function:

Here is the caller graph for this function:

void ifwrite ( long  loc,
void *  ptr,
int  size,
int  ,
FILE *  f 
)

Definition at line 701 of file mdiadapt.cpp.

References fseek(), ftell(), and fwritex().

Referenced by mdiadaptlm::saveASR().

Here is the call graph for this function:

Here is the caller graph for this function:

int swapbytes ( char *  p,
int  sz,
int  n 
)

Definition at line 676 of file mdiadapt.cpp.

Referenced by fwritex().

Here is the caller graph for this function:

void writeNull ( unsigned short  nullCode,
float  nullProb,
FILE *  f 
)

Definition at line 716 of file mdiadapt.cpp.

References fwritex().

Referenced by mdiadaptlm::saveASR().

Here is the call graph for this function:

Here is the caller graph for this function:


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