#include "History.h"
Public Member Functions | |
HistoryFile () | |
virtual | ~HistoryFile () |
virtual void | add (const unsigned char *bytes, int len) |
virtual void | get (unsigned char *bytes, int len, int loc) |
bool | isMapped () |
virtual int | len () |
void | map () |
void | unmap () |
Private Attributes | |
char * | fileMap |
int | ion |
int | length |
int | readWriteBalance |
QTemporaryFile | tmpFile |
Static Private Attributes | |
static const int | MAP_THRESHOLD = -1000 |
HistoryFile::HistoryFile | ( | ) |
Definition at line 85 of file History.cpp.
|
virtual |
Definition at line 97 of file History.cpp.
|
virtual |
Definition at line 134 of file History.cpp.
References fileMap, ion, len(), length, readWriteBalance, SEEK_SET, and unmap().
Referenced by HistoryScrollFile::addCells(), and HistoryScrollFile::addLine().
|
virtual |
Definition at line 148 of file History.cpp.
References fileMap, ion, len(), length, loc, map(), MAP_THRESHOLD, readWriteBalance, and SEEK_SET.
Referenced by HistoryScrollFile::getCells(), HistoryScrollFile::isWrappedLine(), and HistoryScrollFile::startOfLine().
bool HistoryFile::isMapped | ( | ) |
Definition at line 129 of file History.cpp.
References fileMap.
Referenced by HistoryScrollFile::addLine(), and HistoryScrollFile::startOfLine().
|
virtual |
Definition at line 174 of file History.cpp.
References length.
Referenced by add(), HistoryScrollFile::addLine(), get(), HistoryScrollFile::getLines(), and HistoryScrollFile::startOfLine().
void HistoryFile::map | ( | ) |
Definition at line 106 of file History.cpp.
References fileMap, ion, length, and readWriteBalance.
Referenced by get(), and HistoryScrollFile::startOfLine().
void HistoryFile::unmap | ( | ) |
Definition at line 121 of file History.cpp.
References fileMap, and length.
Referenced by ~HistoryFile(), add(), and HistoryScrollFile::addLine().
|
private |
Definition at line 60 of file History.h.
Referenced by ~HistoryFile(), add(), get(), isMapped(), map(), and unmap().
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
Definition at line 57 of file History.h.
Referenced by HistoryFile().