A file of pages, each read and written whole, by its number.
More...
#include <pager.h>
A file of pages, each read and written whole, by its number.
Definition at line 23 of file pager.h.
◆ Pager() [1/2]
| smollergraph::Pager::Pager |
( |
| ) |
|
|
default |
◆ ~Pager()
| smollergraph::Pager::~Pager |
( |
| ) |
|
◆ Pager() [2/2]
| smollergraph::Pager::Pager |
( |
const Pager & |
| ) |
|
|
delete |
◆ Open()
| absl::Status smollergraph::Pager::Open |
( |
const std::string & |
path | ) |
|
Opens the file at path, creating it when it isn't there.
Definition at line 32 of file pager.cc.
◆ OpenTemporary()
| absl::Status smollergraph::Pager::OpenTemporary |
( |
| ) |
|
Opens a file with no name, which is deleted once it's closed.
Definition at line 36 of file pager.cc.
◆ operator=()
| Pager & smollergraph::Pager::operator= |
( |
const Pager & |
| ) |
|
|
delete |
◆ page_count()
| PageId smollergraph::Pager::page_count |
( |
| ) |
const |
|
inline |
◆ Read()
| void smollergraph::Pager::Read |
( |
PageId |
id, |
|
|
Page & |
page |
|
) |
| const |
◆ reads()
| uint64_t smollergraph::Pager::reads |
( |
| ) |
const |
|
inline |
How many pages this pager has read and written since it opened.
Definition at line 42 of file pager.h.
◆ Write()
| void smollergraph::Pager::Write |
( |
PageId |
id, |
|
|
const Page & |
page |
|
) |
| |
◆ writes()
| uint64_t smollergraph::Pager::writes |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: