GetLatestInstanceMixin< DerivedT > Struct Template Reference

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

+ Inheritance diagram for GetLatestInstanceMixin< DerivedT >:

Public Member Functions

auto & getLatestInstance (int instanceIndex=0)
 Retrieve the latest entity instance.
 
const auto & getLatestInstance (int instanceIndex=0) const
 

Member Function Documentation

◆ getLatestInstance() [1/2]

template<class DerivedT>
auto & getLatestInstance ( int instanceIndex = 0)
inline

Retrieve the latest entity instance.

Parameters
instanceIndexThe instance's index in the latest snapshot.
Returns
The latest entity instance.
Exceptions
armem::error::ArMemErrorIf there is no entity instance.

◆ getLatestInstance() [2/2]

template<class DerivedT>
const auto & getLatestInstance ( int instanceIndex = 0) const
inline

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