Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
joedb::Buffer< log_size > Class Template Reference

#include <joedb/journal/Buffer.h>

Public Member Functions

template<typename T >
void write (T x)
 
template<typename T >
read ()
 
template<typename T >
void compact_write (T x)
 
template<typename T >
T compact_read ()
 

Public Attributes

char data [size+extra_size]
 
size_t index
 

Static Public Attributes

static constexpr size_t size = (1 << log_size)
 
static constexpr int64_t ssize = (1 << log_size)
 
static constexpr size_t extra_size = 8
 

Detailed Description

template<int log_size>
class joedb::Buffer< log_size >

Definition at line 13 of file Buffer.h.

Member Function Documentation

◆ compact_read()

template<int log_size>
template<typename T >
T joedb::Buffer< log_size >::compact_read ( )
inline

Definition at line 70 of file Buffer.h.

◆ compact_write()

template<int log_size>
template<typename T >
void joedb::Buffer< log_size >::compact_write ( T  x)
inline

Definition at line 44 of file Buffer.h.

◆ read()

template<int log_size>
template<typename T >
T joedb::Buffer< log_size >::read ( )
inline

Definition at line 33 of file Buffer.h.

◆ write()

template<int log_size>
template<typename T >
void joedb::Buffer< log_size >::write ( T  x)
inline

Definition at line 24 of file Buffer.h.

Member Data Documentation

◆ data

template<int log_size>
char joedb::Buffer< log_size >::data[size+extra_size]

Definition at line 20 of file Buffer.h.

◆ extra_size

template<int log_size>
constexpr size_t joedb::Buffer< log_size >::extra_size = 8
staticconstexpr

Definition at line 18 of file Buffer.h.

◆ index

template<int log_size>
size_t joedb::Buffer< log_size >::index

Definition at line 21 of file Buffer.h.

◆ size

template<int log_size>
constexpr size_t joedb::Buffer< log_size >::size = (1 << log_size)
staticconstexpr

Definition at line 16 of file Buffer.h.

◆ ssize

template<int log_size>
constexpr int64_t joedb::Buffer< log_size >::ssize = (1 << log_size)
staticconstexpr

Definition at line 17 of file Buffer.h.


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