|
New data types will introduce their own Field_xxx classes which will be implemented outside of field.cc.
To be able to do similar asserts in new Field_xxx, let's move the code from macros to methods in Field, like this:
inline bool Field::marked_for_read() const
|
{
|
return !table ||
|
(!table->read_set ||
|
bitmap_is_set(table->read_set, field_index) ||
|
(!(ptr >= table->record[0] &&
|
ptr < table->record[0] + table->s->reclength)));
|
}
|
|
|
inline bool Field::marked_for_write_or_computed() const
|
{
|
return is_stat_field || !table ||
|
(!table->write_set ||
|
bitmap_is_set(table->write_set, field_index) ||
|
(!(ptr >= table->record[0] &&
|
ptr < table->record[0] + table->s->reclength)));
|
}
|
|