#include <scratch_file.hpp>
|
| | ScratchFile (IoRaiser raiser=IoRaiser::report_sink) |
| |
| | ScratchFile (const ScratchFile &)=delete |
| |
| ScratchFile & | operator= (const ScratchFile &)=delete |
| |
| | ScratchFile (ScratchFile &&other) noexcept |
| |
| ScratchFile & | operator= (ScratchFile &&other) noexcept |
| |
| | ~ScratchFile () |
| |
| void | bind_scratch (const std::shared_ptr< ScratchSlab > &slab, ScratchResource resource) |
| |
| const std::shared_ptr< ScratchSlab > & | scratch_owner () const noexcept |
| |
| ScratchResource | scratch_resource () const noexcept |
| |
| void | set_store (ScratchStore store) noexcept |
| |
| void | bound_cache () |
| |
| void | set_directory (const std::string &value) |
| |
| void | clear () noexcept |
| |
| bool | opened () const noexcept |
| |
| bool | arena_backed () const noexcept |
| |
| int | descriptor () const noexcept |
| |
| void | truncate (std::uint64_t bytes) |
| |
| void | open (const char *prefix) |
| |
| void | open_bounded (const char *, std::uint64_t max_bytes) |
| |
| void | ensure_size (std::uint64_t bytes, std::uint64_t needed_bytes_lower_bound=0) |
| |
| ssize_t | write_some (std::uint64_t offset, const void *data, std::size_t length) |
| |
| ssize_t | read_some (std::uint64_t offset, void *data, std::size_t length) const |
| |
| void | write (std::uint64_t offset, const void *data, std::size_t length) |
| |
| void | read (std::uint64_t offset, void *data, std::size_t length) const |
| |
Definition at line 36 of file scratch_file.hpp.
◆ IoRaiser
◆ ScratchFile() [1/3]
◆ ScratchFile() [2/3]
| pineforge::detail::ScratchFile::ScratchFile |
( |
const ScratchFile & | | ) |
|
|
delete |
◆ ScratchFile() [3/3]
| pineforge::detail::ScratchFile::ScratchFile |
( |
ScratchFile && | other | ) |
|
|
inlinenoexcept |
◆ ~ScratchFile()
| pineforge::detail::ScratchFile::~ScratchFile |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ bind_scratch()
◆ scratch_owner()
| const std::shared_ptr< ScratchSlab > & pineforge::detail::ScratchFile::scratch_owner |
( |
| ) |
const |
|
inlinenoexcept |
◆ scratch_resource()
◆ set_store()
| void pineforge::detail::ScratchFile::set_store |
( |
ScratchStore | store | ) |
|
|
inlinenoexcept |
◆ bound_cache()
| void pineforge::detail::ScratchFile::bound_cache |
( |
| ) |
|
|
inline |
◆ set_directory()
| void pineforge::detail::ScratchFile::set_directory |
( |
const std::string & | value | ) |
|
|
inline |
◆ clear()
| void pineforge::detail::ScratchFile::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ opened()
| bool pineforge::detail::ScratchFile::opened |
( |
| ) |
const |
|
inlinenoexcept |
◆ arena_backed()
| bool pineforge::detail::ScratchFile::arena_backed |
( |
| ) |
const |
|
inlinenoexcept |
◆ descriptor()
| int pineforge::detail::ScratchFile::descriptor |
( |
| ) |
const |
|
inlinenoexcept |
◆ truncate()
| void pineforge::detail::ScratchFile::truncate |
( |
std::uint64_t | bytes | ) |
|
|
inline |
◆ open()
| void pineforge::detail::ScratchFile::open |
( |
const char * | prefix | ) |
|
|
inline |
◆ open_bounded()
| void pineforge::detail::ScratchFile::open_bounded |
( |
const char * | , |
|
|
std::uint64_t | max_bytes ) |
|
inline |
◆ ensure_size()
| void pineforge::detail::ScratchFile::ensure_size |
( |
std::uint64_t | bytes, |
|
|
std::uint64_t | needed_bytes_lower_bound = 0 ) |
|
inline |
◆ check_extent()
| static void pineforge::detail::ScratchFile::check_extent |
( |
std::uint64_t | offset, |
|
|
std::size_t | length, |
|
|
bool | arena = false, |
|
|
IoRaiser | raiser = IoRaiser::report_sink ) |
|
inlinestatic |
◆ write_some()
| ssize_t pineforge::detail::ScratchFile::write_some |
( |
std::uint64_t | offset, |
|
|
const void * | data, |
|
|
std::size_t | length ) |
|
inline |
◆ read_some()
| ssize_t pineforge::detail::ScratchFile::read_some |
( |
std::uint64_t | offset, |
|
|
void * | data, |
|
|
std::size_t | length ) const |
|
inline |
◆ write()
| void pineforge::detail::ScratchFile::write |
( |
std::uint64_t | offset, |
|
|
const void * | data, |
|
|
std::size_t | length ) |
|
inline |
◆ read()
| void pineforge::detail::ScratchFile::read |
( |
std::uint64_t | offset, |
|
|
void * | data, |
|
|
std::size_t | length ) const |
|
inline |
◆ kCacheBytes
| std::size_t pineforge::detail::ScratchFile::kCacheBytes = 64 * 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following file: