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
2c4ff64c
Commit
2c4ff64c
authored
2 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Fix formatting, update doc
parent
636b0c7a
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
+25
-9
25 additions, 9 deletions
...e/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
with
25 additions
and
9 deletions
source/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
+
25
−
9
View file @
2c4ff64c
...
...
@@ -11,9 +11,9 @@ namespace armarx::armem::base
struct
Metadata
{
virtual
void
access
()
const
=
0
;
virtual
~
Metadata
()
=
default
;
virtual
void
access
()
const
=
0
;
};
/**
...
...
@@ -21,12 +21,20 @@ namespace armarx::armem::base
*/
struct
NoData
:
public
Metadata
{
void
access
()
const
final
{}
virtual
~
NoData
()
=
default
;
bool
operator
==
(
const
NoData
&
other
)
{
return
true
;
}
bool
operator
!=
(
const
NoData
&
other
)
{
return
false
;}
void
access
()
const
final
{
}
bool
operator
==
(
const
NoData
&
other
)
{
return
true
;
}
bool
operator
!=
(
const
NoData
&
other
)
{
return
false
;
}
};
...
...
@@ -35,8 +43,16 @@ namespace armarx::armem::base
*/
struct
EntityInstanceMetadata
:
public
Metadata
{
/// Time when this value was created.
///
/**
* @brief Time this instance refers to.
*
* For example, the physical time point when an image was captured.
* If the image is processed, the result should have the same
* referencedTime as the image.
*/
Time
referencedTime
=
Time
::
Invalid
();
/// Time when this value was sent to the memory.
Time
sentTime
=
Time
::
Invalid
();
/// Time when this value has arrived at the memory.
...
...
@@ -51,10 +67,10 @@ namespace armarx::armem::base
/// A counter how often the instance has been accessed
mutable
unsigned
long
accessed
=
0
;
void
access
()
const
final
;
virtual
~
EntityInstanceMetadata
()
=
default
;
void
access
()
const
final
;
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