read-only mmap C++ class