MemMappedFile Class Reference

List of all members.


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 
)

MemMappedFile::~MemMappedFile (  ) 

Todo:
docs

References isWritable, memBlockSize, and memoryPool.


Member Function Documentation

char * MemMappedFile::map ( int  i  ) 

void MemMappedFile::setWritePermission ( bool  isWr  ) 

Todo:
docs

References isWritable.

Referenced by Shout_lm2bin::Shout_lm2bin().


Member Data Documentation

Referenced by map(), and MemMappedFile().

int MemMappedFile::firstObject [protected]

Referenced by map(), 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().