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

Elementary operator to calculate the sum, which removes differences. More...

#include "gsexx.h"

Public Member Functions

 Tremove_diff ()
 initialize previous value to zero More...
 
intT operator() (const intT &x)
 integrate by adding this value to the previous returned More...
 
intT previous_value () const
 return diff value on request (for debugging) More...
 

Private Attributes

intT Mxold
 previous returned value More...
 

Detailed Description

Elementary operator to calculate the sum, which removes differences.

This class removes differences from an integer data stream by calculating a cumulative sum. For this purpose it has to remember the previous returned 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 226 of file gsexx.h.


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