Messages::TRuntimeCtxId Class Reference

class Messages::TRuntimeCtxId

TRuntimeCtxId is the baseclass intended for addressing message (TSignalBase) destinations, i.e.: As implied by the respective API, the sender of a TSignalBase must supply a TRuntimeCtxId object.

TRuntimeCtxId defines the maximum size of the addressing structure and its bedrock composition (namely: the destination thread of execution).

TSignalBase

Public Member Functions
TRuntimeCtxId()
TRuntimeCtxId(const TRuntimeCtxId &)
IMPORT_C TBoolComparePart(const TRuntimeCtxId &, TUint8)
TBool IsNull()
IMPORT_C const TRuntimeCtxId &NullId()
IMPORT_C voidPostTo(const TRuntimeCtxId &, const TSignalBase &)
TUint8 Salt()
TUint32 Scope()
voidSetNull()
TUint8 Size()
IMPORT_C TIntStore(TDes8 &)
TUint16 Thread()
TBool operator!=(const TRuntimeCtxId &)
IMPORT_C const TRuntimeCtxId &operator=(const TRuntimeCtxId &)
IMPORT_C TBooloperator==(const TRuntimeCtxId &)
Protected Member Functions
TRuntimeCtxId(TUint8)
Private Attributes
TUint8 iSalt
TUint32 iScope
TUint8 iSize
TUint16 iThread

Constructor & Destructor Documentation

TRuntimeCtxId()

IMPORT_CTRuntimeCtxId()[explicit]

TRuntimeCtxId(const TRuntimeCtxId &)

IMPORT_CTRuntimeCtxId(const TRuntimeCtxId &aRuntimeCtxId)

Copy constructor

Parameters

const TRuntimeCtxId & aRuntimeCtxIdruntime context id to copy

TRuntimeCtxId(TUint8)

IMPORT_CTRuntimeCtxId(TUint8aSize)[protected, explicit]

Parameters

TUint8 aSizesize in bytes of the new id

Member Functions Documentation

ComparePart(const TRuntimeCtxId &, TUint8)

IMPORT_C TBoolComparePart(const TRuntimeCtxId &aRHS,
TUint8aSize
)const

Compare the first aSize bytes of this runtime context id with aRHS

Parameters

const TRuntimeCtxId & aRHSruntime context id to compare against
TUint8 aSizenumber of bytes to compare

IsNull()

TBool IsNull()const [inline]

NullId()

IMPORT_C const TRuntimeCtxId &NullId()[static]

PostTo(const TRuntimeCtxId &, const TSignalBase &)

IMPORT_C voidPostTo(const TRuntimeCtxId &aPostFrom,
const TSignalBase &aMessage
)const

Post a message to the addressed object.

Parameters

const TRuntimeCtxId & aPostFromaddress of sender
const TSignalBase & aMessagemessage to send

Salt()

TUint8 Salt()const [inline]

Scope()

TUint32 Scope()const [inline]

SetNull()

voidSetNull()[inline]

Make this id a null id

Size()

TUint8 Size()const [inline]

Store(TDes8 &)

IMPORT_C TIntStore(TDes8 &aDes)const

Serialise into a descriptor

Parameters

TDes8 & aDesdescriptor to serialise into

Thread()

TUint16 Thread()const [inline]

operator!=(const TRuntimeCtxId &)

TBool operator!=(const TRuntimeCtxId &aRHS)const [inline]

operator==

Parameters

const TRuntimeCtxId & aRHS

operator=(const TRuntimeCtxId &)

IMPORT_C const TRuntimeCtxId &operator=(const TRuntimeCtxId &aRHS)

Assignment operator. Copies contents of the passed in runtime context id into this runtime context id.

Parameters

const TRuntimeCtxId & aRHSruntime ctx id to copy

operator==(const TRuntimeCtxId &)

IMPORT_C TBooloperator==(const TRuntimeCtxId &aRHS)const

Compare the contents of this runtime context id to the contents of another. Only iSize bytes are compared, so if aRHS is bigger than the runtime context id it is being compared to any byte greater than iSize will not be compared.

Parameters

const TRuntimeCtxId & aRHSruntime context id to compare against

Member Data Documentation

TUint8 iSalt

TUint8 iSalt[private]

TUint32 iScope

TUint32 iScope[private]

TUint8 iSize

TUint8 iSize[private]

TUint16 iThread

TUint16 iThread[private]