Public Member Functions | Public Attributes | Private Member Functions
DataPointer Class Reference

#include <DataPointer.h>

Inheritance diagram for DataPointer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DataPointer (const QByteArray &data_, int offset_=0)
DataPointer operator+ (int j) const
DataPointer operator- (int j) const
int operator- (const DataPointer &other) const
DataPointeroperator+= (int j)
unsigned char operator[] (int j) const
const unsigned char * toUnsignedPointer (int j=0) const
const char * toPointer (int j=0) const
int bytesLeft () const
bool operator< (const DataPointer &other)
QByteArray toQByteArray () const

Public Attributes

QByteArray data
int offset

Private Member Functions

QString hexByte (unsigned char start) const

Constructor & Destructor Documentation

DataPointer::DataPointer ( const QByteArray &  data_,
int  offset_ = 0 
) [inline, explicit]

Referenced by operator+(), and operator-().


Member Function Documentation

int DataPointer::bytesLeft ( ) const [inline]
QString DataPointer::hexByte ( unsigned char  start) const [inline, private]
DataPointer DataPointer::operator+ ( int  j) const [inline]

References data, DataPointer(), and offset.

DataPointer& DataPointer::operator+= ( int  j) [inline]

References offset.

int DataPointer::operator- ( const DataPointer other) const [inline]

References offset.

DataPointer DataPointer::operator- ( int  j) const [inline]

References data, DataPointer(), and offset.

bool DataPointer::operator< ( const DataPointer other) [inline]

References offset.

unsigned char DataPointer::operator[] ( int  j) const [inline]

References data, and offset.

const char* DataPointer::toPointer ( int  j = 0) const [inline]
QByteArray DataPointer::toQByteArray ( ) const

Reimplemented in RawData.

References data.

Referenced by RawData::toQByteArray().

const unsigned char* DataPointer::toUnsignedPointer ( int  j = 0) const [inline]

References toPointer().


Member Data Documentation

QByteArray DataPointer::data

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