#include <Subblocks.h>
Public Member Functions | |
const T & | operator[] (int j) const |
T & | operator[] (int j) |
int | numberOfBlocks () const |
void | printOn (Reporter &o) const |
QString | className () const |
Name of block element in the specification (or something meaningful if there is no name in the law) | |
int | size () const |
Size of data used in the file. | |
Static Public Member Functions | |
static Subblocks | fromTypeAndCount (const DataPointer &start, int count) |
Create a fixed number of subblocks. | |
static Subblocks | fromTypeAndLength (const DataPointer &start, int length) |
Create Subblocks if a fixed number of bytes is to be read. | |
Protected Member Functions | |
void | appendAndIncrement (DataPointer &walker, T toAppend) |
Subblocks (const DataPointer &start) | |
Protected Attributes | |
std::vector< T > | array |
int | numberOfBytes |
Subblocks< T >::Subblocks | ( | const DataPointer & | start | ) | [inline, protected] |
void Subblocks< T >::appendAndIncrement | ( | DataPointer & | walker, |
T | toAppend | ||
) | [inline, protected] |
QString Subblocks< T >::className | ( | ) | const [inline, virtual] |
static Subblocks Subblocks< T >::fromTypeAndCount | ( | const DataPointer & | start, |
int | count | ||
) | [inline, static] |
Create a fixed number of subblocks.
static Subblocks Subblocks< T >::fromTypeAndLength | ( | const DataPointer & | start, |
int | length | ||
) | [inline, static] |
Create Subblocks if a fixed number of bytes is to be read.
int Subblocks< T >::numberOfBlocks | ( | ) | const [inline] |
const T& Subblocks< T >::operator[] | ( | int | j | ) | const [inline] |
T& Subblocks< T >::operator[] | ( | int | j | ) | [inline] |
Implements DataType.
int Subblocks< T >::size | ( | ) | const [inline, virtual] |
Size of data used in the file.
If the data element uses 3 bytes in the file, size() will return 3.
Implements DataType.
Referenced by prepareActivityChangeInfoArray(), VuTechnical::size(), VuEventsFaults::size(), RawVuOverview::size(), RawVuDetailedSpeedData::size(), RawVuActivities::size(), Block13::size(), and Block11::size().
int Subblocks< T >::numberOfBytes [protected] |