Libosmium
2.7.1
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <memory_mapping.hpp>
Public Member Functions | |
AnonymousMemoryMapping (size_t size) | |
![]() | |
MemoryMapping (size_t size, mapping_mode mode, int fd=-1, off_t offset=0) | |
OSMIUM_DEPRECATED | MemoryMapping (size_t size, bool writable=true, int fd=-1, off_t offset=0) |
MemoryMapping (const MemoryMapping &)=delete | |
You can not copy construct a MemoryMapping. More... | |
MemoryMapping & | operator= (const MemoryMapping &)=delete |
You can not copy a MemoryMapping. More... | |
MemoryMapping (MemoryMapping &&other) | |
MemoryMapping & | operator= (MemoryMapping &&other) |
~MemoryMapping () noexcept | |
void | unmap () |
void | resize (size_t new_size) |
operator bool () const noexcept | |
size_t | size () const noexcept |
int | fd () const noexcept |
bool | writable () const noexcept |
template<typename T = void> | |
T * | get_addr () const |
Additional Inherited Members | |
![]() | |
enum | mapping_mode { mapping_mode::readonly = 0, mapping_mode::write_private = 1, mapping_mode::write_shared = 2 } |
Anonymous memory mapping.
Usage for anonymous mapping:
|
inline |