9 for (
const auto&
s : e)
19 for (
const auto&
s : e)
26 c->addProviderSegment(
s);
34 for (
const auto&
s : e)
42 if (!
c->hasProviderSegment(
s.id().providerSegmentName))
44 c->addProviderSegment(
s.id().providerSegmentName);
46 auto* p =
c->findProviderSegment(
s.id().providerSegmentName);
56 for (
const auto&
s : e)
64 if (!
c->hasProviderSegment(
s.id().providerSegmentName))
66 c->addProviderSegment(
s.id().providerSegmentName);
68 auto* p =
c->findProviderSegment(
s.id().providerSegmentName);
70 if (!p->hasEntity(
s.id().entityName))
72 p->addEntity(
s.id().entityName);
74 auto* en = p->findEntity(
s.id().entityName);
83 for (
const auto&
s : e)
91 if (!
c->hasProviderSegment(
s.id().providerSegmentName))
93 c->addProviderSegment(
s.id().providerSegmentName);
95 auto* p =
c->findProviderSegment(
s.id().providerSegmentName);
97 if (!p->hasEntity(
s.id().entityName))
99 p->addEntity(
s.id().entityName);
101 auto* en = p->findEntity(
s.id().entityName);
103 if (!en->hasSnapshot(
s.id().timestamp))
105 en->addSnapshot(
s.id().timestamp);
107 auto* sn = p->findSnapshot(
s.id());
116 const std::vector<EntitySnapshot>& e)
121 for (
const auto&
s : e)
124 auto coreSegmentName =
s.id().coreSegmentName;
135 auto providerSegmentName =
s.id().providerSegmentName;
136 auto* providerStructure = coreStructure->findProviderSegment(providerSegmentName);
138 if (!
c->hasProviderSegment(providerSegmentName))
140 c->addProviderSegment(providerSegmentName, providerStructure->aronType());
142 auto* p =
c->findProviderSegment(providerSegmentName);
144 if (!p->hasEntity(
s.id().entityName))
146 p->addEntity(
s.id().entityName);
148 auto* en = p->findEntity(
s.id().entityName);