LinearLookupStrategy.ixx File
Linear-scan lookup strategy for strong ID collision detection. More...
Included Headers
#include <vector>
#include <algorithm>
#include <ranges>
#include <cstddef>
#include <helios.ecs.types.TypeDefs>
Namespaces Index
| namespace | helios |
| namespace | ecs |
| namespace | strategies |
Classes Index
| class | LinearLookupStrategy<TCapacity> |
|
Lookup strategy using a flat vector with linear scan. More... | |
Description
Linear-scan lookup strategy for strong ID collision detection.
File Listing
The file content with the documentation metadata removed is:
16using namespace helios::ecs::types;
17export namespace helios::ecs::strategies {
33 class LinearLookupStrategy {
47 explicit LinearLookupStrategy(const size_t capacity = TCapacity) {
58 [[nodiscard]] bool remove(const StrongId_t id) {
86 [[nodiscard]] bool add(const StrongId_t id) {
87 if (has(id)) {
101 [[nodiscard]] bool has(const StrongId_t id) const {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.