TSqlBufRIterator Class Reference

class TSqlBufRIterator

TSqlBufRIterator iterator gives read-only access to the flat buffer content (RSqlBufFlat class). For convenience TSqlBufRIterator can represent the flat buffer fields content as one of the basic SQL types: TInt, TInt64, TReal, 16-bit text, 8-bit binary block. The text and binary fields may be accessed also as a byte stream.

RSqlBufFlat

Public Member Functions
TPtrC8 Binary()
TInt Int()
TInt64 Int64()
TBool IsPresent()
voidMoveTo(TInt)
TBool Next()
TReal Real()
voidSet(const RSqlBufFlat &)
TInt Size()
MStreamBuf *StreamL()
TPtrC16 Text()
TInt Type()
Private Member Functions
TInt AsInt()
TInt64 AsInt64()
TReal AsReal()
Private Attributes
const RSqlBufFlat::TCell *iBegin
const RSqlBufFlat::TCell *iCurrent
const RSqlBufFlat::TCell *iEnd

Member Functions Documentation

AsInt()

TInt AsInt()const [private, inline]

AsInt64()

TInt64 AsInt64()const [private, inline]

AsReal()

TReal AsReal()const [private, inline]

Binary()

TPtrC8 Binary()const

Int()

TInt Int()const

Int64()

TInt64 Int64()const

IsPresent()

TBool IsPresent()const [inline]

MoveTo(TInt)

voidMoveTo(TIntaIndex)[inline]

Moves to the specified field in the flat buffer.

Parameters

TInt aIndexField index

Next()

TBool Next()[inline]

Moves to the next flat buffer field

Real()

TReal Real()const

Set(const RSqlBufFlat &)

voidSet(const RSqlBufFlat &aBuf)[inline]

Initializes the iterator. After the initialization the iterator points to the first flat buffer field - 1.

Parameters

const RSqlBufFlat & aBufA reference to the buffer which will be iterated.

Size()

TInt Size()const [inline]

StreamL()

MStreamBuf *StreamL()const
leave
KErrNoMemory, out of memory condition has occured, KErrArgument, the column type is not text, blob or null;

Text()

TPtrC16 Text()const

Type()

TInt Type()const [inline]

Member Data Documentation

const RSqlBufFlat::TCell * iBegin

const RSqlBufFlat::TCell *iBegin[private]

const RSqlBufFlat::TCell * iCurrent

const RSqlBufFlat::TCell *iCurrent[private]

const RSqlBufFlat::TCell * iEnd

const RSqlBufFlat::TCell *iEnd[private]