#include <RobotAPI/libraries/armem/core/base/detail/iteration_mixins.h>
|
| template<class InstanceFunctionT> |
| bool | forEachInstance (InstanceFunctionT &&func) |
| |
| template<class InstanceFunctionT> |
| bool | forEachInstance (InstanceFunctionT &&func) const |
| |
| template<class AronDtoFunctionT> |
| bool | forEachInstanceAs (AronDtoFunctionT &&func) const |
| | Call func on the data of each instance converted to Aron DTO class.
|
| |
| template<class EntityInstanceBaseAronDtoFunctionT> |
| bool | forEachInstanceWithDataAs (EntityInstanceBaseAronDtoFunctionT &&func) const |
| | Call func on each instance with its data converted to Aron DTO class.
|
| |
◆ forEachInstance() [1/2]
template<class DerivedT>
template<class InstanceFunctionT>
| bool forEachInstance |
( |
InstanceFunctionT && | func | ) |
|
|
inline |
- Parameters
-
| func | Function like: bool process(EntityInstanceT& instance)> |
◆ forEachInstance() [2/2]
template<class DerivedT>
template<class InstanceFunctionT>
| bool forEachInstance |
( |
InstanceFunctionT && | func | ) |
const |
|
inline |
- Parameters
-
| func | Function like: bool process(const EntityInstanceT& instance) |
◆ forEachInstanceAs()
template<class DerivedT>
template<class AronDtoFunctionT>
| bool forEachInstanceAs |
( |
AronDtoFunctionT && | func | ) |
const |
|
inline |
Call func on the data of each instance converted to Aron DTO class.
().forEachEntityInstanceAs([](my::arondto::CoolData
data)
{
...
});
The Aron DTO type is deduced from the passed function's first argument.
- Parameters
-
| func | Function like: bool process(my::arondto::CoolData data) |
◆ forEachInstanceWithDataAs()
template<class DerivedT>
template<class EntityInstanceBaseAronDtoFunctionT>
| bool forEachInstanceWithDataAs |
( |
EntityInstanceBaseAronDtoFunctionT && | func | ) |
const |
|
inline |
Call func on each instance with its data converted to Aron DTO class.
().forEachEntityInstanceWithDataAs(
{
const armarx::arondto::Duration&
data = instance.
data();
...
});
std::string timestamp()
Definition CartographerAdapter.cpp:86
A memory ID.
Definition MemoryID.h:48
Time timestamp
Definition MemoryID.h:54
const DataT & data() const
Definition EntityInstanceBase.h:218
MemoryID & id()
Definition MemoryItem.h:25
Represents a point in time.
Definition DateTime.h:25
base::EntityInstanceBase< AronDtoT, EntityInstanceMetadata > EntityInstanceBase
Entity instance with a concrete ARON DTO type as data.
Definition memory_definitions.h:74
Compared to forEachInstanceAs(), this function allows accessing the full metadata of the instances in addition to the payload data converted to the ARON DTO.
The Aron DTO type is deduced from the passed function's signature.
- Parameters
-
The documentation for this struct was generated from the following file: