GetFindEntityMixin< DerivedT > Struct Template Reference

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

+ Inheritance diagram for GetFindEntityMixin< DerivedT >:

Public Member Functions

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

Member Function Documentation

◆ findEntity() [1/2]

template<class DerivedT>
auto * findEntity ( const MemoryID & entityID)
inline

Find an entity.

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

◆ findEntity() [2/2]

template<class DerivedT>
const auto * findEntity ( const MemoryID & entityID) const
inline

◆ getEntity() [1/2]

template<class DerivedT>
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.

◆ getEntity() [2/2]

template<class DerivedT>
const auto & getEntity ( const MemoryID & entityID) const
inline

◆ hasEntity()

template<class DerivedT>
bool hasEntity ( const MemoryID & entityID) const
inline

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