MeshMachine::AMMNodeBase Class Reference

class MeshMachine::AMMNodeBase : public Messages::ANodeBase

Inherits from

Public Member Functions
IMPORT_C void AbortActivitiesOriginatedBy ( TNodeContextBase &, const Messages::TNodeId &, TBool )
IMPORT_C const RPointerArray < CNodeActivityBase > & Activities ()
IMPORT_C TUint CountActivities ( TUint8 )
IMPORT_C TUint CountAllActivities ( TUint8 )
IMPORT_C TUint CountAllActivities ()
IMPORT_C CNodeActivityBase * FindActivityById ( TUint )
IMPORT_C CNodeActivityBase * FindActivityOriginatedBy (const Messages::TRuntimeCtxId &)
IMPORT_C CNodeActivityBase * FindAddressedActivity (const TNodeContextBase &)
IMPORT_C void PostReceived ( TNodeContextBase &)
IMPORT_C void Received (const Messages::TNodeSignal::TMessageId , TNodeContextBase &)
IMPORT_C void RemoveClient (const Messages::TRuntimeCtxId &, TNodeContextBase &)
IMPORT_C void RemoveClient (const Messages::TRuntimeCtxId &)
IMPORT_C void ReturnInterfacePtrL ( AMMNodeBase *&)
Protected Member Functions
AMMNodeBase (const TNodeActivityMap &, const Messages::TNodeId &)
~AMMNodeBase ()
IMPORT_C void ConstructL ( TInt )
IMPORT_C void HandleMessageReturnValue ( TNodeContextBase &)
IMPORT_C void HandlePassThroughMessage ( TNodeContextBase &)
void SignalActivities ()
Private Member Functions
TBool Accept ( TNodeContextBase &, CNodeActivityBase *&)
TAny * BorrowPreallocatedSpace ( TUint )
TAny * GetPreallocatedCell ( TUint )
TUint MaxPreallocatedActivityCount ()
void PreallocateSpaceL ( TUint )
void ReturnPreallocatedSpace ( TAny *)
void StartActivityL ( TNodeContextBase &, const TNodeActivity &, const NetStateMachine::TStateTriple &)
void StartNewActivitiesL ( TNodeContextBase &, CNodeActivityBase *)
Public Member Type Definitions
typedef NetInterfaces::TIfStaticFetcherLinkBase < Messages::ANodeBase::TIfStaticFetcherNearestInHierarchy , AMMNodeBase , AMMNodeBase > TIfStaticFetcherNearestInHierarchy
Public Attributes
const TInt KInterfaceId
Protected Attributes
const TNodeActivityMap & iActivityMap
Private Attributes
RPointerArray < CNodeActivityBase > iActivities
TAny * iPreallocatedSpace

Constructor & Destructor Documentation

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

IMPORT_C AMMNodeBase ( 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 void AbortActivitiesOriginatedBy ( TNodeContextBase & aContext,
const Messages::TNodeId & aNodeId = Messages::TNodeId::NullId(),
TBool aIsNodeBeingDestroyed = 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 ( TUint aSize ) [private]

Parameters

TUint aSize

ConstructL(TInt)

IMPORT_C void ConstructL ( TInt aSize =  KUseDefaultPreallocatedSize ) [protected]

Parameters

TInt aSize =  KUseDefaultPreallocatedSize

CountActivities(TUint8)

IMPORT_C TUint CountActivities ( TUint8 aActivitySigId ) const

Parameters

TUint8 aActivitySigId

CountAllActivities(TUint8)

IMPORT_C TUint CountAllActivities ( TUint8 aActivitySigId ) const

Parameters

TUint8 aActivitySigId

CountAllActivities()

IMPORT_C TUint CountAllActivities ( ) const

FindActivityById(TUint)

IMPORT_C CNodeActivityBase * FindActivityById ( TUint aActivityId ) 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 ( TUint aIndex ) const [private]

Parameters

TUint aIndex

HandleMessageReturnValue(TNodeContextBase &)

IMPORT_C void HandleMessageReturnValue ( TNodeContextBase & aContext ) [protected, virtual]

Parameters

TNodeContextBase & aContext

HandlePassThroughMessage(TNodeContextBase &)

IMPORT_C void HandlePassThroughMessage ( TNodeContextBase & aContext ) [protected, virtual]

Parameters

TNodeContextBase & aContext

MaxPreallocatedActivityCount()

TUint MaxPreallocatedActivityCount ( ) const [private]

PostReceived(TNodeContextBase &)

IMPORT_C void PostReceived ( 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)

void PreallocateSpaceL ( TUint aSize ) [private]

Parameters

TUint aSize

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

IMPORT_C void Received ( const Messages::TNodeSignal::TMessageId aNoPeerMsgIds,
TNodeContextBase & aContext
)

Parameters

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

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

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

Parameters

const Messages::TRuntimeCtxId & aClientId
TNodeContextBase & aContext

RemoveClient(const Messages::TRuntimeCtxId &)

IMPORT_C void RemoveClient ( const Messages::TRuntimeCtxId & aClientId )

Parameters

const Messages::TRuntimeCtxId & aClientId

ReturnInterfacePtrL(AMMNodeBase *&)

IMPORT_C void ReturnInterfacePtrL ( AMMNodeBase *& aInterface )

Parameters

AMMNodeBase *& aInterface

ReturnPreallocatedSpace(TAny *)

void ReturnPreallocatedSpace ( TAny * aSpace ) [private]

Parameters

TAny * aSpace

SignalActivities()

void SignalActivities ( ) [protected]

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

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

Parameters

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

StartNewActivitiesL(TNodeContextBase &, CNodeActivityBase *)

void StartNewActivitiesL ( 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 TInt KInterfaceId [static]

RPointerArray< CNodeActivityBase > iActivities

RPointerArray < CNodeActivityBase > iActivities [private]

const TNodeActivityMap & iActivityMap

const TNodeActivityMap & iActivityMap [protected]

TAny * iPreallocatedSpace

TAny * iPreallocatedSpace [private]