MemMappedFile Class Reference
Public Member Functions | |
MemMappedFile (int objSize, int nrObj, int memSize, const char *fileN, bool isWritable=true) | |
~MemMappedFile () | |
void | setWritePermission (bool isWritable) |
char * | map (int i) |
Protected Attributes | |
int | memBlockSize |
int | objectSize |
int | pageSize |
int | firstObject |
int | nrObjects |
int | totNrObjects |
int | fileDescriptor |
bool | isWritable |
char * | memoryPool |
Constructor & Destructor Documentation
MemMappedFile::MemMappedFile | ( | int | objSize, | |
int | nrObj, | |||
int | memSize, | |||
const char * | fileN, | |||
bool | isWr = true | |||
) |
- Todo:
- docs
References fileDescriptor, firstObject, isWritable, memBlockSize, memoryPool, nrObjects, objectSize, pageSize, and totNrObjects.
MemMappedFile::~MemMappedFile | ( | ) |
Member Function Documentation
char * MemMappedFile::map | ( | int | i | ) |
- Todo:
- docs
References fileDescriptor, firstObject, isWritable, memBlockSize, memoryPool, nrObjects, objectSize, and pageSize.
void MemMappedFile::setWritePermission | ( | bool | isWr | ) |
Member Data Documentation
int MemMappedFile::fileDescriptor [protected] |
Referenced by map(), and MemMappedFile().
int MemMappedFile::firstObject [protected] |
Referenced by map(), and MemMappedFile().
bool MemMappedFile::isWritable [protected] |
Referenced by map(), MemMappedFile(), setWritePermission(), and ~MemMappedFile().
int MemMappedFile::memBlockSize [protected] |
Referenced by map(), MemMappedFile(), and ~MemMappedFile().
char* MemMappedFile::memoryPool [protected] |
Referenced by map(), MemMappedFile(), and ~MemMappedFile().
int MemMappedFile::nrObjects [protected] |
Referenced by map(), and MemMappedFile().
int MemMappedFile::objectSize [protected] |
Referenced by map(), and MemMappedFile().
int MemMappedFile::pageSize [protected] |
Referenced by map(), and MemMappedFile().
int MemMappedFile::totNrObjects [protected] |
Referenced by MemMappedFile().