Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
Subblocks< T > Class Template Reference

#include <Subblocks.h>

Inheritance diagram for Subblocks< T >:
Inheritance graph
[legend]
Collaboration diagram for Subblocks< T >:
Collaboration graph
[legend]

List of all members.

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

template<typename T>
class Subblocks< T >


Constructor & Destructor Documentation

template<typename T>
Subblocks< T >::Subblocks ( const DataPointer start) [inline, protected]

Member Function Documentation

template<typename T>
void Subblocks< T >::appendAndIncrement ( DataPointer walker,
toAppend 
) [inline, protected]
template<typename T>
QString Subblocks< T >::className ( ) const [inline, virtual]

Name of block element in the specification (or something meaningful if there is no name in the law)

This usually matches the name of the c++-class used to read and show the data

Implements Block.

template<typename T>
static Subblocks Subblocks< T >::fromTypeAndCount ( const DataPointer start,
int  count 
) [inline, static]

Create a fixed number of subblocks.

template<typename T>
static Subblocks Subblocks< T >::fromTypeAndLength ( const DataPointer start,
int  length 
) [inline, static]

Create Subblocks if a fixed number of bytes is to be read.

template<typename T>
int Subblocks< T >::numberOfBlocks ( ) const [inline]
template<typename T>
const T& Subblocks< T >::operator[] ( int  j) const [inline]
template<typename T>
T& Subblocks< T >::operator[] ( int  j) [inline]
template<typename T>
void Subblocks< T >::printOn ( Reporter o) const [inline, virtual]

Implements DataType.

template<typename T>
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().


Member Data Documentation

template<typename T>
std::vector<T> Subblocks< T >::array [protected]
template<typename T>
int Subblocks< T >::numberOfBytes [protected]

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