RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hf::ErrorHistoryWriter< Record > Class Template Referenceabstract

#include <ErrorHistory.h>

Inheritance diagram for hf::ErrorHistoryWriter< Record >:
hf::ErrorHistory< Record, kCapacity >

Public Member Functions

virtual ~ErrorHistoryWriter () noexcept=default
 
virtual bool Push (const Record &record) noexcept=0
 Append record. Overwrites oldest entry if full.
 
virtual bool Pop (Record &out) noexcept=0
 Pop oldest record into out; returns false if empty.
 
virtual bool Clear () noexcept=0
 Drop all records.
 

Constructor & Destructor Documentation

◆ ~ErrorHistoryWriter()

template<typename Record >
virtual hf::ErrorHistoryWriter< Record >::~ErrorHistoryWriter ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Clear()

template<typename Record >
virtual bool hf::ErrorHistoryWriter< Record >::Clear ( )
pure virtualnoexcept

Drop all records.

Implemented in hf::ErrorHistory< Record, kCapacity >.

◆ Pop()

template<typename Record >
virtual bool hf::ErrorHistoryWriter< Record >::Pop ( Record &  out)
pure virtualnoexcept

Pop oldest record into out; returns false if empty.

Implemented in hf::ErrorHistory< Record, kCapacity >.

◆ Push()

template<typename Record >
virtual bool hf::ErrorHistoryWriter< Record >::Push ( const Record &  record)
pure virtualnoexcept

Append record. Overwrites oldest entry if full.

Implemented in hf::ErrorHistory< Record, kCapacity >.


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