Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Commits
bfc95628
Commit
bfc95628
authored
4 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Make functions const
parent
01a33c25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!94
ArMem Queries
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/libraries/armem/query/EntityQueryProcessor.cpp
+6
-6
6 additions, 6 deletions
...e/RobotAPI/libraries/armem/query/EntityQueryProcessor.cpp
source/RobotAPI/libraries/armem/query/EntityQueryProcessor.h
+6
-6
6 additions, 6 deletions
source/RobotAPI/libraries/armem/query/EntityQueryProcessor.h
with
12 additions
and
12 deletions
source/RobotAPI/libraries/armem/query/EntityQueryProcessor.cpp
+
6
−
6
View file @
bfc95628
...
...
@@ -11,7 +11,7 @@
namespace
armarx
::
armem
{
EntityPtr
EntityQueryProcessor
::
process
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
const
{
if
(
auto
q
=
dynamic_cast
<
const
query
::
entity
::
AllSnapshotsQuery
*>
(
&
query
))
{
...
...
@@ -31,13 +31,13 @@ namespace armarx::armem
}
}
data
::
Entity
EntityQueryProcessor
::
processToIce
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
data
::
Entity
EntityQueryProcessor
::
processToIce
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
const
{
return
toIce
<
data
::
Entity
>
(
process
(
query
,
entity
));
}
EntityPtr
EntityQueryProcessor
::
process
(
const
query
::
entity
::
AllSnapshotsQuery
&
query
,
const
Entity
&
entity
)
const
query
::
entity
::
AllSnapshotsQuery
&
query
,
const
Entity
&
entity
)
const
{
(
void
)
query
;
// Copy this entitiy and its contents.
...
...
@@ -45,7 +45,7 @@ namespace armarx::armem
}
EntityPtr
EntityQueryProcessor
::
process
(
const
query
::
entity
::
SingleSnapshotQuery
&
query
,
const
Entity
&
entity
)
const
query
::
entity
::
SingleSnapshotQuery
&
query
,
const
Entity
&
entity
)
const
{
(
void
)
query
;
EntityPtr
result
=
entity
.
getEmptyCopy
();
...
...
@@ -70,7 +70,7 @@ namespace armarx::armem
return
result
;
}
EntityPtr
EntityQueryProcessor
::
process
(
const
query
::
entity
::
SnapshotRangeQuery
&
query
,
const
Entity
&
entity
)
EntityPtr
EntityQueryProcessor
::
process
(
const
query
::
entity
::
SnapshotRangeQuery
&
query
,
const
Entity
&
entity
)
const
{
if
(
query
.
minTimestamp
<=
query
.
maxTimestamp
||
query
.
minTimestamp
<
0
||
query
.
maxTimestamp
<
0
)
{
...
...
@@ -85,7 +85,7 @@ namespace armarx::armem
}
EntityPtr
EntityQueryProcessor
::
process
(
const
Time
&
min
,
const
Time
&
max
,
const
Entity
&
entity
)
EntityPtr
EntityQueryProcessor
::
process
(
const
Time
&
min
,
const
Time
&
max
,
const
Entity
&
entity
)
const
{
EntityPtr
result
=
entity
.
getEmptyCopy
();
...
...
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/armem/query/EntityQueryProcessor.h
+
6
−
6
View file @
bfc95628
...
...
@@ -16,14 +16,14 @@ namespace armarx::armem
{
public:
EntityPtr
process
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
);
data
::
Entity
processToIce
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
);
EntityPtr
process
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
const
;
data
::
Entity
processToIce
(
const
query
::
EntityQuery
&
query
,
const
Entity
&
entity
)
const
;
EntityPtr
process
(
const
query
::
entity
::
AllSnapshotsQuery
&
query
,
const
Entity
&
entity
);
EntityPtr
process
(
const
query
::
entity
::
SingleSnapshotQuery
&
query
,
const
Entity
&
entity
);
EntityPtr
process
(
const
query
::
entity
::
SnapshotRangeQuery
&
query
,
const
Entity
&
entity
);
EntityPtr
process
(
const
query
::
entity
::
AllSnapshotsQuery
&
query
,
const
Entity
&
entity
)
const
;
EntityPtr
process
(
const
query
::
entity
::
SingleSnapshotQuery
&
query
,
const
Entity
&
entity
)
const
;
EntityPtr
process
(
const
query
::
entity
::
SnapshotRangeQuery
&
query
,
const
Entity
&
entity
)
const
;
EntityPtr
process
(
const
Time
&
min
,
const
Time
&
max
,
const
Entity
&
entity
);
EntityPtr
process
(
const
Time
&
min
,
const
Time
&
max
,
const
Entity
&
entity
)
const
;
};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment