HashedLookupStrategy.ixx File
Hash-based lookup strategy for strong ID collision detection. More...
Included Headers
#include <unordered_set>
#include <cstddef>
#include <helios.ecs.types.TypeDefs>
Namespaces Index
| namespace | helios |
| namespace | ecs |
| namespace | strategies |
Classes Index
| class | HashedLookupStrategy |
|
Lookup strategy using an unordered set for O(1) amortized lookups. More... | |
Description
Hash-based lookup strategy for strong ID collision detection.
File Listing
The file content with the documentation metadata removed is:
14using namespace helios::ecs::types;
15export namespace helios::ecs::strategies {
27 class HashedLookupStrategy {
41 explicit HashedLookupStrategy(const size_t capacity) {
52 [[nodiscard]] bool add(const StrongId_t id) {
63 [[nodiscard]] bool remove(const StrongId_t id) {
74 [[nodiscard]] bool has(const StrongId_t id) const {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.