#include "joedb/Type.h"
#include <string>
#include "joedb/TYPE_MACRO.h"
Go to the source code of this file.
|
#define | TYPE_MACRO(type, return_type, type_id, R, W) |
|
#define | TYPE_MACRO(type, return_type, type_id, R, W) |
|
◆ TYPE_MACRO [1/2]
#define TYPE_MACRO |
( |
|
type, |
|
|
|
return_type, |
|
|
|
type_id, |
|
|
|
R, |
|
|
|
W |
|
) |
| |
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, |
|
|
|
W |
|
) |
| |
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.