template <typename T>
class EnumLazyInspectRecorder
Defined at line 62 of file ../../sdk/lib/power/state_recorder/cpp/enum_state_recorder_internal.h
Records data in an underlying TimestampedBuffer to a lazy node, mapping enum values to names.
Public Methods
std::unique_ptr<EnumLazyInspectRecorder<T>> Create (std::shared_ptr<StateNameLookup<T>> name_lookup, size_t capacity, inspect::Node & parent_node)
The address of this object needs to be stable for the lazy node callback, so we force it to be
constructed behind a unique_ptr.
Defined at line 66 of file ../../sdk/lib/power/state_recorder/cpp/enum_state_recorder_internal.h
Protected Methods
void RecordToNode (inspect::Node & node, T value)
Defined at line 75 of file ../../sdk/lib/power/state_recorder/cpp/enum_state_recorder_internal.h
void EnumLazyInspectRecorder<T> (std::shared_ptr<StateNameLookup<T>> name_lookup, size_t capacity, inspect::Node & parent_node)
Defined at line 79 of file ../../sdk/lib/power/state_recorder/cpp/enum_state_recorder_internal.h