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

Method index

modules/engine/runtime/src/ecs/archetype.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26SIndex archetype_t::index(sugoi_type_index_t inType) const noexcept
27{
28 auto end = type.data + type.length;
29 const sugoi_type_index_t* result = std::lower_bound(type.data, end, inType);
30 if (result != end && *result == inType)
31 return (SIndex)(result - type.data);
32 else
33 return kInvalidSIndex;
34}
35} // namespace sugoi
36
37sugoi::archetype_t* sugoi_storage_t::construct_archetype(const sugoi_type_set_t& inType)

Callers 15

sugoiS_queryFunction · 0.45
sync_queryMethod · 0.45
schedule_ecs_jobMethod · 0.45
update_dependenciesMethod · 0.45
type_registry_tMethod · 0.45
sugoiT_get_descFunction · 0.45
construct_archetypeMethod · 0.45
shareMethod · 0.45
serialize_typeMethod · 0.45
cast_viewFunction · 0.45
duplicate_viewFunction · 0.45
sugoiV_get_local_typeFunction · 0.45

Calls 1

lower_boundFunction · 0.50

Tested by 1

template_test_vectorFunction · 0.36