GetFindInstanceMixin< DerivedT > Struct Template Reference

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

Public Member Functions

auto * findInstance (const MemoryID &instanceID)
 Find an entity instance. More...
 
const auto * findInstance (const MemoryID &instanceID) const
 
auto & getInstance (const MemoryID &instanceID)
 Retrieve an entity instance. More...
 
const auto & getInstance (const MemoryID &instanceID) const
 
bool hasInstance (const MemoryID &instanceID) const
 Indicate whether this container has an instance with the given ID. More...
 
bool hasInstances () const
 Indicate whether this container contains at least one entity instance. More...
 

Detailed Description

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

Definition at line 81 of file lookup_mixins.h.

Member Function Documentation

◆ findInstance() [1/2]

auto* findInstance ( const MemoryID instanceID)
inline

Find an entity instance.

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

Definition at line 119 of file lookup_mixins.h.

+ Here is the caller graph for this function:

◆ findInstance() [2/2]

const auto* findInstance ( const MemoryID instanceID) const
inline

Definition at line 126 of file lookup_mixins.h.

◆ getInstance() [1/2]

auto& getInstance ( const MemoryID instanceID)
inline

Retrieve an entity instance.

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

Definition at line 139 of file lookup_mixins.h.

+ Here is the caller graph for this function:

◆ getInstance() [2/2]

const auto& getInstance ( const MemoryID instanceID) const
inline

Definition at line 145 of file lookup_mixins.h.

◆ hasInstance()

bool hasInstance ( const MemoryID instanceID) const
inline

Indicate whether this container has an instance with the given ID.

Parameters
instanceIDThe instance ID.
Returns
... WIP

Definition at line 108 of file lookup_mixins.h.

◆ hasInstances()

bool hasInstances ( ) const
inline

Indicate whether this container contains at least one entity instance.

Returns
True if there is at least one entity instance.

Definition at line 90 of file lookup_mixins.h.


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