Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
SparseArray.hpp File Reference

Sparse array container for efficient component storage in ECS. More...

#include "RType/Assert.hpp"
#include "RType/ECS/ComponentConcept.hpp"
#include "RType/ECS/Entity.hpp"
#include <vector>
#include <limits>
#include <span>
#include "SparseArray.tpp"
Include dependency graph for SparseArray.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rtp::ecs::ISparseArray
 Type-erased base interface for sparse arrays. More...
 
class  rtp::ecs::SparseArray< T >
 Sparse array container for component storage. More...
 

Namespaces

namespace  rtp
 
namespace  rtp::ecs
 File : RenderSystem.hpp License: MIT Author : Elias JosuĂ© HAJJAR LLAUQUEN elias.nosp@m.-jos.nosp@m.ue.ha.nosp@m.jjar.nosp@m.-llau.nosp@m.quen.nosp@m.@epit.nosp@m.ech..nosp@m.eu Date : 14/12/2025.
 

Detailed Description

Sparse array container for efficient component storage in ECS.

Author
Robin Toillon

Provides a sparse array data structure optimized for storing components indexed by entity IDs. Uses a sparse-to-dense mapping for efficient iteration while maintaining O(1) access by entity.

Definition in file SparseArray.hpp.