diff options
author | dos-reis <gdr@axiomatics.org> | 2013-06-22 03:09:00 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-06-22 03:09:00 +0000 |
commit | 14641621504f22a7c6874421d94b1f399666b336 (patch) | |
tree | 668f18332f2bf5c1a86db36889c22ac04a950b03 /src/include/storage.H | |
parent | 6d072bf729ad585b2c9ce1f95b062726bba2c896 (diff) | |
download | open-axiom-14641621504f22a7c6874421d94b1f399666b336.tar.gz |
* include/FileMapping.H: New.
Diffstat (limited to 'src/include/storage.H')
-rw-r--r-- | src/include/storage.H | 19 |
1 files changed, 0 insertions, 19 deletions
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; - }; - } } |