Joedb 10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
joedb::db::encoded_file::Database Class Reference

Store all the tables of the database. More...

#include <joedb/db/encoded_file/Database.h>

Inheritance diagram for joedb::db::encoded_file::Database:
Inheritance graph
[legend]
Collaboration diagram for joedb::db::encoded_file::Database:
Collaboration graph
[legend]

Public Member Functions

bool is_valid (id_of_buffer id) const
 
container_of_buffer get_buffer_table () const
 
id_of_buffer next (id_of_buffer id) const
 
id_of_buffer previous (id_of_buffer id) const
 
template<class Comparator >
std::vector< id_of_buffersorted_buffer (Comparator comparator) const
 
joedb::Blob get_data (id_of_buffer record) const
 
int64_t get_size (id_of_buffer record) const
 
int64_t get_offset (id_of_buffer record) const
 

Static Public Member Functions

template<typename E = joedb::Exception>
static void throw_exception (const std::string &message)
 
static id_of_buffer null_buffer ()
 

Protected Member Functions

bool is_valid_record_id_for_buffer (Record_Id record_id) const
 
void internal_delete_buffer (Record_Id record_id)
 
void internal_insert_buffer (Record_Id record_id)
 
void internal_vector_insert_buffer (Record_Id record_id, size_t size)
 
void internal_update_buffer__data (Record_Id record_id, joedb::Blob field_value_of_data)
 
void internal_update_vector_buffer__data (Record_Id record_id, size_t size, const joedb::Blob *value)
 
void internal_update_buffer__size (Record_Id record_id, int64_t field_value_of_size)
 
void internal_update_vector_buffer__size (Record_Id record_id, size_t size, const int64_t *value)
 
void internal_update_buffer__offset (Record_Id record_id, int64_t field_value_of_offset)
 
void internal_update_vector_buffer__offset (Record_Id record_id, size_t size, const int64_t *value)
 

Protected Attributes

detail::data_of_buffer storage_of_buffer
 

Friends

class Readable
 
class id_of_buffer
 
class container_of_buffer
 

Detailed Description

Definition at line 67 of file Database.h.

Member Function Documentation

◆ get_buffer_table()

container_of_buffer joedb::db::encoded_file::Database::get_buffer_table ( ) const
inline

Definition at line 264 of file Database.h.

◆ get_data()

joedb::Blob joedb::db::encoded_file::Database::get_data ( id_of_buffer  record) const
inline

Definition at line 202 of file Database.h.

◆ get_offset()

int64_t joedb::db::encoded_file::Database::get_offset ( id_of_buffer  record) const
inline

Definition at line 214 of file Database.h.

◆ get_size()

int64_t joedb::db::encoded_file::Database::get_size ( id_of_buffer  record) const
inline

Definition at line 208 of file Database.h.

◆ internal_delete_buffer()

void joedb::db::encoded_file::Database::internal_delete_buffer ( Record_Id  record_id)
inlineprotected

Definition at line 86 of file Database.h.

◆ internal_insert_buffer()

void joedb::db::encoded_file::Database::internal_insert_buffer ( Record_Id  record_id)
inlineprotected

Definition at line 95 of file Database.h.

◆ internal_update_buffer__data()

void joedb::db::encoded_file::Database::internal_update_buffer__data ( Record_Id  record_id,
joedb::Blob  field_value_of_data 
)
inlineprotected

Definition at line 106 of file Database.h.

◆ internal_update_buffer__offset()

void joedb::db::encoded_file::Database::internal_update_buffer__offset ( Record_Id  record_id,
int64_t  field_value_of_offset 
)
inlineprotected

Definition at line 152 of file Database.h.

◆ internal_update_buffer__size()

void joedb::db::encoded_file::Database::internal_update_buffer__size ( Record_Id  record_id,
int64_t  field_value_of_size 
)
inlineprotected

Definition at line 129 of file Database.h.

◆ internal_update_vector_buffer__data()

void joedb::db::encoded_file::Database::internal_update_vector_buffer__data ( Record_Id  record_id,
size_t  size,
const joedb::Blob value 
)
inlineprotected

Definition at line 116 of file Database.h.

◆ internal_update_vector_buffer__offset()

void joedb::db::encoded_file::Database::internal_update_vector_buffer__offset ( Record_Id  record_id,
size_t  size,
const int64_t *  value 
)
inlineprotected

Definition at line 162 of file Database.h.

◆ internal_update_vector_buffer__size()

void joedb::db::encoded_file::Database::internal_update_vector_buffer__size ( Record_Id  record_id,
size_t  size,
const int64_t *  value 
)
inlineprotected

Definition at line 139 of file Database.h.

◆ internal_vector_insert_buffer()

void joedb::db::encoded_file::Database::internal_vector_insert_buffer ( Record_Id  record_id,
size_t  size 
)
inlineprotected

Definition at line 100 of file Database.h.

◆ is_valid()

bool joedb::db::encoded_file::Database::is_valid ( id_of_buffer  id) const
inline

Definition at line 80 of file Database.h.

◆ is_valid_record_id_for_buffer()

bool joedb::db::encoded_file::Database::is_valid_record_id_for_buffer ( Record_Id  record_id) const
inlineprotected

Definition at line 84 of file Database.h.

◆ next()

id_of_buffer joedb::db::encoded_file::Database::next ( id_of_buffer  id) const
inline

Definition at line 178 of file Database.h.

◆ null_buffer()

static id_of_buffer joedb::db::encoded_file::Database::null_buffer ( )
inlinestatic

Definition at line 197 of file Database.h.

◆ previous()

id_of_buffer joedb::db::encoded_file::Database::previous ( id_of_buffer  id) const
inline

Definition at line 186 of file Database.h.

◆ sorted_buffer()

template<class Comparator >
std::vector< id_of_buffer > joedb::db::encoded_file::Database::sorted_buffer ( Comparator  comparator) const

Definition at line 270 of file Database.h.

◆ throw_exception()

template<typename E = joedb::Exception>
static void joedb::db::encoded_file::Database::throw_exception ( const std::string &  message)
inlinestatic

Definition at line 75 of file Database.h.

Friends And Related Symbol Documentation

◆ container_of_buffer

friend class container_of_buffer
friend

Definition at line 71 of file Database.h.

◆ id_of_buffer

friend class id_of_buffer
friend

Definition at line 70 of file Database.h.

◆ Readable

friend class Readable
friend

Definition at line 69 of file Database.h.

Member Data Documentation

◆ storage_of_buffer

detail::data_of_buffer joedb::db::encoded_file::Database::storage_of_buffer
protected

Definition at line 83 of file Database.h.


The documentation for this class was generated from the following file: