EntityPoolRegistry.ixx File
Central registry for managing multiple EntityPool instances. More...
Included Headers
#include <memory>
#include <unordered_map>
#include <ranges>
#include <helios.engine.runtime.pooling.types.EntityPoolId>
#include <helios.engine.runtime.pooling.EntityPool>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | runtime |
| namespace | pooling |
Classes Index
| class | EntityPoolRegistry<THandle> |
|
Central registry for managing multiple named EntityPools. More... | |
Description
Central registry for managing multiple EntityPool instances.
File Listing
The file content with the documentation metadata removed is:
18export namespace helios::engine::runtime::pooling {
46 class EntityPoolRegistry {
53 std::unordered_map<helios::engine::runtime::pooling::types::EntityPoolId, std::unique_ptr<EntityPool<THandle>>> pools_;
60 EntityPoolRegistry() = default;
75 std::unique_ptr<EntityPool<THandle>> entityPool
77 pools_[id] = std::move(entityPool);
89 [[nodiscard]]std::unordered_map<helios::engine::runtime::pooling::types::EntityPoolId, std::unique_ptr<EntityPool<THandle>>>& pools() {
101 [[nodiscard]] EntityPool<THandle>* pool(const helios::engine::runtime::pooling::types::EntityPoolId id) const {
103 const auto& it = pools_.find(id);
105 if (it == pools_.end()) {
109 return it->second.get();
119 [[nodiscard]] bool has(const helios::engine::runtime::pooling::types::EntityPoolId id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.