From 14641621504f22a7c6874421d94b1f399666b336 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 22 Jun 2013 03:09:00 +0000 Subject: * include/FileMapping.H: New. --- src/include/storage.H | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/include/storage.H') diff --git a/src/include/storage.H b/src/include/storage.H index cd3a723a..6800dc16 100644 --- a/src/include/storage.H +++ b/src/include/storage.H @@ -294,25 +294,6 @@ namespace OpenAxiom { last->~T(); } } - - // ----------------- - // -- FileMapping -- - // ----------------- - struct FileMapping { - explicit FileMapping(std::string); - FileMapping(FileMapping&&); - ~FileMapping(); - const Byte* begin() const { return start; } - const Byte* end() const { return begin() + extent; } - std::size_t size() const { return extent; } - protected: - Byte* start; // address at the mapped storage - size_t extent; // length (in bytes) of the storage - private: - FileMapping(const FileMapping&) = delete; - FileMapping& operator=(const FileMapping&) = delete; - }; - } } -- cgit v1.2.3