#include <memoryMap.h>


Public Member Functions | |
| MemoryMap () | |
| Construct a new memory map. | |
| ~MemoryMap () | |
| Destruct the memory map. | |
| const void * | map (const std::string &fileName) |
| Map a file to a memory address. | |
| void | unmap () |
| Unmap the file. | |
| const void * | getAddress () const |
| size_t | getSize () const |
Definition at line 31 of file memoryMap.h.
| eq::base::MemoryMap::MemoryMap | ( | ) |
| eq::base::MemoryMap::~MemoryMap | ( | ) |
Destruct the memory map.
Unmaps the file, if it is still mapped.
Definition at line 43 of file memoryMap.cpp.
References unmap().

| const void * eq::base::MemoryMap::map | ( | const std::string & | fileName | ) |
Map a file to a memory address.
Currently the file is only mapped read-only. The file is automatically unmapped when the memory map is deleted.
| fileName | The filename of the file to map. |
Definition at line 49 of file memoryMap.cpp.
References EQWARN.
Referenced by eq::Image::readImage().

| void eq::base::MemoryMap::unmap | ( | ) |
Unmap the file.
Definition at line 114 of file memoryMap.cpp.
References EQWARN.
Referenced by ~MemoryMap().

| const void* eq::base::MemoryMap::getAddress | ( | ) | const [inline] |
Definition at line 60 of file memoryMap.h.
Referenced by eq::Image::readImage().

| size_t eq::base::MemoryMap::getSize | ( | ) | const [inline] |
Definition at line 63 of file memoryMap.h.
Referenced by eq::Image::readImage().

0.9 by
1.5.8