MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / make_query

Method make_query

modules/engine/runtime/src/ecs/query.cpp:167–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167sugoi_query_t* sugoi_storage_t::make_query(const sugoi_filter_t& filter, const sugoi_parameters_t& params)
168{
169 using namespace sugoi;
170
171 sugoi::fixed_arena_t arena(4096);
172 auto result = arena.allocate<sugoi_query_t>();
173 auto buffer = (char*)arena.allocate(data_size(filter) + data_size(params), alignof(sugoi_type_index_t));
174 result->filter = sugoi::clone(filter, buffer);
175 result->parameters = sugoi::clone(params, buffer);
176 queriesBuilt = false;
177 result->storage = this;
178 arena.forget();
179 queries.push_back(result);
180 return result;
181}
182
183//[in][rand]$|comp''
184sugoi_query_t* sugoi_storage_t::make_query(const char8_t* inDesc)

Callers 3

cloneMethod · 0.80
sugoiQ_createFunction · 0.80
sugoiQ_from_literalFunction · 0.80

Calls 15

data_sizeFunction · 0.85
remove_ifFunction · 0.85
memsetFunction · 0.85
forgetMethod · 0.80
cloneFunction · 0.70
splitFunction · 0.70
getFunction · 0.50
formatFunction · 0.50
allocateMethod · 0.45
push_backMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected