TOstArray Class Reference

class TOstArray

Template class for array parameter types For example, to wrap an integer array to a trace: TInt arr[5]; OstTraceExt( GRP, TRC, "Array: %{int32[]}", TOstArray< TInt >( arr, 5 ) );

Public Member Functions
TOstArray (const T *, TInt )
TInt Length ()
const T * Ptr ()
TInt Size ()
Private Attributes
const T * iArray
TInt iLength

Constructor & Destructor Documentation

TOstArray(const T *, TInt)

TOstArray ( const T * aArray,
TInt aLength
) [inline]

Constructor

Parameters

const T * aArray the array data
TInt aLength the number of elements in the array

Member Functions Documentation

Length()

TInt Length ( ) const [inline]

Gets the number of elements in the array. Used from the functions generated by trace compiler

Ptr()

const T * Ptr ( ) const [inline]

Gets the array data pointer. Used from the functions generated by trace compiler

Size()

TInt Size ( ) const [inline]

Gets the number of bytes occupied by the array. Used from the functions generated by trace compiler

Member Data Documentation

const T * iArray

const T * iArray [private]

Array data

TInt iLength

TInt iLength [private]

Array length, as number of elements