#include <joedb/journal/Buffered_File.h>
|
| Buffered_File (Open_Mode mode) |
|
void | flush () |
|
void | flush_and_sync () |
|
void | exclusive_lock_tail () |
|
void | unlock_tail () noexcept |
|
bool | tail_is_locked () const noexcept |
|
void | shared_lock_head () |
|
void | exclusive_lock_head () |
|
void | unlock_head () noexcept |
|
bool | is_shared () const noexcept |
|
bool | is_readonly () const noexcept |
|
void | set_position (int64_t position) |
|
int64_t | get_position () const noexcept |
|
virtual void | copy_to (Buffered_File &destination, int64_t start, int64_t size) |
|
void | copy_to (Buffered_File &destination) |
|
template<typename T > |
void | write (T x) |
|
template<typename T > |
T | read () |
|
template<typename T > |
void | compact_write (T x) |
|
template<typename T > |
T | compact_read () |
|
template<typename T > |
T | read_strong_type () |
|
void | write_reference (Record_Id id) |
|
Record_Id | read_reference () |
|
void | write_string (const std::string &s) |
|
std::string | read_string () |
|
void | write_blob (Blob blob) |
|
Blob | read_blob () |
|
std::string | safe_read_string (int64_t max_size) |
|
void | write_data (const char *data, size_t n) |
|
size_t | read_data (char *data, const size_t n) |
|
void | ignore (const int64_t n) |
|
virtual std::string | read_blob_data (Blob blob) const |
|
void | sequential_seek (int64_t new_position) |
|
size_t | sequential_read (char *data, size_t size) |
|
void | sequential_write (const char *data, size_t size) |
|
int64_t | get_position () const |
|
virtual int64_t | get_size () const |
|
virtual size_t | pread (char *data, size_t size, int64_t offset) const |
|
virtual void | pwrite (const char *data, size_t size, int64_t offset) |
|
virtual void | sync () |
|
virtual void | shared_lock (int64_t start, int64_t size) |
|
virtual void | exclusive_lock (int64_t start, int64_t size) |
|
virtual void | unlock (int64_t start, int64_t size) noexcept |
|
virtual | ~Abstract_File ()=default |
|
void | set_catcher (Posthumous_Catcher &new_catcher) noexcept |
|
Definition at line 18 of file Buffered_File.h.
◆ Buffered_File()
joedb::Buffered_File::Buffered_File |
( |
Open_Mode |
mode | ) |
|
◆ compact_read()
T joedb::Buffered_File::compact_read |
( |
| ) |
|
|
inline |
◆ compact_write()
void joedb::Buffered_File::compact_write |
( |
T |
x | ) |
|
|
inline |
◆ copy_to() [1/2]
◆ copy_to() [2/2]
◆ destructor_flush()
void joedb::Buffered_File::destructor_flush |
( |
| ) |
|
|
protectednoexcept |
◆ exclusive_lock_head()
void joedb::Buffered_File::exclusive_lock_head |
( |
| ) |
|
|
inline |
◆ exclusive_lock_tail()
void joedb::Buffered_File::exclusive_lock_tail |
( |
| ) |
|
|
inline |
◆ flush()
void joedb::Buffered_File::flush |
( |
| ) |
|
◆ flush_and_sync()
void joedb::Buffered_File::flush_and_sync |
( |
| ) |
|
|
inline |
◆ get_position()
int64_t joedb::Buffered_File::get_position |
( |
| ) |
const |
|
inlinenoexcept |
◆ ignore()
◆ is_readonly()
bool joedb::Buffered_File::is_readonly |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_shared()
bool joedb::Buffered_File::is_shared |
( |
| ) |
const |
|
inlinenoexcept |
◆ make_readonly()
void joedb::Buffered_File::make_readonly |
( |
| ) |
|
|
inlineprotected |
◆ make_writable()
void joedb::Buffered_File::make_writable |
( |
| ) |
|
|
inlineprotected |
◆ read()
template<typename T >
T joedb::Buffered_File::read |
( |
| ) |
|
|
inline |
◆ read_blob()
Blob joedb::Buffered_File::read_blob |
( |
| ) |
|
|
inline |
◆ read_blob_data()
std::string joedb::Buffered_File::read_blob_data |
( |
Blob |
blob | ) |
const |
|
virtual |
◆ read_data()
◆ read_reference()
Record_Id joedb::Buffered_File::read_reference |
( |
| ) |
|
|
inline |
◆ read_string()
std::string joedb::Buffered_File::read_string |
( |
| ) |
|
◆ read_strong_type()
T joedb::Buffered_File::read_strong_type |
( |
| ) |
|
|
inline |
◆ safe_read_string()
std::string joedb::Buffered_File::safe_read_string |
( |
int64_t |
max_size | ) |
|
◆ set_position()
void joedb::Buffered_File::set_position |
( |
int64_t |
position | ) |
|
◆ shared_lock_head()
void joedb::Buffered_File::shared_lock_head |
( |
| ) |
|
|
inline |
◆ tail_is_locked()
bool joedb::Buffered_File::tail_is_locked |
( |
| ) |
const |
|
inlinenoexcept |
◆ unlock_head()
void joedb::Buffered_File::unlock_head |
( |
| ) |
|
|
inlinenoexcept |
◆ unlock_tail()
void joedb::Buffered_File::unlock_tail |
( |
| ) |
|
|
inlinenoexcept |
◆ write()
void joedb::Buffered_File::write |
( |
T |
x | ) |
|
|
inline |
◆ write_blob()
void joedb::Buffered_File::write_blob |
( |
Blob |
blob | ) |
|
|
inline |
◆ write_data()
◆ write_reference()
◆ write_string()
void joedb::Buffered_File::write_string |
( |
const std::string & |
s | ) |
|
◆ File_Hasher
◆ last_position
The documentation for this class was generated from the following files: