TS++ library: time series library

◆ drop()

template<class T>
virtual void ts::drop::SeriesDropContainer< T >::drop ( const Tvalue v)
inlinevirtual

this function accepts samples

Implements ts::drop::DropContainer< T >.

Definition at line 164 of file dropcontainer.h.

References ts::drop::SeriesDropContainer< T >::Mi, ts::drop::SeriesDropContainer< T >::Ms, and TSXX_assert.

165  {
166  TSXX_assert(Mi <= Ms.l(),
167  "SeriesDropContainer: index out of bounds");
168  Ms(Mi)=v;
169  ++Mi;
170  }
#define TSXX_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:127