|
smollerGraph 0.20.2
A small graph database, from scratch
|
A page pinned in a buffer pool. More...
#include <buffer_pool.h>
Public Member Functions | |
| PageHandle (BufferPool &pool, size_t frame) | |
| ~PageHandle () | |
| PageHandle (const PageHandle &)=delete | |
| PageHandle & | operator= (const PageHandle &)=delete |
| const Page & | read () const |
| The page, to read. | |
| Page & | write () |
| The page, to change, which marks it to be written back to the file. | |
A page pinned in a buffer pool.
The pool doesn't evict a pinned page, and the handle unpins it when it goes away.
Definition at line 17 of file buffer_pool.h.
|
inline |
Definition at line 19 of file buffer_pool.h.
| smollergraph::PageHandle::~PageHandle | ( | ) |
Definition at line 8 of file buffer_pool.cc.
|
delete |
|
delete |
| const Page & smollergraph::PageHandle::read | ( | ) | const |
The page, to read.
Definition at line 10 of file buffer_pool.cc.
| Page & smollergraph::PageHandle::write | ( | ) |
The page, to change, which marks it to be written back to the file.
Definition at line 12 of file buffer_pool.cc.