Go to the documentation of this file.
3 #include <RobotAPI/interface/armem/query.h>
25 return atTime(
id.timestamp);
41 armem::query::data::ProviderSegmentQueryPtr,
53 template <
class... Ts>
76 const armem::query::data::EntityQuerySeq& childQueries)
const override;
81 armem::query::data::CoreSegmentQueryPtr,
92 template <
class... Ts>
104 return withName(
id.providerSegmentName);
114 armem::query::data::CoreSegmentQueryPtr& query,
115 const armem::query::data::ProviderSegmentQuerySeq& childQueries)
const override;
120 armem::query::data::MemoryQueryPtr,
121 ProviderSegmentSelector>,
131 template <
class... Ts>
143 return withName(
id.coreSegmentName);
153 armem::query::data::MemoryQueryPtr& query,
154 const armem::query::data::CoreSegmentQuerySeq& childQueries)
const override;
EntitySelector & all() override
ProviderSegmentSelector & withNamesMatching(const std::string ®ex) override
SnapshotSelector & latest()
EntitySelector & entities()
Start specifying entities.
void _setChildQueries(armem::query::data::MemoryQueryPtr &query, const armem::query::data::CoreSegmentQuerySeq &childQueries) const override
SnapshotSelector & timeRange(Time min, Time max)
SnapshotSelector & snapshots()
Start specifying entity snapshots.
std::vector< T > max(const std::vector< T > &v1, const std::vector< T > &v2)
SnapshotSelector & all() override
CoreSegmentSelector & all() override
void _setChildQueries(armem::query::data::CoreSegmentQueryPtr &query, const armem::query::data::ProviderSegmentQuerySeq &childQueries) const override
EntitySelector & withID(const MemoryID &id) override
ProviderSegmentSelector & withID(const MemoryID &id) override
SnapshotSelector & beforeTime(Time timestamp, long maxEntries=1)
SnapshotSelector()=default
EntitySelector & withNamesMatching(const std::string ®ex) override
CoreSegmentSelector & withName(const std::string &name) override
CoreSegmentSelector & withID(const MemoryID &id) override
SnapshotSelector & withID(const MemoryID &id) override
SnapshotSelector & atTimeApprox(Time timestamp, Duration eps)
auto withNames(const std::vector< std::string > &names)
CoreSegmentSelector()=default
Represents a point in time.
armem::query::data::EntityQuerySeq buildQueries() const
EntitySelector & withName(const std::string &name) override
ProviderSegmentSelector & withName(const std::string &name) override
SnapshotSelector & atTime(Time timestamp)
CoreSegmentSelector & withNamesMatching(const std::string ®ex) override
SnapshotSelector & beforeOrAtTime(Time timestamp)
std::vector< T > min(const std::vector< T > &v1, const std::vector< T > &v2)
SnapshotSelector & snapshots(Ts... args)
ProviderSegmentSelector & providerSegments()
Start specifying provider segments.
EntitySelector & entities(Ts... args)
void _setChildQueries(armem::query::data::ProviderSegmentQueryPtr &query, const armem::query::data::EntityQuerySeq &childQueries) const override
SnapshotSelector & indexRange(long first, long last)
ProviderSegmentSelector & all() override
ProviderSegmentSelector()=default
ProviderSegmentSelector & providerSegments(Ts... args)