#include <id_table_read_cache.hpp>
|
| | IdTableReadCache (std::size_t bytes=0) |
| |
| | IdTableReadCache (Policy policy) |
| |
| | IdTableReadCache (CacheCapacity capacity) |
| |
| void | set_cache_capacity (CacheCapacity capacity) |
| |
| | IdTableReadCache (const IdTableReadCache &)=delete |
| |
| IdTableReadCache & | operator= (const IdTableReadCache &)=delete |
| |
| | IdTableReadCache (IdTableReadCache &&other) noexcept |
| |
| IdTableReadCache & | operator= (IdTableReadCache &&other) noexcept |
| |
| void | set_capacity (std::size_t bytes) |
| |
| void | set_capacity (Policy policy) |
| |
| void | invalidate () const noexcept |
| |
| void | invalidate_from (unsigned file, std::uint64_t offset) const noexcept |
| |
| void | release () noexcept |
| |
| void | before_write (unsigned file, std::uint64_t logical_end, std::uint64_t offset, std::size_t length) const noexcept |
| |
| template<class File> |
| void | read (const File &source, bool plain_disk, std::uint64_t logical_end, unsigned file, std::uint64_t offset, void *destination, std::size_t length) const |
| |
Definition at line 45 of file id_table_read_cache.hpp.
◆ IdTableReadCache() [1/5]
| pineforge::detail::IdTableReadCache::IdTableReadCache |
( |
std::size_t | bytes = 0 | ) |
|
|
inlineexplicit |
◆ IdTableReadCache() [2/5]
| pineforge::detail::IdTableReadCache::IdTableReadCache |
( |
Policy | policy | ) |
|
|
inlineexplicit |
◆ IdTableReadCache() [3/5]
| pineforge::detail::IdTableReadCache::IdTableReadCache |
( |
CacheCapacity | capacity | ) |
|
|
inlineexplicit |
◆ IdTableReadCache() [4/5]
| pineforge::detail::IdTableReadCache::IdTableReadCache |
( |
const IdTableReadCache & | | ) |
|
|
delete |
◆ IdTableReadCache() [5/5]
| pineforge::detail::IdTableReadCache::IdTableReadCache |
( |
IdTableReadCache && | other | ) |
|
|
inlinenoexcept |
◆ policy_for_capacity()
| static Policy pineforge::detail::IdTableReadCache::policy_for_capacity |
( |
CacheCapacity | capacity | ) |
|
|
inlinestaticnoexcept |
◆ set_cache_capacity()
| void pineforge::detail::IdTableReadCache::set_cache_capacity |
( |
CacheCapacity | capacity | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_capacity() [1/2]
| void pineforge::detail::IdTableReadCache::set_capacity |
( |
std::size_t | bytes | ) |
|
|
inline |
◆ set_capacity() [2/2]
| void pineforge::detail::IdTableReadCache::set_capacity |
( |
Policy | policy | ) |
|
|
inline |
◆ invalidate()
| void pineforge::detail::IdTableReadCache::invalidate |
( |
| ) |
const |
|
inlinenoexcept |
◆ invalidate_from()
| void pineforge::detail::IdTableReadCache::invalidate_from |
( |
unsigned | file, |
|
|
std::uint64_t | offset ) const |
|
inlinenoexcept |
◆ release()
| void pineforge::detail::IdTableReadCache::release |
( |
| ) |
|
|
inlinenoexcept |
◆ before_write()
| void pineforge::detail::IdTableReadCache::before_write |
( |
unsigned | file, |
|
|
std::uint64_t | logical_end, |
|
|
std::uint64_t | offset, |
|
|
std::size_t | length ) const |
|
inlinenoexcept |
◆ read()
template<class File>
| void pineforge::detail::IdTableReadCache::read |
( |
const File & | source, |
|
|
bool | plain_disk, |
|
|
std::uint64_t | logical_end, |
|
|
unsigned | file, |
|
|
std::uint64_t | offset, |
|
|
void * | destination, |
|
|
std::size_t | length ) const |
|
inline |
◆ kPageBytes
| std::size_t pineforge::detail::IdTableReadCache::kPageBytes = 4096 |
|
staticconstexpr |
◆ kCacheBytes
| std::size_t pineforge::detail::IdTableReadCache::kCacheBytes = 64 * 1024 |
|
staticconstexpr |
◆ kSlots
◆ kPairCacheBytes
| std::size_t pineforge::detail::IdTableReadCache::kPairCacheBytes = kCacheBytes / 2 |
|
staticconstexpr |
◆ kAdapterCacheBytes
| std::size_t pineforge::detail::IdTableReadCache::kAdapterCacheBytes = 3 * kCacheBytes |
|
staticconstexpr |
The documentation for this class was generated from the following file: