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
Florian Leander Singer
RobotAPI
Commits
1bae0746
Commit
1bae0746
authored
1 year ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add typedef for armarx::armem::wm::EntityInstanceBase<AronDtoT>
parent
f610be4a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem/core/wm/memory_definitions.h
+27
-0
27 additions, 0 deletions
source/RobotAPI/libraries/armem/core/wm/memory_definitions.h
with
27 additions
and
0 deletions
source/RobotAPI/libraries/armem/core/wm/memory_definitions.h
+
27
−
0
View file @
1bae0746
...
...
@@ -47,6 +47,32 @@ namespace armarx::armem::wm
bool
equalsDeep
(
const
EntityInstance
&
other
)
const
;
};
/**
* @brief Entity instance with a concrete ARON DTO type as data.
*
* This is the return type of EntityInstance::withDataAs<AronDtoT>().
*
* Usage example:
* @code
* #include <RobotAPI/libraries/aron/common/aron/time.aron.generated.h>
*
* armarx::arondto::Duration duration;
* duration.microSeconds = 1000;
*
* armarx::armem::wm::EntityInstance instance;
* instance.data() = duration.toAron();
*
* const armarx::armem::wm::EntityInstanceBase<armarx::arondto::Duration> cast =
* instance.withDataAs<armarx::arondto::Duration>();
*
* const armarx::arondto::Duration& durationOut = cast.data();
*
* assert(durationOut.microseconds == 1000);
* @endcode
*/
template
<
class
AronDtoT
>
using
EntityInstanceBase
=
base
::
EntityInstanceBase
<
AronDtoT
,
EntityInstanceMetadata
>
;
/**
* @brief Client-side working memory entity snapshot.
* @see base::EntitySnapshotBase
...
...
@@ -54,6 +80,7 @@ namespace armarx::armem::wm
class
EntitySnapshot
:
public
base
::
EntitySnapshotBase
<
EntityInstance
,
EntitySnapshot
>
,
public
detail
::
FindInstanceDataMixinForSnapshot
<
EntitySnapshot
>
{
public:
using
base
::
EntitySnapshotBase
<
EntityInstance
,
EntitySnapshot
>::
EntitySnapshotBase
;
...
...
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