irstlm/src/util.h File Reference

#include <string>
#include <fstream>
#include "gzfilebuf.h"

Go to the source code of this file.

Classes

class  inputfilestream

Functions

std::string gettempfolder ()
void createtempfile (std::ofstream &fileStream, std::string &filePath, std::ios_base::openmode flags)
void removefile (const std::string &filePath)
void * MMap (int fd, int access, off_t offset, size_t len, off_t *gap)
int Munmap (void *p, size_t len, int sync)
void ResetUserTime ()
void PrintUserTime (const std::string &message)
double GetUserTime ()


Function Documentation

void createtempfile ( std::ofstream &  fileStream,
std::string &  filePath,
std::ios_base::openmode  flags 
)

std::string gettempfolder (  ) 

Definition at line 39 of file util.cpp.

Referenced by createtempfile().

Here is the caller graph for this function:

double GetUserTime (  ) 

Definition at line 120 of file Util.cpp.

References Moses::g_timer, Moses::Timer::get_elapsed_time(), and Timer::get_elapsed_time().

Referenced by Moses::SearchNormal::ProcessSentence(), and Moses::SearchCubePruning::ProcessSentence().

Here is the call graph for this function:

Here is the caller graph for this function:

void* MMap ( int  fd,
int  access,
off_t  offset,
size_t  len,
off_t *  gap 
)

Definition at line 132 of file util.cpp.

Referenced by lmtable::reset_mmap().

Here is the caller graph for this function:

int Munmap ( void *  p,
size_t  len,
int  sync 
)

Definition at line 181 of file util.cpp.

Referenced by lmtable::reset_mmap(), and lmtable::~lmtable().

Here is the caller graph for this function:

void PrintUserTime ( const std::string &  message  ) 

void removefile ( const std::string &  filePath  ) 

Definition at line 76 of file util.cpp.

Referenced by lmtable::checkbounds(), and main().

Here is the caller graph for this function:

void ResetUserTime (  ) 

Definition at line 110 of file Util.cpp.

References Moses::g_timer, Moses::Timer::start(), and Timer::start().

Referenced by Moses::StaticData::LoadData(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri Apr 15 13:04:15 2011 for Moses by  doxygen 1.5.9