ant
A2 ant: class-based analysis framework
ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem > Class Template Reference

#include <AvgBuffer.h>

+ Inheritance diagram for ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >:
+ Collaboration diagram for ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >:

Classes

struct  buffer_entry
 
struct  buffer_t
 

Public Member Functions

 AvgBuffer_SavitzkyGolay (std::size_t length, std::size_t polorder)
 
virtual ~AvgBuffer_SavitzkyGolay ()=default
 
void Push (std::shared_ptr< AvgBufferItem > h, const interval< TID > &id) override
 
void Flush () override
 
const AvgBufferItem & CurrentItem () const override
 
const interval< TID > & CurrentRange () const override
 
void Next () override
 
bool Empty () const override
 
- Public Member Functions inherited from ant::calibration::gui::AvgBuffer_traits< AvgBufferItem >
virtual void Peek (const interval< TID > &range)
 
virtual ~AvgBuffer_traits ()=default
 

Protected Types

using Traits = AvgBufferItem_traits< AvgBufferItem >
 

Protected Member Functions

std::shared_ptr< AvgBufferItem > GetSmoothedClone (typename buffer_t::const_iterator i) const
 

Protected Attributes

buffer_t m_buffer
 
std::queue< buffer_entryworklist
 
bool startup_done = false
 
const std::size_t m_sum_length
 
const SavitzkyGolay sg
 
- Protected Attributes inherited from ant::calibration::gui::AvgBuffer_traits< AvgBufferItem >
double total_length
 
unsigned total_n
 

Member Typedef Documentation

◆ Traits

template<typename AvgBufferItem >
using ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::Traits = AvgBufferItem_traits<AvgBufferItem>
protected

Constructor & Destructor Documentation

◆ AvgBuffer_SavitzkyGolay()

template<typename AvgBufferItem >
ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::AvgBuffer_SavitzkyGolay ( std::size_t  length,
std::size_t  polorder 
)
inline

◆ ~AvgBuffer_SavitzkyGolay()

template<typename AvgBufferItem >
virtual ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::~AvgBuffer_SavitzkyGolay ( )
virtualdefault

Member Function Documentation

◆ CurrentItem()

template<typename AvgBufferItem >
const AvgBufferItem& ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::CurrentItem ( ) const
inlineoverridevirtual

◆ CurrentRange()

template<typename AvgBufferItem >
const interval<TID>& ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::CurrentRange ( ) const
inlineoverridevirtual

◆ Empty()

template<typename AvgBufferItem >
bool ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::Empty ( ) const
inlineoverridevirtual

◆ Flush()

template<typename AvgBufferItem >
void ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::Flush ( )
inlineoverridevirtual

◆ GetSmoothedClone()

template<typename AvgBufferItem >
std::shared_ptr<AvgBufferItem> ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::GetSmoothedClone ( typename buffer_t::const_iterator  i) const
inlineprotected

◆ Next()

template<typename AvgBufferItem >
void ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::Next ( )
inlineoverridevirtual

◆ Push()

template<typename AvgBufferItem >
void ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::Push ( std::shared_ptr< AvgBufferItem >  h,
const interval< TID > &  id 
)
inlineoverridevirtual

Member Data Documentation

◆ m_buffer

template<typename AvgBufferItem >
buffer_t ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::m_buffer
protected

◆ m_sum_length

template<typename AvgBufferItem >
const std::size_t ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::m_sum_length
protected

◆ sg

template<typename AvgBufferItem >
const SavitzkyGolay ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::sg
protected

◆ startup_done

template<typename AvgBufferItem >
bool ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::startup_done = false
protected

◆ worklist

template<typename AvgBufferItem >
std::queue<buffer_entry> ant::calibration::gui::AvgBuffer_SavitzkyGolay< AvgBufferItem >::worklist
protected

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