#include #include namespace psemek::ecs::detail { void query_cache::add(table * table) { auto & entry = entries.emplace_back(); entry.table = table; for (auto const & uuid : with_uuids) entry.columns_indices.push_back(*table->column_index(uuid)); if (constructor_factory) table->add_constructor(constructor_factory(entry.columns_indices)); if (destructor_factory) table->add_destructor(destructor_factory(entry.columns_indices)); } }