DenseRuntimeHandleRegistry.ixx File
Dense registry mapping strong identifiers to contiguous runtime indices. More...
Included Headers
#include <vector>
#include <helios/helios_config.h>
#include <cassert>
#include <optional>
#include <string>
#include <algorithm>
#include <helios.core.types>
#include <helios.core.data.RuntimeHandle>
#include <helios.core.data.StrongId>
Namespaces Index
| namespace | helios |
| namespace | core |
|
Core utilities shared across the helios engine. More... | |
| namespace | container |
|
Generic container types shared across the engine. More... | |
Classes Index
| class | DenseRuntimeHandleRegistry<StrongIdentifier, RuntimeId> |
|
Maps strong identifiers to dense, contiguous runtime indices. More... | |
Description
Dense registry mapping strong identifiers to contiguous runtime indices.
File Listing
The file content with the documentation metadata removed is:
20using namespace helios::core::types;
21using namespace helios::core::data;
22export namespace helios::core::container {
60 class DenseRuntimeHandleRegistry {
76 explicit DenseRuntimeHandleRegistry(const size_t defaultCapacity = DEFAULT_RUNTIME_HANDLE_REGISTRY_CAPACITY) {
120 RuntimeHandle<StrongIdentifier, RuntimeId> getOrCreate(std::string strId) {
121 return getOrCreate(StrongIdentifier{std::move(strId)});
137 RuntimeHandle<StrongIdentifier, RuntimeId> getOrCreate(const StrongIdentifier strongId) {
138 const auto rid = runtimeId(strongId);
140 return RuntimeHandle<StrongIdentifier, RuntimeId>(strongId, *rid);
145 return RuntimeHandle<StrongIdentifier, RuntimeId>{
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.