#include <mmap.h>
Currently, this is only read-only.
Copy semanthics are the same as auto_ptr
Public Member Functions | |
MMap () | |
MMap (const MMap &mmap) | |
MMap (const std::string &filename) | |
~MMap () | |
MMap & | operator= (const MMap &mmap) |
void | map (const std::string &filename) |
void | unmap () |
Public Attributes | |
std::string | filename |
size_t | size |
int | fd |
const char * | buf |
wibble::sys::MMap::MMap | ( | ) |
wibble::sys::MMap::~MMap | ( | ) |
References unmap().
void wibble::sys::MMap::map | ( | const std::string & | filename | ) |
void wibble::sys::MMap::unmap | ( | ) |
References buf, fd, filename, and size.
Referenced by map(), MMap(), operator=(), TestMMap::simple(), and ~MMap().
std::string wibble::sys::MMap::filename |
Referenced by MMap(), operator=(), TestMMap::simple(), and unmap().
size_t wibble::sys::MMap::size |
Referenced by map(), MMap(), operator=(), TestMMap::simple(), and unmap().
Referenced by map(), MMap(), operator=(), TestMMap::simple(), and unmap().
const char* wibble::sys::MMap::buf |
Referenced by map(), MMap(), operator=(), TestMMap::simple(), and unmap().