herald  2.0.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
herald::analysis::sampling::SampleList< SampleT, MaxSize, SampleValueT > Struct Template Reference

#include <sampling.h>

Public Types

using value_type = SampleT
 
using difference_type = std::size_t
 
using iterator = SampleIterator< SampleList< SampleT, MaxSize > >
 
using size_type = std::size_t
 

Public Member Functions

 SampleList (const SampleList &)=delete
 
 SampleList (SampleList &&other) noexcept
 
SampleListoperator= (SampleList &&other) noexcept
 
template<typename... MultiSampleT>
 SampleList (MultiSampleT... initialiserElements)
 
void push (Sample< SampleValueT > sample)
 
void push (Date taken, SampleValueT val)
 
std::size_t size () const
 
const SampleT & operator[] (std::size_t idx) const
 
void clearBeforeDate (const Date &before)
 
void clear ()
 
Date latest ()
 
SampleIterator< SampleList< SampleT, MaxSize > > begin ()
 
SampleIterator< SampleList< SampleT, MaxSize > > end ()
 

Static Public Attributes

static constexpr std::size_t max_size = MaxSize
 

Detailed Description

template<typename SampleT, std::size_t MaxSize, typename SampleValueT = typename std::remove_cv<typename SampleT::value_type>::type>
struct herald::analysis::sampling::SampleList< SampleT, MaxSize, SampleValueT >

A Circular container for Samples Can be used as a container in the views library


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