spz3/PageTable.cpp

13 lines
285 B
C++
Raw Normal View History

2025-03-31 17:19:43 +03:00
#include "PageTable.h"
2025-04-01 14:10:01 +03:00
PageTable::PageTable(const unsigned int entry_num) {
entries.reserve(entry_num);
for (int i = 0; i < entry_num; ++i) {
entries.emplace_back();
}
}
PTE &PageTable::operator[](const unsigned int index) {
2025-03-31 17:19:43 +03:00
return this->entries.at(index);
}