Public Member Functions | Private Member Functions | Private Attributes

MemoryFile Class Reference

#include <MemoryImpl.h>

Inheritance diagram for MemoryFile:
Inheritance graph
[legend]
Collaboration diagram for MemoryFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MemoryFile (const std::string file)
virtual ~MemoryFile ()
virtual void fillBuffer (u8 *buffer, u64 offset, unsigned int length) const
virtual u8 getByte (u64 offset) const
virtual void putByte (u64 offset, u8 value) const
virtual int incReopenHint ()
virtual int decReopenHint ()

Private Member Functions

 MemoryFile ()
 MemoryFile (const MemoryFile &source)
MemoryFileoperator= (const MemoryFile &source)

Private Attributes

const std::string filename
FILE * fd
bool rw
int reopenHint

Detailed Description

Definition at line 44 of file MemoryImpl.h.


Constructor & Destructor Documentation

MemoryFile ( const std::string  file  )  [explicit]
~MemoryFile (  )  [virtual]

Definition at line 129 of file Memory.cpp.

References MemoryFile::fd.

MemoryFile (  )  [private]
MemoryFile ( const MemoryFile source  )  [private]

Member Function Documentation

virtual int decReopenHint (  )  [inline, virtual]

Implements IMemory.

Definition at line 55 of file MemoryImpl.h.

void fillBuffer ( u8 buffer,
u64  offset,
unsigned int  length 
) const [virtual]

Implements IMemory.

Definition at line 146 of file Memory.cpp.

References _, MemoryFile::fd, MemoryFile::filename, FSEEK, and MemoryFile::reopenHint.

Referenced by MemoryFile::getByte().

u8 getByte ( u64  offset  )  const [virtual]

Implements IMemory.

Definition at line 138 of file Memory.cpp.

References MemoryFile::fillBuffer().

Here is the call graph for this function:

virtual int incReopenHint (  )  [inline, virtual]

Implements IMemory.

Definition at line 54 of file MemoryImpl.h.

References MemoryFile::reopenHint.

MemoryFile& operator= ( const MemoryFile source  )  [private]
void putByte ( u64  offset,
u8  value 
) const [virtual]

Implements IMemory.

Definition at line 195 of file Memory.cpp.

References _, MemoryFile::fd, MemoryFile::filename, FSEEK, MemoryFile::reopenHint, and MemoryFile::rw.


Member Data Documentation

FILE* fd [mutable, private]
const std::string filename [private]

Definition at line 55 of file MemoryImpl.h.

Referenced by MemoryFile::fillBuffer(), and MemoryFile::putByte().

int reopenHint [private]
bool rw [private]

Definition at line 60 of file MemoryImpl.h.

Referenced by MemoryFile::putByte().


The documentation for this class was generated from the following files: