irstlm/src/util.cpp File Reference

#include <cstring>
#include <cstdlib>
#include <iostream>
#include <sys/types.h>
#include <sys/mman.h>
#include "timer.h"
#include "util.h"

Include dependency graph for util.cpp:


Functions

string gettempfolder ()
void createtempfile (ofstream &fileStream, 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 ()

Variables

Timer g_timer

Function Documentation

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

References gettempfolder().

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

Here is the call graph for this function:

Here is the caller graph for this function:

string gettempfolder (  ) 

Referenced by createtempfile().

Here is the caller graph for this function:

double GetUserTime (  ) 

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

Here is the call graph for this function:

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

Referenced by lmtable::reset_mmap().

Here is the caller graph for this function:

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

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

Here is the caller graph for this function:

void PrintUserTime ( const std::string &  message  ) 

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

Here is the call graph for this function:

void removefile ( const std::string &  filePath  ) 

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

Here is the caller graph for this function:

void ResetUserTime (  ) 

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

Here is the call graph for this function:


Variable Documentation


Generated on Fri Jul 30 20:05:14 2010 for Moses by  doxygen 1.5.9