#include <sxPacketContent.h>
Public Member Functions | |
virtual sx::DataType | Type () const =0 |
virtual sxPacketContent * | Clone (size_t cnt=0) const =0 |
virtual sxPacketContent * | Split (size_t chanCount)=0 |
virtual void | Assign (const sxPacketContent *content)=0 |
virtual void | Assign (const sxPacketContent *content, size_t cnt)=0 |
virtual void | PushBackCircular (sxPacketContent *content)=0 |
virtual bool | GetBool (size_t idx) const =0 |
virtual bool | GetBool (size_t chNo, size_t idx) const =0 |
virtual char | GetChar (size_t idx) const =0 |
virtual char | GetChar (size_t chNo, size_t idx) const =0 |
virtual unsigned char | GetUChar (size_t idx) const =0 |
virtual unsigned char | GetUChar (size_t chNo, size_t idx) const =0 |
virtual short | GetShort (size_t idx) const =0 |
virtual short | GetShort (size_t chNo, size_t idx) const =0 |
virtual unsigned short | GetUShort (size_t idx) const =0 |
virtual unsigned short | GetUShort (size_t chNo, size_t idx) const =0 |
virtual int | GetInt (size_t idx) const =0 |
virtual int | GetInt (size_t chNo, size_t idx) const =0 |
virtual unsigned int | GetUInt (size_t idx) const =0 |
virtual unsigned int | GetUInt (size_t chNo, size_t idx) const =0 |
virtual qint64 | GetInt64 (size_t idx) const =0 |
virtual qint64 | GetInt64 (size_t chNo, size_t idx) const =0 |
virtual quint64 | GetUInt64 (size_t idx) const =0 |
virtual quint64 | GetUInt64 (size_t chNo, size_t idx) const =0 |
virtual float | GetFloat (size_t idx) const =0 |
virtual float | GetFloat (size_t chNo, size_t idx) const =0 |
virtual double | GetDouble (size_t idx) const =0 |
virtual double | GetDouble (size_t chNo, size_t idx) const =0 |
virtual sxint_t | GetSxInt (size_t idx) const =0 |
virtual sxint_t | GetSxInt (size_t chNo, size_t idx) const =0 |
virtual void | Set (size_t idx, bool val)=0 |
virtual void | Set (size_t chNo, size_t idx, bool val)=0 |
virtual void | Set (size_t idx, char val)=0 |
virtual void | Set (size_t chNo, size_t idx, char val)=0 |
virtual void | Set (size_t idx, unsigned char val)=0 |
virtual void | Set (size_t chNo, size_t idx, unsigned char val)=0 |
virtual void | Set (size_t idx, short val)=0 |
virtual void | Set (size_t chNo, size_t idx, short val)=0 |
virtual void | Set (size_t idx, unsigned short val)=0 |
virtual void | Set (size_t chNo, size_t idx, unsigned short val)=0 |
virtual void | Set (size_t idx, int val)=0 |
virtual void | Set (size_t chNo, size_t idx, int val)=0 |
virtual void | Set (size_t idx, unsigned int val)=0 |
virtual void | Set (size_t chNo, size_t idx, unsigned int val)=0 |
virtual void | Set (size_t idx, float val)=0 |
virtual void | Set (size_t chNo, size_t idx, float val)=0 |
virtual void | Set (size_t idx, double val)=0 |
virtual void | Set (size_t chNo, size_t idx, double val)=0 |
virtual void | Set (size_t idx, qint64 val)=0 |
virtual void | Set (size_t chNo, size_t idx, qint64 val)=0 |
virtual void | Set (size_t idx, quint64 val)=0 |
virtual void | Set (size_t chNo, size_t idx, quint64 val)=0 |
virtual void | SetSxInt (size_t idx, sxint_t val)=0 |
virtual void | SetSxInt (size_t chNo, size_t idx, sxint_t val)=0 |
virtual void | Multiply (double val)=0 |
virtual void | Divide (double val)=0 |
virtual void | Add (double val)=0 |
virtual void | Subtract (double val)=0 |
virtual void | ConstSubtract (double val)=0 |
virtual void | Multiply (size_t idx, double val)=0 |
virtual void | Divide (size_t idx, double val)=0 |
virtual void | Add (size_t idx, double val)=0 |
virtual void | Subtract (size_t idx, double val)=0 |
virtual void | ConstSubtract (size_t idx, double val)=0 |
virtual void | Transpose ()=0 |
virtual void | Serialize (QDataStream &ds) const |
virtual void | Deserialize (QDataStream &ds) |
size_t | CopyTo (bool *data, size_t sz) const |
size_t | CopyTo (bool *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (char *data, size_t sz) const |
size_t | CopyTo (char *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (unsigned char *data, size_t sz) const |
size_t | CopyTo (unsigned char *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (short *data, size_t sz) const |
size_t | CopyTo (short *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (unsigned short *data, size_t sz) const |
size_t | CopyTo (unsigned short *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (int *data, size_t sz) const |
size_t | CopyTo (int *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (unsigned int *data, size_t sz) const |
size_t | CopyTo (unsigned int *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (qint64 *data, size_t sz) const |
size_t | CopyTo (qint64 *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (quint64 *data, size_t sz) const |
size_t | CopyTo (quint64 *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (float *data, size_t sz) const |
size_t | CopyTo (float *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (double *data, size_t sz) const |
size_t | CopyTo (double *data, size_t chNo, size_t cnt) const |
size_t | CopyToSxInt (sxint_t *data, size_t sz) const |
size_t | CopyToSxInt (sxint_t *data, size_t chNo, size_t cnt) const |
size_t | CopyTo (sxPacketContent *pc, size_t from, size_t cnt) const |
size_t | CopyPartTo (bool *data, size_t from, size_t sz) const |
size_t | CopyPartTo (bool *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (char *data, size_t from, size_t sz) const |
size_t | CopyPartTo (char *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (unsigned char *data, size_t from, size_t sz) const |
size_t | CopyPartTo (unsigned char *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (short *data, size_t from, size_t sz) const |
size_t | CopyPartTo (short *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (unsigned short *data, size_t from, size_t sz) const |
size_t | CopyPartTo (unsigned short *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (int *data, size_t from, size_t sz) const |
size_t | CopyPartTo (int *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (unsigned int *data, size_t from, size_t sz) const |
size_t | CopyPartTo (unsigned int *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (qint64 *data, size_t from, size_t sz) const |
size_t | CopyPartTo (qint64 *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (quint64 *data, size_t from, size_t sz) const |
size_t | CopyPartTo (quint64 *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (float *data, size_t from, size_t sz) const |
size_t | CopyPartTo (float *data, size_t chNo, size_t from, size_t cnt) const |
size_t | CopyPartTo (double *data, size_t from, size_t sz) const |
size_t | CopyPartTo (double *data, size_t chNo, size_t from, size_t cnt) const |
void | CopyDimension (const sxPacketContent *pc) |
bool | HasEqualDimension (const sxPacketContent *pc) const |
size_t | BytesCapacity () const |
size_t | Capacity () const |
size_t | TotalBytesLength () const |
size_t | TotalLength () const |
size_t | Count () const |
size_t | BytesCount () const |
size_t | BlockLength () const |
size_t | ChannelCount () const |
char * | RawData () |
char * | RawData (size_t ch) |
const char * | ConstRawData () const |
const char * | ConstRawData (size_t ch) const |
bool | IsEmpty () const |
void | Resize (size_t chCount, size_t cnt) |
void | Trim (size_t cnt, sx::Position pos) |
void | ReduceTo1Ch (size_t chfrom) |
void | ExpandTo (size_t ncnt) |
void | Reserve (size_t chCount, size_t cnt, bool copy=false) |
void | Zeros () |
bool | Append (const sxPacketContent *content) |
bool | Merge (const sxPacketContent *content) |
bool | Merge (const sxPacketContent *content, size_t cnt) |
Protected Member Functions | |
virtual bool | MergeType (const sxPacketContent *content)=0 |
virtual bool | MergeType (const sxPacketContent *content, size_t cnt)=0 |
virtual bool | AppendType (const sxPacketContent *content)=0 |
sxPacketContent (size_t cnt, size_t chanCnt, size_t blocklen) | |
Protected Attributes | |
char * | xData |
size_t | xBlockLength |
pointer to raw data | |
size_t | xCapacity |
block length (e.g. | |
size_t | xChannelCount |
channel count (number of row) | |
size_t | xCount |
number of column |
Class for handling 2 dimension data. Data is arranged in channel(row) x count(column).
size_t sxPacketContent::xCapacity [protected] |
block length (e.g.
double 8, float 4, etc capacity respective block length