GSE++ library: reading and writing GSE waveforms
GSE2::waveform::differences::Tapply_diff Class Reference

Elementary operator to calculate differences. More...

#include "gsexx.h"

Public Member Functions

 Tapply_diff ()
 initialize (set previous value to zero) More...
 
int operator() (const intT &x)
 return difference to previous value and remember this More...
 
intT previous_value () const
 return diff value on request (for debugging) More...
 

Private Attributes

intT Mxold
 previous value in stream More...
 

Detailed Description

Elementary operator to calculate differences.

This class applies differences to an integer data stream. For this purpose it has to remember the previous data value. You have to initialize an object of this class for each data stream.

Todo:
This is the place, where overflow-checking should be done.

Definition at line 206 of file gsexx.h.


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