UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqb_real_trace.hpp>
Public Member Functions | |
ZqbRealTrace () | |
ZqbRealTrace (const ZqbAbstrTrace &atr, int trhdr_size, const void *trhdr, const float *trace=NULL) | |
ZqbRealTrace (const ZqbAbstrTrace &atr, const ZqbHeader &hdr, const float *trace=NULL) | |
ZqbRealTrace (const ZqbAbstrTrace &rtr) | |
ZqbRealTrace (const ZqbRealTrace &rtr) | |
virtual | ~ZqbRealTrace () |
int | headerSize () const |
ZqbRealTrace & | operator= (const ZqbRealTrace &rtr) |
ZqbRealTrace & | operator= (const ZqbAbstrTrace &atr) |
ZqbRealTrace & | operator= (const ZqbHeader &hdr) |
ZqbRealTrace & | operator= (const float *trace) |
virtual void | getMinMaxAmpl (float mm[2]) |
ZqbRealTrace () | |
ZqbRealTrace (const ZqbAbstrTrace &atr, int trhdr_size, const void *trhdr, const float *trace=NULL) | |
ZqbRealTrace (const ZqbAbstrTrace &atr, const ZqbHeader &hdr, const float *trace=NULL) | |
ZqbRealTrace (const ZqbAbstrTrace &rtr) | |
ZqbRealTrace (const ZqbRealTrace &rtr) | |
virtual | ~ZqbRealTrace () |
void | resize (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) |
int | headerSize () const |
ZqbRealTrace & | operator= (const ZqbRealTrace &rtr) |
ZqbRealTrace & | operator= (const ZqbAbstrTrace &atr) |
ZqbRealTrace & | operator= (const ZqbHeader &hdr) |
ZqbRealTrace & | operator= (const float *trace) |
virtual void | getMinMaxAmpl (float mm[2]) |
Public Member Functions inherited from ZqbAbstrTrace | |
ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) | |
ZqbAbstrTrace (const ZqbAbstrTrace &atr) | |
virtual | ~ZqbAbstrTrace () |
ZqbAbstrTrace & | operator= (const ZqbAbstrTrace &atr) |
virtual void | assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) |
virtual void | setAllActual () |
virtual int | time2sample (float t) const |
virtual float | sample2time (int i) const |
virtual float | toTime (float fSampleIndex) const |
virtual float | fromTime (float fTime) const |
virtual bool | operator== (const ZqbAbstrTrace &atr) const |
bool | operator!= (const ZqbAbstrTrace &atr) const |
virtual float | sample (const float *trace, float t, int order=1) const |
void | getTimes (double t[2]) const |
ZqbAbstrTrace (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) | |
ZqbAbstrTrace (const ZqbAbstrTrace &atr) | |
virtual | ~ZqbAbstrTrace () |
ZqbAbstrTrace & | operator= (const ZqbAbstrTrace &atr) |
virtual void | assign (int samples, float dt=1.0, float t0=0.0, const int actual[2]=NULL) |
virtual void | setAllActual () |
virtual int | time2sample (float t) const |
virtual float | sample2time (int i) const |
virtual float | toTime (float fSampleIndex) const |
virtual float | fromTime (float fTime) const |
virtual bool | operator== (const ZqbAbstrTrace &atr) const |
bool | operator!= (const ZqbAbstrTrace &atr) const |
virtual float | sample (const float *trace, float t, int order=1) const |
void | getTimes (double t[2]) const |
Public Member Functions inherited from ZqbHeader | |
ZqbHeader () | |
ZqbHeader (int trhdr_size, const void *trhdr=NULL) | |
ZqbHeader (const ZqbHeader &hdr) | |
virtual | ~ZqbHeader () |
ZqbHeader & | operator= (const ZqbHeader &hdr) |
virtual int | size () const |
virtual void | setHeader (int trhdr_size, const void *trhdr=NULL) |
virtual void | setHeader (const void *trhdr) |
virtual void | resetSortOrder () |
virtual void | setSortOrder (int hwId, ZqbOrder eOrder=Z_O_ASCENT) |
virtual void | setSortOrder (int hwId1, ZqbOrder eOrder1, int hwId2, ZqbOrder eOrder2) |
virtual void | setSortOrder (int hwId1, ZqbOrder eOrder1, int hwId2, ZqbOrder eOrder2, int hwId3, ZqbOrder eOrder3) |
virtual bool | operator< (const ZqbHeader &hdr) const |
virtual bool | operator== (const ZqbHeader &hdr) const |
bool | operator!= (const ZqbHeader &hdr) const |
int | hwCompare (int hwId, const ZqbHeader &hdr, double fPrec=1e-32) const |
virtual ZqbType | hdrType (int hwId) const |
virtual const char * | hdrLabel (int hwId) const |
virtual char | hdrChar (int hwId) const |
virtual int | hdrInt (int hwId) const |
virtual float | hdrFloat (int hwId) const |
virtual void | hdrChar (int hwId, char cValue) |
virtual void | hdrInt (int hwId, int iValue) |
virtual void | hdrFloat (int hwId, float fValue) |
virtual int | hwid2index (int hwId) const |
ZqbHeader () | |
ZqbHeader (int trhdr_size, const void *trhdr=NULL) | |
ZqbHeader (const ZqbHeader &hdr) | |
virtual | ~ZqbHeader () |
ZqbHeader & | operator= (const ZqbHeader &hdr) |
virtual int | size () const |
virtual void | setHeader (int trhdr_size, const void *trhdr=NULL) |
virtual void | setHeader (const void *trhdr) |
virtual void | resetSortOrder () |
virtual void | setSortOrder (int hwId, ZqbOrder eOrder=Z_O_ASCENT) |
virtual void | setSortOrder (int hwId1, ZqbOrder eOrder1, int hwId2, ZqbOrder eOrder2) |
virtual void | setSortOrder (int hwId1, ZqbOrder eOrder1, int hwId2, ZqbOrder eOrder2, int hwId3, ZqbOrder eOrder3) |
virtual bool | operator< (const ZqbHeader &hdr) const |
virtual bool | operator== (const ZqbHeader &hdr) const |
bool | operator!= (const ZqbHeader &hdr) const |
int | hwCompare (int hwId, const ZqbHeader &hdr, double fPrec=1e-32) const |
virtual ZqbType | hdrType (int hwId) const |
virtual const char * | hdrLabel (int hwId) const |
virtual char | hdrChar (int hwId) const |
virtual int | hdrInt (int hwId) const |
virtual float | hdrFloat (int hwId) const |
virtual void | hdrChar (int hwId, char cValue) |
virtual void | hdrInt (int hwId, int iValue) |
virtual void | hdrFloat (int hwId, float fValue) |
virtual int | hwid2index (int hwId) const |
virtual int | hwid2offset (int hwId) const |
Public Attributes | |
float * | m_pSamples |
Public Attributes inherited from ZqbAbstrTrace | |
int | m_nSamples |
int | m_iActual [2] |
float | m_fDt |
float | m_fT0 |
Public Attributes inherited from ZqbHeader | |
int | m_nHdrSize |
void * | m_pHdr |
ZqbHeaderDef * | m_pHdrDef |
bool | m_bUseful |
Additional Inherited Members | |
Static Public Member Functions inherited from ZqbHeader | |
static bool | compareLess (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | compareEqual (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | compareNotEqual (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | byteCompare (const ZqbHeader &hdr1, const ZqbHeader &hdr2) |
static bool | compareLess (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | compareEqual (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | compareNotEqual (const ZqbHeader *hdr1, const ZqbHeader *hdr2) |
static bool | byteCompare (const ZqbHeader &hdr1, const ZqbHeader &hdr2) |
Static Public Attributes inherited from ZqbHeader | |
static double | s_fEpsilon |
Protected Attributes inherited from ZqbHeader | |
int | m_nCriteria |
int | m_iSortHW [3] |
ZqbOrder | m_eSortOrder [3] |
Trace container object consists of trace parameters, trace header and samples. Class is supposed to be STL compatible.
Please handle data members with care bacause changing them directly may lead to SEGV.
ZqbRealTrace::ZqbRealTrace | ( | ) |
Create empty container. It's supposed that later all fields will be filled by real world values.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | atr, |
int | trhdr_size, | ||
const void * | trhdr, | ||
const float * | trace = NULL |
||
) |
Create trace with given absract parameters, given trace header and given samples. All data are copied into the object. Header size should be represented in bytes.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | atr, |
const ZqbHeader & | hdr, | ||
const float * | trace = NULL |
||
) |
Create trace with given absract parameters, given trace header and given samples. All data are copied into the object. Header size should be represented in bytes.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | rtr | ) |
Create trace filled by zeros with given abstract parameters.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbRealTrace & | rtr | ) |
Create copy of given trace.
|
virtual |
Destroy the object.
ZqbRealTrace::ZqbRealTrace | ( | ) |
Create empty container. It's supposed that later all fields will be filled by real world values.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | atr, |
int | trhdr_size, | ||
const void * | trhdr, | ||
const float * | trace = NULL |
||
) |
Create trace with given absract parameters, given trace header and given samples. All data are copied into the object. Header size should be represented in bytes.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | atr, |
const ZqbHeader & | hdr, | ||
const float * | trace = NULL |
||
) |
Create trace with given absract parameters, given trace header and given samples. All data are copied into the object. Header size should be represented in bytes.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbAbstrTrace & | rtr | ) |
Create trace filled by zeros with given abstract parameters.
ZqbRealTrace::ZqbRealTrace | ( | const ZqbRealTrace & | rtr | ) |
Create copy of given trace.
|
virtual |
Destroy the object.
|
virtual |
Return minimum (mm[0]) and maximum (mm[1]) value of samples. Default implementation scans through m_pSamples. More advanced derivations may request cached values from headers.
|
virtual |
Return minimum (mm[0]) and maximum (mm[1]) value of samples. Default implementation scans through m_pSamples. More advanced derivations may request cached values from headers.
|
inline |
Synonymous for ZqbHeader::size().
|
inline |
Synonymous for ZqbHeader::size().
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbRealTrace & | rtr | ) |
Copy given trace into this one.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbAbstrTrace & | atr | ) |
Copy given abstract trace into this one. Samples became filled by zeros. Header is not touched.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbRealTrace & | rtr | ) |
Copy given trace into this one.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbHeader & | hdr | ) |
Copy given header into the object.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbAbstrTrace & | atr | ) |
Copy given abstract trace into this one. Samples became filled by zeros. Header is not touched.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const float * | trace | ) |
Copy given trace into the object.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const ZqbHeader & | hdr | ) |
Copy given header into the object.
ZqbRealTrace& ZqbRealTrace::operator= | ( | const float * | trace | ) |
Copy given trace into the object.
void ZqbRealTrace::resize | ( | int | samples, |
float | dt = 1.0 , |
||
float | t0 = 0.0 , |
||
const int | actual[2] = NULL |
||
) |
Resize trace with provided times and size. Samples reallocated like realloc() function and tail is filled by zeros.
float * ZqbRealTrace::m_pSamples |
Pointer to trace samples.