#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. More...
|
|
template<class EntityInstanceBaseAronDtoFunctionT > |
bool | forEachInstanceWithDataAs (EntityInstanceBaseAronDtoFunctionT &&func) const |
| Call func on each instance with its data converted to Aron DTO class. More...
|
|
template<class DerivedT>
struct armarx::armem::base::detail::ForEachEntityInstanceMixin< DerivedT >
Definition at line 138 of file iteration_mixins.h.
◆ forEachInstance() [1/2]
bool forEachInstance |
( |
InstanceFunctionT && |
func | ) |
|
|
inline |
- Parameters
-
func | Function like: bool process(EntityInstanceT& instance)> |
Definition at line 147 of file iteration_mixins.h.
◆ forEachInstance() [2/2]
bool forEachInstance |
( |
InstanceFunctionT && |
func | ) |
const |
|
inline |
- Parameters
-
func | Function like: bool process(const EntityInstanceT& instance) |
Definition at line 158 of file iteration_mixins.h.
◆ forEachInstanceAs()
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) |
Definition at line 180 of file iteration_mixins.h.
◆ forEachInstanceWithDataAs()
bool forEachInstanceWithDataAs |
( |
EntityInstanceBaseAronDtoFunctionT && |
func | ) |
const |
|
inline |
Call func
on each instance with its data converted to Aron DTO class.
().forEachEntityInstanceWithDataAs(
[](armem::wm::EntityInstanceBase<my::arondto::CoolData> instance)
{
...
});
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
-
Definition at line 214 of file iteration_mixins.h.
The documentation for this struct was generated from the following file: