struct mola::WorldModelData::EntitiesContainer

Overview

Map container interface for Entities inside a WorldModel

struct EntitiesContainer
{
    // methods

    virtual std::size_t size() const = 0;
    virtual const Entity& by_id(const id_t id) const = 0;
    virtual Entity& by_id(const id_t id) = 0;
    virtual std::pair<id_t, Entity*> emplace_back(Entity&& e) = 0;
    virtual std::vector<id_t> all_ids() const = 0;
    virtual void clear() = 0;
};