ECS library 32-bit fixes
This commit is contained in:
parent
5155175d9b
commit
5587c43611
3 changed files with 5 additions and 5 deletions
|
|
@ -23,7 +23,7 @@ namespace psemek::ecs::detail
|
||||||
std::vector<util::uuid> with_uuids;
|
std::vector<util::uuid> with_uuids;
|
||||||
std::vector<util::uuid> without_uuids;
|
std::vector<util::uuid> without_uuids;
|
||||||
|
|
||||||
std::size_t hash;
|
std::uint64_t hash;
|
||||||
|
|
||||||
std::list<query_cache_entry> entries;
|
std::list<query_cache_entry> entries;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,12 @@ namespace psemek::ecs::detail
|
||||||
|
|
||||||
struct query_cache_hash
|
struct query_cache_hash
|
||||||
{
|
{
|
||||||
std::size_t operator()(std::pair<util::span<util::uuid const>, util::span<util::uuid const>> const & uuids) const
|
std::uint64_t operator()(std::pair<util::span<util::uuid const>, util::span<util::uuid const>> const & uuids) const
|
||||||
{
|
{
|
||||||
return ordered_component_hash(uuids.first, uuids.second);
|
return ordered_component_hash(uuids.first, uuids.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t operator()(std::shared_ptr<query_cache> const & cache) const
|
std::uint64_t operator()(std::shared_ptr<query_cache> const & cache) const
|
||||||
{
|
{
|
||||||
return cache->hash;
|
return cache->hash;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace psemek::ecs::detail
|
||||||
{
|
{
|
||||||
table(std::vector<std::unique_ptr<detail::column>> columns);
|
table(std::vector<std::unique_ptr<detail::column>> columns);
|
||||||
|
|
||||||
std::size_t hash() const
|
std::uint64_t hash() const
|
||||||
{
|
{
|
||||||
return hash_;
|
return hash_;
|
||||||
}
|
}
|
||||||
|
|
@ -85,7 +85,7 @@ namespace psemek::ecs::detail
|
||||||
std::string describe(std::uint32_t row) const;
|
std::string describe(std::uint32_t row) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::size_t hash_;
|
std::uint64_t hash_;
|
||||||
std::vector<std::unique_ptr<detail::column>> columns_;
|
std::vector<std::unique_ptr<detail::column>> columns_;
|
||||||
util::hash_set<util::uuid> column_uuid_set_;
|
util::hash_set<util::uuid> column_uuid_set_;
|
||||||
util::hash_map<util::uuid, std::uint32_t> component_uuid_to_column_index_;
|
util::hash_map<util::uuid, std::uint32_t> component_uuid_to_column_index_;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue