21 template <
class ContainerT>
26 container.forEachSnapshot(
35 template <
class ContainerT>
36 const typename ContainerT::EntityInstanceT*
39 const typename ContainerT::EntityInstanceT* instance =
nullptr;
40 container.forEachInstance(
49 template <
class ContainerT>
53 std::vector<armem::MemoryID> entityIDs;
55 container.forEachEntity([&entityIDs](
const auto& entity)
56 { entityIDs.push_back(entity.id()); });
Client-side working memory entity snapshot.
armem::wm::EntitySnapshot EntitySnapshot
armem::wm::EntityInstance EntityInstance
const ContainerT::EntityInstanceT * findFirstInstance(const ContainerT &container)
std::string print(const wm::Memory &data, int maxDepth=-1, int depth=0)
std::vector< MemoryID > getEntityIDs(const ContainerT &container)
EntityUpdate toEntityUpdate(const wm::EntitySnapshot &snapshot)
std::vector< aron::data::DictPtr > getAronData(const wm::EntitySnapshot &snapshot)
Commit toCommit(const ContainerT &container)
A bundle of updates to be sent to the memory.
An update of an entity for a specific point in time.