struct mola::WorldModelData::FactorsContainer

Overview

Map container interface for Factors inside a WorldModel

struct FactorsContainer
{
    // methods

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