ComponentOpsRegistry.ixx File
Global registry mapping ComponentTypeId to ComponentOps. More...
Included Headers
#include <vector>
#include <helios.ecs.types.ComponentTypeId>
#include <helios.ecs.types.ComponentOps>
#include <helios.ecs.types.EntityHandle>
Namespaces Index
| namespace | helios |
| namespace | ecs |
Classes Index
| class | ComponentOpsRegistry<THandle> |
|
Global registry for component lifecycle function pointers. More... | |
Description
Global registry mapping ComponentTypeId to ComponentOps.
File Listing
The file content with the documentation metadata removed is:
15using namespace helios::ecs::types;
16export namespace helios::ecs {
54 class ComponentOpsRegistry {
64 inline static constexpr ComponentOps emptyOps_{};
79 static void setOps(const ComponentTypeId_type typeId, const ComponentOps& ops) {
81 if (typeId.value() >= operations_.size()) {
82 operations_.resize(typeId.value() + 1);
95 static const ComponentOps& ops(const ComponentTypeId_type typeId) {
97 if (typeId.value() >= operations_.size()) {
101 return operations_[typeId.value()];
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.