|
Autoware.Auto
|
|
#include <utils.hpp>
Public Member Functions | |
| CacheStateMachine (const ComparatorT &comparator=ComparatorT()) | |
| CacheStateMachine (const DomainValue &value, const ComputeMode &mode, const ComparatorT &comparator=ComparatorT()) | |
| void | update (const DomainValue &value, const ComputeMode &mode) noexcept |
| bool8_t | is_cached (const DomainValue &x, const ExpressionTerm &term) const noexcept |
State machine to keep track of the cache state of an expression
| DomainValue | Value type |
| ComparatorT | Equality comparison functor for DomainValue |
|
inlineexplicit |
Constructor
| comparator | Equality comparison functor object. |
|
inline |
Constructor with initial values.
| value | Initial value |
| mode | Initial mode |
| comparator | Equality comparison functor object. |
|
inlinenoexcept |
Check if the term is already evaluated and cached for a given parameter
| x | Parameter value |
| term | Expression term to query the cache status. Can be one of the following: SCORE, JACOBIAN, HESSIAN |
|
inlinenoexcept |
Update the state with the given parameter and the computation mode/
| value | Parameter value used in computation |
| mode | Computation mode |