32 std::vector<SparseSetBase*> _ownedPools;
42 explicit Bond(std::vector<SparseSetBase*> pools);
50 bool matches_all(
Entity e)
const;
57 void move_entity(
Entity e,
size_t pos);
64 void on_component_bound(
Entity e);
73 void on_component_unbound(
Entity e);
78 Bond(
const Bond&) =
delete;
79 Bond& operator=(
const Bond&) =
delete;
80 Bond(Bond&&) =
delete;
81 Bond& operator=(Bond&&) =
delete;
Defines the Entity alias and the free functions used to pack and unpack it.
uint32_t Entity
A packed identifier: 20 bits of index, 12 bits of generation.
Definition Entity.hpp:20
Declares the SparseSetBase interface.
size_t get_pool_count() const
Returns the number of component pools in the bond.
Definition Bond.cpp:85
const std::vector< Entity > & get_entities() const
Returns the entity array of the first owned pool.
Definition Bond.cpp:81
size_t get_bond_size() const
Returns the number of Entities that are in the bond (have every component).
Definition Bond.cpp:77