|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
What ComponentRegistry can do with a component storage without knowing which component type it holds. More...
#include <headers/guillaume/ecs/component_storage.hpp>

Public Member Functions | |
| virtual | ~IComponentStorage (void)=default |
| Virtual destructor. | |
| virtual void | remove (const Entity::Identifier &entityIdentifier)=0 |
| Delete the component stored for an entity. Does nothing when the entity has none. | |
| virtual bool | has (const Entity::Identifier &entityIdentifier) const =0 |
| Tell whether a component is stored for an entity. | |
| virtual bool | hasChanged (const Entity::Identifier &entityIdentifier) const =0 |
| Tell whether the component stored for an entity is marked as changed. | |
| virtual void | resetChangedFlags (void)=0 |
| Mark every component of this storage as unchanged. | |
What ComponentRegistry can do with a component storage without knowing which component type it holds.
The registry keeps one ComponentStorage per component type behind this interface, which lets it remove an entity or reset the changed flags across all types in one loop.
Definition at line 43 of file component_storage.hpp.
|
pure virtual |
Tell whether a component is stored for an entity.
| entityIdentifier | The identifier of the entity. |
Implemented in guillaume::ecs::ComponentStorage< ComponentType >.
|
pure virtual |
Tell whether the component stored for an entity is marked as changed.
| entityIdentifier | The identifier of the entity. |
Implemented in guillaume::ecs::ComponentStorage< ComponentType >.
|
pure virtual |
Delete the component stored for an entity. Does nothing when the entity has none.
| entityIdentifier | The identifier of the entity. |
Implemented in guillaume::ecs::ComponentStorage< ComponentType >.
|
pure virtual |
Mark every component of this storage as unchanged.
Implemented in guillaume::ecs::ComponentStorage< ComponentType >.