EntityQueryProcessorBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../base/EntityQueryProcessorBase.h"
4 
6 
7 
9 {
10 
11  template <class _EntityT, class _ResultEntityT>
13  public base::EntityQueryProcessorBase<_EntityT, _ResultEntityT>
14  {
15  protected:
16 
18 
19  public:
20  using EntityT = typename Base::EntityT;
24 
25  public:
26  virtual ~EntityQueryProcessorBase() = default;
27 
28  using Base::process;
29 
30 
31  protected:
32  // default addResultSnapshot method. Always copies the data
33  void addResultSnapshot(ResultEntityT& result, const EntitySnapshotT& snapshot) const override
34  {
36  snapshot.loadAllReferences(s);
37  result.addSnapshot(s);
38  }
39  };
40 }
armarx::armem::server::query_proc::base::EntityQueryProcessorBase::ResultEntityT
_ResultEntityT ResultEntityT
Definition: EntityQueryProcessorBase.h:38
armarx::armem::server::query_proc::ltm::detail::EntityQueryProcessorBase::~EntityQueryProcessorBase
virtual ~EntityQueryProcessorBase()=default
armarx::armem::server::query_proc::base::BaseQueryProcessorBase< armem::server::ltm::Entity, armem::wm::Entity, armem::query::data::EntityQuery >
armarx::armem::server::ltm::Entity
A memory storing data in mongodb (needs 'armarx memory start' to start the mongod instance)
Definition: Entity.h:14
armarx::armem::server::query_proc::base::EntityQueryProcessorBase< armem::server::ltm::Entity, armem::wm::Entity >::ResultSnapshotT
typename ResultEntityT::EntitySnapshotT ResultSnapshotT
Definition: EntityQueryProcessorBase.h:39
armarx::armem::server::query_proc::base::EntityQueryProcessorBase
Definition: EntityQueryProcessorBase.h:26
armarx::armem::server::query_proc::base::EntityQueryProcessorBase::process
virtual void process(ResultEntityT &result, const armem::query::data::EntityQuery &query, const EntityT &entity) const override
Process the query and populate result.
Definition: EntityQueryProcessorBase.h:45
armarx::armem::base::EntityBase::addSnapshot
EntitySnapshotT & addSnapshot(const Time &timestamp)
Add a snapshot at the given time.
Definition: EntityBase.h:629
armarx::armem::server::query_proc::ltm::detail::EntityQueryProcessorBase
Definition: EntityQueryProcessorBase.h:12
armarx::armem::server::query_proc::base::EntityQueryProcessorBase< armem::server::ltm::Entity, armem::wm::Entity >::EntitySnapshotT
typename EntityT::EntitySnapshotT EntitySnapshotT
Definition: EntityQueryProcessorBase.h:36
armarx::armem::server::query_proc::ltm::detail::EntityQueryProcessorBase::addResultSnapshot
void addResultSnapshot(ResultEntityT &result, const EntitySnapshotT &snapshot) const override
Definition: EntityQueryProcessorBase.h:33
armarx::armem::server::query_proc::ltm::detail
Definition: CoreSegmentQueryProcessorBase.h:6
armarx::armem::wm::Entity
Client-side working memory entity.
Definition: memory_definitions.h:93
Logging.h
armarx::armem::server::query_proc::base::EntityQueryProcessorBase::EntityT
_EntityT EntityT
Definition: EntityQueryProcessorBase.h:35
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition: CtrlUtil.h:33