Skip to content

ludus::gameplay::world::ComponentPool

Ludus Wiki · API overview · Browse API

Class

Plain owned state only: construction/move/destruction must not allocate or invoke gameplay.
Owner/value spans have identical lengths and are phase-local.

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

#include <ludus/gameplay/world/component_pool.hpp>
template <typename T>
class ludus::gameplay::world::ComponentPool final

Methods

ComponentPool

ludus::gameplay::world::ComponentPool< T >::ComponentPool() noexcept=default

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

ComponentPool

ludus::gameplay::world::ComponentPool< T >::ComponentPool(const ComponentPool &)=delete

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

operator=

ComponentPool & ludus::gameplay::world::ComponentPool< T >::operator=(const ComponentPool &)=delete

Related types: ComponentPool

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

ComponentPool

ludus::gameplay::world::ComponentPool< T >::ComponentPool(ComponentPool &&other) noexcept

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

operator=

ComponentPool & ludus::gameplay::world::ComponentPool< T >::operator=(ComponentPool &&other) noexcept

Related types: ComponentPool

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

TryInitialize

Status ludus::gameplay::world::ComponentPool< T >::TryInitialize(const EntityRegistry &registry) noexcept

Related types: EntityRegistry · Status

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

Find

const T * ludus::gameplay::world::ComponentPool< T >::Find(EntityId entity) const noexcept

Related types: EntityId

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

Find

T * ludus::gameplay::world::ComponentPool< T >::Find(EntityId entity) noexcept

Related types: EntityId

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

TryInsert

Status ludus::gameplay::world::ComponentPool< T >::TryInsert(const EntityRegistry &registry, EntityId entity, T value) noexcept

Related types: EntityRegistry · Status · EntityId

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

TryRemove

Status ludus::gameplay::world::ComponentPool< T >::TryRemove(const EntityRegistry &registry, EntityId entity) noexcept

Related types: EntityRegistry · Status · EntityId

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

GetOwners

std::span< const EntityId > ludus::gameplay::world::ComponentPool< T >::GetOwners() const noexcept

Related types: EntityId

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

GetValues

std::span< const T > ludus::gameplay::world::ComponentPool< T >::GetValues() const noexcept

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp

GetValues

std::span< T > ludus::gameplay::world::ComponentPool< T >::GetValues() noexcept

Declared in modules/gameplay/world/include/ludus/gameplay/world/component_pool.hpp