A set of data buffers and their interpreters.
More...
List of all members.
Public Member Functions |
| | TraceData () |
| | TraceData (const TraceData &td) |
| | ~TraceData () |
| bool | allOk () const |
| bool | isEmpty () const |
| TraceData & | operator= (const TraceData &td) |
| void | copyFrom (const TraceData &) |
| | copy all components, making an exact copy.
|
| void | copyFrom (const TraceData &, int comp_from, int comp_to) |
| | copy comp_from of argument to my comp_to
|
| int | nrComponents () const |
| int | size (int icomp=0) const |
| int | bytesPerSample (int icomp=0) const |
| bool | isZero (int icomp=0) const |
| float | getValue (int idx, int icomp=0) const |
| void | setValue (int idx, float v, int icomp=0) |
| DataBuffer * | getComponent (int icomp=0) |
| const DataBuffer * | getComponent (int icomp=0) const |
| TraceDataInterpreter * | getInterpreter (int icomp=0) |
| const TraceDataInterpreter * | getInterpreter (int icomp=0) const |
| void | addComponent (int ns, const DataCharacteristics &, bool cleardata=false) |
| void | delComponent (int) |
| void | setComponent (const DataCharacteristics &, int icomp=0) |
| void | reSize (int, int icomp=-1, bool copydata=false) |
| | -1 = all data buffers
|
| void | scale (const Scaler &, int icomp=-1) |
| | -1 = all data buffers
|
| void | zero (int icomp=-1) |
| | -1 = all data buffers
|
| void | handleDataSwapping () |
Protected Attributes |
| DataBuffer ** | data_ |
| | pre-swaps all buffers that need it
|
| TraceDataInterpreter ** | interp_ |
| int | nrcomp_ |
Detailed Description
A set of data buffers and their interpreters.
A data buffer + interpreter is referred to as 'Component'. Note that this class is not concernedabout what is contained in the buffers (descriptions, constraints etc.).
Constructor & Destructor Documentation
| TraceData::TraceData |
( |
|
) |
[inline] |
| TraceData::TraceData |
( |
const TraceData & |
td |
) |
[inline] |
| TraceData::~TraceData |
( |
|
) |
|
Member Function Documentation
| bool TraceData::allOk |
( |
|
) |
const |
| int TraceData::bytesPerSample |
( |
int |
icomp = 0 |
) |
const [inline] |
| void TraceData::copyFrom |
( |
const TraceData & |
|
) |
|
copy all components, making an exact copy.
| void TraceData::copyFrom |
( |
const TraceData & |
, |
|
|
int |
comp_from, |
|
|
int |
comp_to | |
|
) |
| | |
copy comp_from of argument to my comp_to
| void TraceData::delComponent |
( |
int |
|
) |
|
| DataBuffer* TraceData::getComponent |
( |
int |
icomp = 0 |
) |
[inline] |
| const DataBuffer* TraceData::getComponent |
( |
int |
icomp = 0 |
) |
const [inline] |
| float TraceData::getValue |
( |
int |
idx, |
|
|
int |
icomp = 0 | |
|
) |
| | const [inline] |
| void TraceData::handleDataSwapping |
( |
|
) |
|
| bool TraceData::isEmpty |
( |
|
) |
const |
| bool TraceData::isZero |
( |
int |
icomp = 0 |
) |
const [inline] |
| int TraceData::nrComponents |
( |
|
) |
const [inline] |
| void TraceData::reSize |
( |
int |
, |
|
|
int |
icomp = -1, |
|
|
bool |
copydata = false | |
|
) |
| | |
| void TraceData::scale |
( |
const Scaler & |
, |
|
|
int |
icomp = -1 | |
|
) |
| | |
| void TraceData::setValue |
( |
int |
idx, |
|
|
float |
v, |
|
|
int |
icomp = 0 | |
|
) |
| | [inline] |
| int TraceData::size |
( |
int |
icomp = 0 |
) |
const [inline] |
| void TraceData::zero |
( |
int |
icomp = -1 |
) |
|
Member Data Documentation
pre-swaps all buffers that need it