MemoryQueryProcessorBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../base/MemoryQueryProcessorBase.h"
4 
5 
7 {
8 
9  template <class _MemoryT, class _ResultMemoryT, class _ChildProcessorT>
11  public base::MemoryQueryProcessorBase<_MemoryT, _ResultMemoryT, _ChildProcessorT>
12  {
13  protected:
14 
16 
17  public:
18 
19  using MemoryT = typename Base::MemoryT;
20  using CoreSegmentT = typename Base::CoreSegmentT;
24 
25  public:
27  virtual ~MemoryQueryProcessorBase() = default;
28 
29  using Base::process;
30 
31  protected:
32 
33  bool _processAllowed(const armem::query::data::MemoryQuery& query) const final
34  {
35  // only execute if query target is correct
36  return query.target == armem::query::data::QueryTarget::WM_LTM;
37  }
38 
39 
40  };
41 }
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase< armem::server::ltm::Memory, armem::wm::Memory, CoreSegmentQueryProcessor >::CoreSegmentT
typename MemoryT::CoreSegmentT CoreSegmentT
Definition: MemoryQueryProcessorBase.h:23
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase::ResultMemoryT
_ResultMemoryT ResultMemoryT
Definition: MemoryQueryProcessorBase.h:25
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase::MemoryT
_MemoryT MemoryT
Definition: MemoryQueryProcessorBase.h:22
armarx::armem::server::query_proc::base::BaseQueryProcessorBase< armem::server::ltm::Memory, armem::wm::Memory, armem::query::data::MemoryQuery >
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase::MemoryQueryProcessorBase
MemoryQueryProcessorBase()
Definition: MemoryQueryProcessorBase.h:32
armarx::armem::server::ltm::Memory
A memory storing data on the hard drive and in mongodb (needs 'armarx memory start' to start the mong...
Definition: Memory.h:19
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase::process
ResultMemoryT process(const armem::query::data::Input &input, const MemoryT &memory) const
Definition: MemoryQueryProcessorBase.h:43
armarx::armem::wm::Memory
Client-side working memory.
Definition: memory_definitions.h:133
armarx::armem::server::query_proc::ltm::detail::MemoryQueryProcessorBase
Definition: MemoryQueryProcessorBase.h:10
armarx::armem::server::query_proc::ltm::detail::MemoryQueryProcessorBase::~MemoryQueryProcessorBase
virtual ~MemoryQueryProcessorBase()=default
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase< armem::server::ltm::Memory, armem::wm::Memory, CoreSegmentQueryProcessor >::ChildProcessorT
CoreSegmentQueryProcessor ChildProcessorT
Definition: MemoryQueryProcessorBase.h:28
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase
Definition: MemoryQueryProcessorBase.h:14
armarx::armem::server::query_proc::ltm::detail::MemoryQueryProcessorBase::_processAllowed
bool _processAllowed(const armem::query::data::MemoryQuery &query) const final
Definition: MemoryQueryProcessorBase.h:33
armarx::armem::server::query_proc::ltm::detail
Definition: CoreSegmentQueryProcessorBase.h:6
armarx::armem::server::query_proc::base::MemoryQueryProcessorBase< armem::server::ltm::Memory, armem::wm::Memory, CoreSegmentQueryProcessor >::ResultCoreSegmentT
typename ResultMemoryT::CoreSegmentT ResultCoreSegmentT
Definition: MemoryQueryProcessorBase.h:26