GetFindEntityMixin< DerivedT > Struct Template Reference

#include <RobotAPI/libraries/armem/core/base/detail/lookup_mixins.h>

Public Member Functions

auto * findEntity (const MemoryID &entityID)
 Find an entity. More...
 
const auto * findEntity (const MemoryID &entityID) const
 
auto & getEntity (const MemoryID &entityID)
 Retrieve an entity. More...
 
const auto & getEntity (const MemoryID &entityID) const
 
bool hasEntity (const MemoryID &entityID) const
 

Detailed Description

template<class DerivedT>
struct armarx::armem::base::detail::GetFindEntityMixin< DerivedT >

Definition at line 409 of file lookup_mixins.h.

Member Function Documentation

◆ findEntity() [1/2]

auto* findEntity ( const MemoryID entityID)
inline

Find an entity.

Parameters
idThe entity ID.
Returns
The entity or nullptr if it is missing.

Definition at line 425 of file lookup_mixins.h.

+ Here is the caller graph for this function:

◆ findEntity() [2/2]

const auto* findEntity ( const MemoryID entityID) const
inline

Definition at line 432 of file lookup_mixins.h.

◆ getEntity() [1/2]

auto& getEntity ( const MemoryID entityID)
inline

Retrieve an entity.

Parameters
idThe entity ID.
Returns
The entity if it is found.
Exceptions
armem::error::ArMemErrorif it is missing.

Definition at line 445 of file lookup_mixins.h.

+ Here is the caller graph for this function:

◆ getEntity() [2/2]

const auto& getEntity ( const MemoryID entityID) const
inline

Definition at line 451 of file lookup_mixins.h.

◆ hasEntity()

bool hasEntity ( const MemoryID entityID) const
inline

Definition at line 414 of file lookup_mixins.h.

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: