Joedb 10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | List of all members
joedb::List_Freedom_Keeper Class Reference

#include <joedb/Freedom_Keeper.h>

Inheritance diagram for joedb::List_Freedom_Keeper:
Inheritance graph
[legend]
Collaboration diagram for joedb::List_Freedom_Keeper:
Collaboration graph
[legend]

Public Member Functions

 List_Freedom_Keeper ()
 
Record_Id get_used_count () const
 
Record_Id get_size () const
 
size_t size () const
 
Record_Id get_first_free () const
 
Record_Id get_first_used () const
 
Record_Id get_next (const Record_Id index) const
 
Record_Id get_previous (const Record_Id index) const
 
bool is_used (Record_Id index) const
 
bool is_free (Record_Id index) const
 
bool is_free_vector (Record_Id index, size_t size) const
 
bool is_used_vector (Record_Id index, size_t size) const
 
bool is_dense () const
 
Record_Id get_free_record ()
 
Record_Id push_back ()
 
void resize (const Record_Id new_size)
 
void use (const Record_Id index)
 
void free (Record_Id index)
 
void use_vector (Record_Id index, size_t size)
 
void free_vector (Record_Id index, size_t size)
 

Additional Inherited Members

- Static Public Attributes inherited from joedb::Freedom_Keeper_Constants
static constexpr Record_Id used_list {-2}
 
static constexpr Record_Id free_list {-1}
 
- Protected Member Functions inherited from joedb::List_Data
uint8_t & is_free_f (Record_Id id)
 
Record_Idnext_f (Record_Id id)
 
Record_Idprevious_f (Record_Id id)
 
uint8_t is_free_f (Record_Id id) const
 
Record_Id next_f (Record_Id id) const
 
Record_Id previous_f (Record_Id id) const
 
void resize_vector (Record_Id size)
 
 List_Data ()
 
 List_Data (const List_Data &)=delete
 
List_Dataoperator= (const List_Data &)=delete
 
- Protected Attributes inherited from joedb::List_Data
uint8_t * is_free_p
 
Record_Idnext_p
 
Record_Idprevious_p
 
Record_Id freedom_size
 

Detailed Description

Definition at line 59 of file Freedom_Keeper.h.

Constructor & Destructor Documentation

◆ List_Freedom_Keeper()

joedb::List_Freedom_Keeper::List_Freedom_Keeper ( )
inline

Definition at line 65 of file Freedom_Keeper.h.

Member Function Documentation

◆ free()

void joedb::List_Freedom_Keeper::free ( Record_Id  index)
inline

Definition at line 183 of file Freedom_Keeper.h.

◆ free_vector()

void joedb::List_Freedom_Keeper::free_vector ( Record_Id  index,
size_t  size 
)
inline

Definition at line 211 of file Freedom_Keeper.h.

◆ get_first_free()

Record_Id joedb::List_Freedom_Keeper::get_first_free ( ) const
inline

Definition at line 79 of file Freedom_Keeper.h.

◆ get_first_used()

Record_Id joedb::List_Freedom_Keeper::get_first_used ( ) const
inline

Definition at line 80 of file Freedom_Keeper.h.

◆ get_free_record()

Record_Id joedb::List_Freedom_Keeper::get_free_record ( )
inline

Definition at line 127 of file Freedom_Keeper.h.

◆ get_next()

Record_Id joedb::List_Freedom_Keeper::get_next ( const Record_Id  index) const
inline

Definition at line 81 of file Freedom_Keeper.h.

◆ get_previous()

Record_Id joedb::List_Freedom_Keeper::get_previous ( const Record_Id  index) const
inline

Definition at line 82 of file Freedom_Keeper.h.

◆ get_size()

Record_Id joedb::List_Freedom_Keeper::get_size ( ) const
inline

Definition at line 77 of file Freedom_Keeper.h.

◆ get_used_count()

Record_Id joedb::List_Freedom_Keeper::get_used_count ( ) const
inline

Definition at line 76 of file Freedom_Keeper.h.

◆ is_dense()

bool joedb::List_Freedom_Keeper::is_dense ( ) const
inline

Definition at line 124 of file Freedom_Keeper.h.

◆ is_free()

bool joedb::List_Freedom_Keeper::is_free ( Record_Id  index) const
inline

Definition at line 87 of file Freedom_Keeper.h.

◆ is_free_vector()

bool joedb::List_Freedom_Keeper::is_free_vector ( Record_Id  index,
size_t  size 
) const
inline

Definition at line 89 of file Freedom_Keeper.h.

◆ is_used()

bool joedb::List_Freedom_Keeper::is_used ( Record_Id  index) const
inline

Definition at line 83 of file Freedom_Keeper.h.

◆ is_used_vector()

bool joedb::List_Freedom_Keeper::is_used_vector ( Record_Id  index,
size_t  size 
) const
inline

Definition at line 105 of file Freedom_Keeper.h.

◆ push_back()

Record_Id joedb::List_Freedom_Keeper::push_back ( )
inline

Definition at line 139 of file Freedom_Keeper.h.

◆ resize()

void joedb::List_Freedom_Keeper::resize ( const Record_Id  new_size)
inline

Definition at line 155 of file Freedom_Keeper.h.

◆ size()

size_t joedb::List_Freedom_Keeper::size ( ) const
inline

Definition at line 78 of file Freedom_Keeper.h.

◆ use()

void joedb::List_Freedom_Keeper::use ( const Record_Id  index)
inline

Definition at line 162 of file Freedom_Keeper.h.

◆ use_vector()

void joedb::List_Freedom_Keeper::use_vector ( Record_Id  index,
size_t  size 
)
inline

Definition at line 204 of file Freedom_Keeper.h.


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