Joedb 10.4.6
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::Table Class Reference

#include <joedb/interpreted/Table.h>

Public Member Functions

const Freedom_Keeper & get_freedom () const
const std::map< Field_Id, Field > & get_fields () const
Field_Id find_field (const std::string &name) const
void add_field (const std::string &name, const Type &type)
void drop_field (Field_Id field_id)
void insert_record (Record_Id record_id)
void delete_record (Record_Id record_id)
void insert_vector (Record_Id record_id, size_t size)
void delete_vector (Record_Id record_id, size_t size)
size_t get_storage_capacity () const
std::string_view get_string (Record_Id rid, Field_Id fid) const
void update_string (Record_Id record_id, Field_Id field_id, std::string_view value)
void update_vector_string (Record_Id record_id, Field_Id field_id, size_t size, const std::string *value)
std::string * get_own_string_storage (Record_Id record_id, Field_Id field_id)
const std::string * get_own_string_storage (Record_Id record_id, Field_Id field_id) const
int32_t get_int32 (Record_Id rid, Field_Id fid) const
void update_int32 (Record_Id record_id, Field_Id field_id, int32_t value)
void update_vector_int32 (Record_Id record_id, Field_Id field_id, size_t size, const int32_t *value)
int32_t * get_own_int32_storage (Record_Id record_id, Field_Id field_id)
const int32_t * get_own_int32_storage (Record_Id record_id, Field_Id field_id) const
int64_t get_int64 (Record_Id rid, Field_Id fid) const
void update_int64 (Record_Id record_id, Field_Id field_id, int64_t value)
void update_vector_int64 (Record_Id record_id, Field_Id field_id, size_t size, const int64_t *value)
int64_t * get_own_int64_storage (Record_Id record_id, Field_Id field_id)
const int64_t * get_own_int64_storage (Record_Id record_id, Field_Id field_id) const
bool get_boolean (Record_Id rid, Field_Id fid) const
void update_boolean (Record_Id record_id, Field_Id field_id, bool value)
void update_vector_boolean (Record_Id record_id, Field_Id field_id, size_t size, const char *value)
char * get_own_boolean_storage (Record_Id record_id, Field_Id field_id)
const char * get_own_boolean_storage (Record_Id record_id, Field_Id field_id) const
float get_float32 (Record_Id rid, Field_Id fid) const
void update_float32 (Record_Id record_id, Field_Id field_id, float value)
void update_vector_float32 (Record_Id record_id, Field_Id field_id, size_t size, const float *value)
float * get_own_float32_storage (Record_Id record_id, Field_Id field_id)
const float * get_own_float32_storage (Record_Id record_id, Field_Id field_id) const
double get_float64 (Record_Id rid, Field_Id fid) const
void update_float64 (Record_Id record_id, Field_Id field_id, double value)
void update_vector_float64 (Record_Id record_id, Field_Id field_id, size_t size, const double *value)
double * get_own_float64_storage (Record_Id record_id, Field_Id field_id)
const double * get_own_float64_storage (Record_Id record_id, Field_Id field_id) const
int8_t get_int8 (Record_Id rid, Field_Id fid) const
void update_int8 (Record_Id record_id, Field_Id field_id, int8_t value)
void update_vector_int8 (Record_Id record_id, Field_Id field_id, size_t size, const int8_t *value)
int8_t * get_own_int8_storage (Record_Id record_id, Field_Id field_id)
const int8_t * get_own_int8_storage (Record_Id record_id, Field_Id field_id) const
int16_t get_int16 (Record_Id rid, Field_Id fid) const
void update_int16 (Record_Id record_id, Field_Id field_id, int16_t value)
void update_vector_int16 (Record_Id record_id, Field_Id field_id, size_t size, const int16_t *value)
int16_t * get_own_int16_storage (Record_Id record_id, Field_Id field_id)
const int16_t * get_own_int16_storage (Record_Id record_id, Field_Id field_id) const
joedb::Blob get_blob (Record_Id rid, Field_Id fid) const
void update_blob (Record_Id record_id, Field_Id field_id, joedb::Blob value)
void update_vector_blob (Record_Id record_id, Field_Id field_id, size_t size, const joedb::Blob *value)
joedb::Blob * get_own_blob_storage (Record_Id record_id, Field_Id field_id)
const joedb::Blob * get_own_blob_storage (Record_Id record_id, Field_Id field_id) const

Friends

class Database_Schema

Detailed Description

Definition at line 16 of file Table.h.

Member Function Documentation

◆ add_field()

void joedb::Table::add_field ( const std::string & name,
const Type & type )

Definition at line 18 of file Table.cpp.

◆ delete_record()

void joedb::Table::delete_record ( Record_Id record_id)

Definition at line 60 of file Table.cpp.

◆ delete_vector()

void joedb::Table::delete_vector ( Record_Id record_id,
size_t size )

Definition at line 87 of file Table.cpp.

◆ drop_field()

void joedb::Table::drop_field ( Field_Id field_id)

Definition at line 32 of file Table.cpp.

◆ find_field()

Field_Id joedb::Table::find_field ( const std::string & name) const

Definition at line 8 of file Table.cpp.

◆ get_blob()

joedb::Blob joedb::Table::get_blob ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 30 of file Table.h.

◆ get_boolean()

bool joedb::Table::get_boolean ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 18 of file Table.h.

◆ get_fields()

const std::map< Field_Id, Field > & joedb::Table::get_fields ( ) const
inline

Definition at line 49 of file Table.h.

◆ get_float32()

float joedb::Table::get_float32 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 22 of file Table.h.

◆ get_float64()

double joedb::Table::get_float64 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 23 of file Table.h.

◆ get_freedom()

const Freedom_Keeper & joedb::Table::get_freedom ( ) const
inline

Definition at line 47 of file Table.h.

◆ get_int16()

int16_t joedb::Table::get_int16 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 27 of file Table.h.

◆ get_int32()

int32_t joedb::Table::get_int32 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 10 of file Table.h.

◆ get_int64()

int64_t joedb::Table::get_int64 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 11 of file Table.h.

◆ get_int8()

int8_t joedb::Table::get_int8 ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 26 of file Table.h.

◆ get_own_blob_storage() [1/2]

joedb::Blob * joedb::Table::get_own_blob_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 30 of file Table.h.

◆ get_own_blob_storage() [2/2]

const joedb::Blob * joedb::Table::get_own_blob_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 30 of file Table.h.

◆ get_own_boolean_storage() [1/2]

char * joedb::Table::get_own_boolean_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 18 of file Table.h.

◆ get_own_boolean_storage() [2/2]

const char * joedb::Table::get_own_boolean_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 18 of file Table.h.

◆ get_own_float32_storage() [1/2]

float * joedb::Table::get_own_float32_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 22 of file Table.h.

◆ get_own_float32_storage() [2/2]

const float * joedb::Table::get_own_float32_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 22 of file Table.h.

◆ get_own_float64_storage() [1/2]

double * joedb::Table::get_own_float64_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 23 of file Table.h.

◆ get_own_float64_storage() [2/2]

const double * joedb::Table::get_own_float64_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 23 of file Table.h.

◆ get_own_int16_storage() [1/2]

int16_t * joedb::Table::get_own_int16_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 27 of file Table.h.

◆ get_own_int16_storage() [2/2]

const int16_t * joedb::Table::get_own_int16_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 27 of file Table.h.

◆ get_own_int32_storage() [1/2]

int32_t * joedb::Table::get_own_int32_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 10 of file Table.h.

◆ get_own_int32_storage() [2/2]

const int32_t * joedb::Table::get_own_int32_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 10 of file Table.h.

◆ get_own_int64_storage() [1/2]

int64_t * joedb::Table::get_own_int64_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 11 of file Table.h.

◆ get_own_int64_storage() [2/2]

const int64_t * joedb::Table::get_own_int64_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 11 of file Table.h.

◆ get_own_int8_storage() [1/2]

int8_t * joedb::Table::get_own_int8_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 26 of file Table.h.

◆ get_own_int8_storage() [2/2]

const int8_t * joedb::Table::get_own_int8_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 26 of file Table.h.

◆ get_own_string_storage() [1/2]

std::string * joedb::Table::get_own_string_storage ( Record_Id record_id,
Field_Id field_id )
inline

Definition at line 7 of file Table.h.

◆ get_own_string_storage() [2/2]

const std::string * joedb::Table::get_own_string_storage ( Record_Id record_id,
Field_Id field_id ) const
inline

Definition at line 7 of file Table.h.

◆ get_storage_capacity()

size_t joedb::Table::get_storage_capacity ( ) const
inline

Definition at line 59 of file Table.h.

◆ get_string()

std::string_view joedb::Table::get_string ( Record_Id rid,
Field_Id fid ) const
inline

Definition at line 7 of file Table.h.

◆ insert_record()

void joedb::Table::insert_record ( Record_Id record_id)

Definition at line 43 of file Table.cpp.

◆ insert_vector()

void joedb::Table::insert_vector ( Record_Id record_id,
size_t size )

Definition at line 68 of file Table.cpp.

◆ update_blob()

void joedb::Table::update_blob ( Record_Id record_id,
Field_Id field_id,
joedb::Blob value )
inline

Definition at line 30 of file Table.h.

◆ update_boolean()

void joedb::Table::update_boolean ( Record_Id record_id,
Field_Id field_id,
bool value )
inline

Definition at line 18 of file Table.h.

◆ update_float32()

void joedb::Table::update_float32 ( Record_Id record_id,
Field_Id field_id,
float value )
inline

Definition at line 22 of file Table.h.

◆ update_float64()

void joedb::Table::update_float64 ( Record_Id record_id,
Field_Id field_id,
double value )
inline

Definition at line 23 of file Table.h.

◆ update_int16()

void joedb::Table::update_int16 ( Record_Id record_id,
Field_Id field_id,
int16_t value )
inline

Definition at line 27 of file Table.h.

◆ update_int32()

void joedb::Table::update_int32 ( Record_Id record_id,
Field_Id field_id,
int32_t value )
inline

Definition at line 10 of file Table.h.

◆ update_int64()

void joedb::Table::update_int64 ( Record_Id record_id,
Field_Id field_id,
int64_t value )
inline

Definition at line 11 of file Table.h.

◆ update_int8()

void joedb::Table::update_int8 ( Record_Id record_id,
Field_Id field_id,
int8_t value )
inline

Definition at line 26 of file Table.h.

◆ update_string()

void joedb::Table::update_string ( Record_Id record_id,
Field_Id field_id,
std::string_view value )
inline

Definition at line 7 of file Table.h.

◆ update_vector_blob()

void joedb::Table::update_vector_blob ( Record_Id record_id,
Field_Id field_id,
size_t size,
const joedb::Blob * value )
inline

Definition at line 30 of file Table.h.

◆ update_vector_boolean()

void joedb::Table::update_vector_boolean ( Record_Id record_id,
Field_Id field_id,
size_t size,
const char * value )
inline

Definition at line 18 of file Table.h.

◆ update_vector_float32()

void joedb::Table::update_vector_float32 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const float * value )
inline

Definition at line 22 of file Table.h.

◆ update_vector_float64()

void joedb::Table::update_vector_float64 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const double * value )
inline

Definition at line 23 of file Table.h.

◆ update_vector_int16()

void joedb::Table::update_vector_int16 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const int16_t * value )
inline

Definition at line 27 of file Table.h.

◆ update_vector_int32()

void joedb::Table::update_vector_int32 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const int32_t * value )
inline

Definition at line 10 of file Table.h.

◆ update_vector_int64()

void joedb::Table::update_vector_int64 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const int64_t * value )
inline

Definition at line 11 of file Table.h.

◆ update_vector_int8()

void joedb::Table::update_vector_int8 ( Record_Id record_id,
Field_Id field_id,
size_t size,
const int8_t * value )
inline

Definition at line 26 of file Table.h.

◆ update_vector_string()

void joedb::Table::update_vector_string ( Record_Id record_id,
Field_Id field_id,
size_t size,
const std::string * value )
inline

Definition at line 7 of file Table.h.

◆ Database_Schema

friend class Database_Schema
friend

Definition at line 18 of file Table.h.


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