MeshMachine::AMMNodeBase Class Reference

class MeshMachine::AMMNodeBase : public Messages::ANodeBase

Inherits from

Public Member Functions
IMPORT_C voidAbortActivitiesOriginatedBy(TNodeContextBase &, const Messages::TNodeId &, TBool)
IMPORT_C const RPointerArray< CNodeActivityBase > &Activities()
IMPORT_C TUintCountActivities(TUint8)
IMPORT_C TUintCountAllActivities(TUint8)
IMPORT_C TUintCountAllActivities()
IMPORT_C CNodeActivityBase *FindActivityById(TUint)
IMPORT_C CNodeActivityBase *FindActivityOriginatedBy(const Messages::TRuntimeCtxId &)
IMPORT_C CNodeActivityBase *FindAddressedActivity(const TNodeContextBase &)
IMPORT_C voidPostReceived(TNodeContextBase &)
IMPORT_C voidReceived(const Messages::TNodeSignal::TMessageId, TNodeContextBase &)
IMPORT_C voidRemoveClient(const Messages::TRuntimeCtxId &, TNodeContextBase &)
IMPORT_C voidRemoveClient(const Messages::TRuntimeCtxId &)
IMPORT_C voidReturnInterfacePtrL(AMMNodeBase *&)
Protected Member Functions
AMMNodeBase(const TNodeActivityMap &, const Messages::TNodeId &)
~AMMNodeBase()
IMPORT_C voidConstructL(TInt)
IMPORT_C voidHandleMessageReturnValue(TNodeContextBase &)
IMPORT_C voidHandlePassThroughMessage(TNodeContextBase &)
voidSignalActivities()
Private Member Functions
TBool Accept(TNodeContextBase &, CNodeActivityBase *&)
TAny *BorrowPreallocatedSpace(TUint)
TAny *GetPreallocatedCell(TUint)
TUint MaxPreallocatedActivityCount()
voidPreallocateSpaceL(TUint)
voidReturnPreallocatedSpace(TAny *)
voidStartActivityL(TNodeContextBase &, const TNodeActivity &, const NetStateMachine::TStateTriple &)
voidStartNewActivitiesL(TNodeContextBase &, CNodeActivityBase *)
Public Member Type Definitions
typedef NetInterfaces::TIfStaticFetcherLinkBase< Messages::ANodeBase::TIfStaticFetcherNearestInHierarchy, AMMNodeBase, AMMNodeBase > TIfStaticFetcherNearestInHierarchy
Public Attributes
const TIntKInterfaceId
Protected Attributes
const TNodeActivityMap &iActivityMap
Private Attributes
RPointerArray< CNodeActivityBase >iActivities
TAny *iPreallocatedSpace

Constructor & Destructor Documentation

AMMNodeBase(const TNodeActivityMap &, const Messages::TNodeId &)

IMPORT_CAMMNodeBase(const TNodeActivityMap &aActivityMap,
const Messages::TNodeId &aNodeId
)[protected, explicit]

Parameters

const TNodeActivityMap & aActivityMap
const Messages::TNodeId & aNodeId

~AMMNodeBase()

IMPORT_C~AMMNodeBase()[protected]

Member Functions Documentation

AbortActivitiesOriginatedBy(TNodeContextBase &, const Messages::TNodeId &, TBool)

IMPORT_C voidAbortActivitiesOriginatedBy(TNodeContextBase &aContext,
const Messages::TNodeId &aNodeId = Messages::TNodeId::NullId(),
TBoolaIsNodeBeingDestroyed = EFalse
)

Parameters

TNodeContextBase & aContext
const Messages::TNodeId & aNodeId = Messages::TNodeId::NullId()
TBool aIsNodeBeingDestroyed = EFalse

Accept(TNodeContextBase &, CNodeActivityBase *&)

TBool Accept(TNodeContextBase &aContext,
CNodeActivityBase *&aFoundActivity
)[private]

Parameters

TNodeContextBase & aContext
CNodeActivityBase *& aFoundActivity

Activities()

IMPORT_C const RPointerArray< CNodeActivityBase > &Activities()const

BorrowPreallocatedSpace(TUint)

TAny *BorrowPreallocatedSpace(TUintaSize)[private]

Parameters

TUint aSize

ConstructL(TInt)

IMPORT_C voidConstructL(TIntaSize =  KUseDefaultPreallocatedSize )[protected]

Parameters

TInt aSize =  KUseDefaultPreallocatedSize

CountActivities(TUint8)

IMPORT_C TUintCountActivities(TUint8aActivitySigId)const

Parameters

TUint8 aActivitySigId

CountAllActivities(TUint8)

IMPORT_C TUintCountAllActivities(TUint8aActivitySigId)const

Parameters

TUint8 aActivitySigId

CountAllActivities()

IMPORT_C TUintCountAllActivities()const

FindActivityById(TUint)

IMPORT_C CNodeActivityBase *FindActivityById(TUintaActivityId)const

Parameters

TUint aActivityId

FindActivityOriginatedBy(const Messages::TRuntimeCtxId &)

IMPORT_C CNodeActivityBase *FindActivityOriginatedBy(const Messages::TRuntimeCtxId &aPeerId)

Parameters

const Messages::TRuntimeCtxId & aPeerId

FindAddressedActivity(const TNodeContextBase &)

IMPORT_C CNodeActivityBase *FindAddressedActivity(const TNodeContextBase &aContext)const

Parameters

const TNodeContextBase & aContext

GetPreallocatedCell(TUint)

TAny *GetPreallocatedCell(TUintaIndex)const [private]

Parameters

TUint aIndex

HandleMessageReturnValue(TNodeContextBase &)

IMPORT_C voidHandleMessageReturnValue(TNodeContextBase &aContext)[protected, virtual]

Parameters

TNodeContextBase & aContext

HandlePassThroughMessage(TNodeContextBase &)

IMPORT_C voidHandlePassThroughMessage(TNodeContextBase &aContext)[protected, virtual]

Parameters

TNodeContextBase & aContext

MaxPreallocatedActivityCount()

TUint MaxPreallocatedActivityCount()const [private]

PostReceived(TNodeContextBase &)

IMPORT_C voidPostReceived(TNodeContextBase &aContext)

This function may delete the object pointed to by aCurrentActivity. So don't use it after this function is called.

Parameters

TNodeContextBase & aContext

PreallocateSpaceL(TUint)

voidPreallocateSpaceL(TUintaSize)[private]

Parameters

TUint aSize

Received(const Messages::TNodeSignal::TMessageId, TNodeContextBase &)

IMPORT_C voidReceived(const Messages::TNodeSignal::TMessageIdaNoPeerMsgIds,
TNodeContextBase &aContext
)

Parameters

const Messages::TNodeSignal::TMessageId aNoPeerMsgIds
TNodeContextBase & aContext

RemoveClient(const Messages::TRuntimeCtxId &, TNodeContextBase &)

IMPORT_C voidRemoveClient(const Messages::TRuntimeCtxId &aClientId,
TNodeContextBase &aContext
)

Parameters

const Messages::TRuntimeCtxId & aClientId
TNodeContextBase & aContext

RemoveClient(const Messages::TRuntimeCtxId &)

IMPORT_C voidRemoveClient(const Messages::TRuntimeCtxId &aClientId)

Parameters

const Messages::TRuntimeCtxId & aClientId

ReturnInterfacePtrL(AMMNodeBase *&)

IMPORT_C voidReturnInterfacePtrL(AMMNodeBase *&aInterface)

Parameters

AMMNodeBase *& aInterface

ReturnPreallocatedSpace(TAny *)

voidReturnPreallocatedSpace(TAny *aSpace)[private]

Parameters

TAny * aSpace

SignalActivities()

voidSignalActivities()[protected]

StartActivityL(TNodeContextBase &, const TNodeActivity &, const NetStateMachine::TStateTriple &)

voidStartActivityL(TNodeContextBase &aContext,
const TNodeActivity &aActivitySig,
const NetStateMachine::TStateTriple &aFirst
)[private]

Parameters

TNodeContextBase & aContext
const TNodeActivity & aActivitySig
const NetStateMachine::TStateTriple & aFirst

StartNewActivitiesL(TNodeContextBase &, CNodeActivityBase *)

voidStartNewActivitiesL(TNodeContextBase &aContext,
CNodeActivityBase *aSendersActivity
)[private]

Parameters

TNodeContextBase & aContext
CNodeActivityBase * aSendersActivity

Member Type Definitions Documentation

Typedef TIfStaticFetcherNearestInHierarchy

typedef NetInterfaces::TIfStaticFetcherLinkBase< Messages::ANodeBase::TIfStaticFetcherNearestInHierarchy, AMMNodeBase, AMMNodeBase >TIfStaticFetcherNearestInHierarchy

Member Data Documentation

const TInt KInterfaceId

const TIntKInterfaceId[static]

RPointerArray< CNodeActivityBase > iActivities

RPointerArray< CNodeActivityBase >iActivities[private]

const TNodeActivityMap & iActivityMap

const TNodeActivityMap &iActivityMap[protected]

TAny * iPreallocatedSpace

TAny *iPreallocatedSpace[private]