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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
380f8c54
Commit
380f8c54
authored
2 years ago
by
Fabian Tërnava
Browse files
Options
Downloads
Patches
Plain Diff
merge
parent
0658d898
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
+6
-20
6 additions, 20 deletions
...e/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
with
6 additions
and
20 deletions
source/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
+
6
−
20
View file @
380f8c54
...
...
@@ -9,25 +9,13 @@
namespace
armarx
::
armem
::
base
{
struct
Metadata
{
virtual
~
Metadata
()
=
default
;
/// TODO @peller
virtual
void
access
()
const
=
0
;
};
/**
* @brief Default data of an entity instance (empty).
*/
struct
NoData
:
public
Metadata
struct
NoData
{
virtual
~
NoData
()
=
default
;
void
access
()
const
final
{
}
bool
operator
==
(
const
NoData
&
other
)
{
return
true
;
...
...
@@ -42,10 +30,10 @@ namespace armarx::armem::base
/**
* @brief Metadata of an entity instance.
*/
struct
EntityInstanceMetadata
:
public
Metadata
struct
EntityInstanceMetadata
{
/// Time when this value was created.
Time
createdTime
;
virtual
~
EntityInstanceMetadata
()
=
default
;
/**
* @brief Time this instance refers to.
...
...
@@ -58,7 +46,6 @@ namespace armarx::armem::base
/// Time when this value was sent to the memory.
Time
sentTime
=
Time
::
Invalid
();
/// Time when this value has arrived at the memory.
Time
arrivedTime
=
Time
::
Invalid
();
...
...
@@ -71,9 +58,8 @@ namespace armarx::armem::base
/// A counter how often the instance has been accessed.
mutable
unsigned
long
numAccessed
=
0
;
virtual
~
EntityInstanceMetadata
()
=
default
;
void
access
()
const
final
;
/// Called whenever the entity instance this metadata belongs to is accessed (e.g. queried).
void
access
()
const
;
bool
operator
==
(
const
EntityInstanceMetadata
&
other
)
const
;
inline
bool
operator
!=
(
const
EntityInstanceMetadata
&
other
)
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