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

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 |
| void createtempfile | ( | ofstream & | fileStream, | |
| string & | filePath, | |||
| std::ios_base::openmode | flags | |||
| ) |
References gettempfolder().
Referenced by lmtable::checkbounds(), and main().


| string gettempfolder | ( | ) |
| double GetUserTime | ( | ) |
References Moses::g_timer, Moses::Timer::get_elapsed_time(), and Timer::get_elapsed_time().

| void* MMap | ( | int | fd, | |
| int | access, | |||
| off_t | offset, | |||
| size_t | len, | |||
| off_t * | gap | |||
| ) |
| int Munmap | ( | void * | p, | |
| size_t | len, | |||
| int | sync | |||
| ) |
Referenced by lmtable::reset_mmap(), and lmtable::~lmtable().

| void PrintUserTime | ( | const std::string & | message | ) |
References Moses::Timer::check(), Timer::check(), and Moses::g_timer.

| void removefile | ( | const std::string & | filePath | ) |
| void ResetUserTime | ( | ) |
References Moses::g_timer, Moses::Timer::start(), and Timer::start().

1.5.9