template<typename T>
vt::runtime::component::detail::DiagnosticValue struct

A keyed diagnostic value of some type T.

Base classes

struct DiagnosticBase
Base class for a diagnostic value with type of actual value erased.

Constructors, destructors, conversion operators

magistrate_virtual_serialize_derived_from(DiagnosticBase) DiagnosticValue(std
Create a new typed diagnostic value.
values_(DiagnosticSnapshotValues<T>{1, in_initial_value})

Public functions

void update(T val)
Update the value.
auto get(int snapshot) const -> T
Get the underlying value.
void reduceOver(Diagnostic* diagnostic, DiagnosticErasedValue* out, int snapshot) override
Implementation of the concrete reduction over T.
template<typename SerializerT>
void serialize(SerializerT& s)

Public variables

__pad0__
in_desc
in_update
in_unit
in_type

Function documentation

template<typename T>
void vt::runtime::component::detail::DiagnosticValue<T>::update(T val)

Update the value.

Parameters
val in new value, updated based on type of DiagnosticUpdate

template<typename T>
T vt::runtime::component::detail::DiagnosticValue<T>::get(int snapshot) const

Get the underlying value.

Returns the value

template<typename T>
void vt::runtime::component::detail::DiagnosticValue<T>::reduceOver(Diagnostic* diagnostic, DiagnosticErasedValue* out, int snapshot) override

Implementation of the concrete reduction over T.

Parameters
diagnostic in the diagnostic component (for the reducer)
out out the type-erased output
snapshot in the time snapshot to reduce over (0 is entire runtime)