EntityQueryProcessorBase.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "../../base/EntityQueryProcessorBase.h"
4
5
#include <
ArmarXCore/core/logging/Logging.h
>
6
7
8
namespace
armarx::armem::server::query_proc::ltm::detail
9
{
10
11
template
<
class
_EntityT,
class
_ResultEntityT>
12
class
EntityQueryProcessorBase
:
13
public
base::EntityQueryProcessorBase
<_EntityT, _ResultEntityT>
14
{
15
protected
:
16
17
using
Base
=
base::EntityQueryProcessorBase<_EntityT, _ResultEntityT>
;
18
19
public
:
20
using
EntityT
=
typename
Base::EntityT
;
21
using
EntitySnapshotT
=
typename
Base::EntitySnapshotT
;
22
using
ResultEntityT
=
typename
Base::ResultEntityT
;
23
using
ResultSnapshotT
=
typename
Base::ResultSnapshotT
;
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
{
35
ResultSnapshotT
s
;
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 ×tamp)
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
RobotAPI
libraries
armem
server
query_proc
ltm
detail
EntityQueryProcessorBase.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17