2021-03-31 | Paul Boddie | raw annotate files changeset graph | Removed the largely superfluous accessing abstraction. Since each accessor will only employ one page mapper referencing the accessor, a mapping from file identifiers to page mappers can be maintained. |
1 #pragma once 2 3 #include "region.h" 4 5 6 7 /* A memory pool interface. */ 8 9 class Memory 10 { 11 public: 12 virtual ~Memory() 13 { 14 } 15 16 virtual Region *region() = 0; 17 18 virtual offset_t region_size() = 0; 19 20 virtual void release(Region *region) = 0; 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4