Template Struct CachedCounter#

Inheritance Relationships#

Derived Type#

Struct Documentation#

template<typename T>
struct CachedCounter#

Counter history paired with its current-value getter.

Template Parameters:

T – Counter value type.

Subclassed by Karana::Integrators::StaleCachedCounter< T >

Public Members

T past = {}#

Value accumulated before the current soft-reset interval.

std::function<T()> getter#

Return the current SUNDIALS counter, or -1 when unavailable.