ADTF File Library
Loading...
Searching...
No Matches
utils5ext::FileRingBuffer< ADDITIONAL_DATA, alignment, alignment_fill >::DropCallback Class Referenceabstract

#include <fileringbuffer.h>

Public Member Functions

virtual void onDrop (const Item &dropped_item, const Item &next_item)=0
 

Detailed Description

template<typename ADDITIONAL_DATA = uint8_t, uint8_t alignment = 1, uint8_t alignment_fill = 0x00>
class utils5ext::FileRingBuffer< ADDITIONAL_DATA, alignment, alignment_fill >::DropCallback

Callback interface for dropped items.

Member Function Documentation

◆ onDrop()

template<typename ADDITIONAL_DATA = uint8_t, uint8_t alignment = 1, uint8_t alignment_fill = 0x00>
virtual void utils5ext::FileRingBuffer< ADDITIONAL_DATA, alignment, alignment_fill >::DropCallback::onDrop ( const Item & dropped_item,
const Item & next_item )
pure virtual

Called whenever an item is removed from the head of the buffer.

Parameters
[in]dropped_itemThe dropped item
[in]next_itemThe item after the dropped item, i.e. the new head of the buffer.

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