Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations
Writable.h File Reference
#include "joedb/Type.h"
#include <string>
#include "joedb/TYPE_MACRO.h"
Include dependency graph for Writable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  joedb::Writable
 

Namespaces

namespace  joedb
 

Macros

#define TYPE_MACRO(type, return_type, type_id, R, W)
 
#define TYPE_MACRO(type, return_type, type_id, R, W)
 

Enumerations

enum class  joedb::Commit_Level { joedb::no_commit , joedb::half_commit , joedb::full_commit }
 

Macro Definition Documentation

◆ TYPE_MACRO [1/2]

#define TYPE_MACRO (   type,
  return_type,
  type_id,
  R,
 
)
Value:
virtual void update_##type_id\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
return_type value\
);

Definition at line 69 of file Writable.h.

◆ TYPE_MACRO [2/2]

#define TYPE_MACRO (   type,
  return_type,
  type_id,
  R,
 
)
Value:
virtual void update_vector_##type_id\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
size_t size,\
const type *value\
);\
virtual type *get_own_##type_id##_storage\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
size_t &capacity\
)\
{\
capacity = 0;\
return nullptr;\
}\
const type *get_own_##type_id##_const_storage\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
size_t &capacity\
) const\
{\
return (const_cast<Writable *>(this))->get_own_##type_id##_storage(table_id, record_id, field_id, capacity);\
}

Definition at line 69 of file Writable.h.