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
26a9af2d
Commit
26a9af2d
authored
2 years ago
by
Fabian Tërnava
Browse files
Options
Downloads
Patches
Plain Diff
removed metadata base class. removed nodata dependency to metadata (added by accident)
parent
b06671b1
Branches
armem/dev
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!330
Rename time created
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
+7
-18
7 additions, 18 deletions
...e/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
with
7 additions
and
18 deletions
source/RobotAPI/libraries/armem/core/base/EntityInstanceBase.h
+
7
−
18
View file @
26a9af2d
...
@@ -9,25 +9,13 @@
...
@@ -9,25 +9,13 @@
namespace
armarx
::
armem
::
base
namespace
armarx
::
armem
::
base
{
{
struct
Metadata
{
virtual
~
Metadata
()
=
default
;
/// TODO @peller
virtual
void
access
()
const
=
0
;
};
/**
/**
* @brief Default data of an entity instance (empty).
* @brief Default data of an entity instance (empty).
*/
*/
struct
NoData
:
public
Metadata
struct
NoData
{
{
virtual
~
NoData
()
=
default
;
virtual
~
NoData
()
=
default
;
void
access
()
const
final
{
}
bool
operator
==
(
const
NoData
&
other
)
bool
operator
==
(
const
NoData
&
other
)
{
{
return
true
;
return
true
;
...
@@ -42,9 +30,11 @@ namespace armarx::armem::base
...
@@ -42,9 +30,11 @@ namespace armarx::armem::base
/**
/**
* @brief Metadata of an entity instance.
* @brief Metadata of an entity instance.
*/
*/
struct
EntityInstanceMetadata
:
public
Metadata
struct
EntityInstanceMetadata
{
{
///
virtual
~
EntityInstanceMetadata
()
=
default
;
/**
/**
* @brief Time this instance refers to.
* @brief Time this instance refers to.
*
*
...
@@ -68,9 +58,8 @@ namespace armarx::armem::base
...
@@ -68,9 +58,8 @@ namespace armarx::armem::base
/// A counter how often the instance has been accessed.
/// A counter how often the instance has been accessed.
mutable
unsigned
long
numAccessed
=
0
;
mutable
unsigned
long
numAccessed
=
0
;
virtual
~
EntityInstanceMetadata
()
=
default
;
/// Called whenever the entity instance this metadata belongs to is accessed (e.g. queried).
void
access
()
const
;
void
access
()
const
final
;
bool
operator
==
(
const
EntityInstanceMetadata
&
other
)
const
;
bool
operator
==
(
const
EntityInstanceMetadata
&
other
)
const
;
inline
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