OverSim
NTree_m.h File Reference
#include <omnetpp.h>
#include <CommonMessages_m.h>
#include <Vector2D.h>

Go to the source code of this file.

Classes

class  NTreeJoinCall
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeJoinResponse
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeDivideCall
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeDivideResponse
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreePingCall
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeNodePingCall
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreePingResponse
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeNodePingResponse
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeGroupDeleteMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeCollapseMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeLeaveMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeMoveMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeGroupAddMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeReplaceNodeMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...
class  NTreeTakeOverMessage
 Class generated from overlay/ntree/NTree.msg by opp_msgc. More...

Macros

#define MSGC_VERSION   0x0402
#define NTREEJOINCALL_L(msg)   (NTREEPOSITION_L + BASECALL_L(msg))
#define NTREEJOINRESPONSE_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + msg->getMembersArraySize() * NODEHANDLE_L + BASERESPONSE_L(msg))
#define NTREEDIVIDECALL_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + NTREEQUADRANT_L + BASECALL_L(msg))
#define NTREEDIVIDERESPONSE_L(msg)   (BASERESPONSE_L(msg))
#define NTREEPINGCALL_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASECALL_L(msg))
#define NTREENODEPINGCALL_L(msg)   (NTREEPINGCALL_L(msg) + 4*NODEHANDLE_L + NTREEQUADRANT_L)
#define NTREEPINGRESPONSE_L(msg)   (BASERESPONSE_L(msg))
#define NTREENODEPINGRESPONSE_L(msg)   (NTREEPINGRESPONSE_L(msg) + msg->getMembersArraySize() * NODEHANDLE_L + NTREECHILDCOUNT_L)
#define NTREEDELETE_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + 4*NODEHANDLE_L + BASEOVERLAY_L(msg))
#define NTREECOLLAPSE_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
#define NTREELEAVE_L(msg)   (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
#define NTREEMOVE_L(msg)   (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
#define NTREEADD_L(msg)   (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
#define NTREEREPLACE_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + (msg->getChildrenArraySize() +1)*NODEHANDLE_L + TRANSPORTADDRESS_L + 1 + BASEOVERLAY_L(msg))
#define NTREETAKEOVER_L(msg)   (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Functions

void doPacking (cCommBuffer *b, NTreeJoinCall &obj)
void doUnpacking (cCommBuffer *b, NTreeJoinCall &obj)
void doPacking (cCommBuffer *b, NTreeJoinResponse &obj)
void doUnpacking (cCommBuffer *b, NTreeJoinResponse &obj)
void doPacking (cCommBuffer *b, NTreeDivideCall &obj)
void doUnpacking (cCommBuffer *b, NTreeDivideCall &obj)
void doPacking (cCommBuffer *b, NTreeDivideResponse &obj)
void doUnpacking (cCommBuffer *b, NTreeDivideResponse &obj)
void doPacking (cCommBuffer *b, NTreePingCall &obj)
void doUnpacking (cCommBuffer *b, NTreePingCall &obj)
void doPacking (cCommBuffer *b, NTreeNodePingCall &obj)
void doUnpacking (cCommBuffer *b, NTreeNodePingCall &obj)
void doPacking (cCommBuffer *b, NTreePingResponse &obj)
void doUnpacking (cCommBuffer *b, NTreePingResponse &obj)
void doPacking (cCommBuffer *b, NTreeNodePingResponse &obj)
void doUnpacking (cCommBuffer *b, NTreeNodePingResponse &obj)
void doPacking (cCommBuffer *b, NTreeGroupDeleteMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeGroupDeleteMessage &obj)
void doPacking (cCommBuffer *b, NTreeCollapseMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeCollapseMessage &obj)
void doPacking (cCommBuffer *b, NTreeLeaveMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeLeaveMessage &obj)
void doPacking (cCommBuffer *b, NTreeMoveMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeMoveMessage &obj)
void doPacking (cCommBuffer *b, NTreeGroupAddMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeGroupAddMessage &obj)
void doPacking (cCommBuffer *b, NTreeReplaceNodeMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeReplaceNodeMessage &obj)
void doPacking (cCommBuffer *b, NTreeTakeOverMessage &obj)
void doUnpacking (cCommBuffer *b, NTreeTakeOverMessage &obj)

Variables

static const int NTREEPOSITION_L = 128
static const int NTREESIZE_L = 64
static const int NTREEQUADRANT_L = 2
static const int NTREECHILDCOUNT_L = 16

Macro Definition Documentation

#define MSGC_VERSION   0x0402

Definition at line 11 of file NTree_m.h.

#define NTREEADD_L (   msg)    (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 37 of file NTree_m.h.

Referenced by NTree::handleJoinCall().

#define NTREECOLLAPSE_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 34 of file NTree_m.h.

Referenced by NTree::collapseTree().

#define NTREEDELETE_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + 4*NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 33 of file NTree_m.h.

Referenced by NTree::divideNode(), and NTree::handleCollapseMessage().

#define NTREEDIVIDECALL_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + NTREEQUADRANT_L + BASECALL_L(msg))

Definition at line 27 of file NTree_m.h.

Referenced by NTree::handleJoinCall().

#define NTREEDIVIDERESPONSE_L (   msg)    (BASERESPONSE_L(msg))

Definition at line 28 of file NTree_m.h.

Referenced by NTree::handleDivideCall().

#define NTREEJOINCALL_L (   msg)    (NTREEPOSITION_L + BASECALL_L(msg))

Definition at line 25 of file NTree_m.h.

Referenced by NTree::handleAppMessage(), NTree::handleDeleteMessage(), and NTree::joinGroup().

#define NTREEJOINRESPONSE_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + msg->getMembersArraySize() * NODEHANDLE_L + BASERESPONSE_L(msg))

Definition at line 26 of file NTree_m.h.

Referenced by NTree::handleJoinCall().

#define NTREELEAVE_L (   msg)    (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 35 of file NTree_m.h.

Referenced by NTree::handlePingCallTimeout(), and NTree::leaveGroup().

#define NTREEMOVE_L (   msg)    (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 36 of file NTree_m.h.

Referenced by NTree::handleMove().

#define NTREENODEPINGCALL_L (   msg)    (NTREEPINGCALL_L(msg) + 4*NODEHANDLE_L + NTREEQUADRANT_L)

Definition at line 30 of file NTree_m.h.

Referenced by NTree::pingNodes().

#define NTREENODEPINGRESPONSE_L (   msg)    (NTREEPINGRESPONSE_L(msg) + msg->getMembersArraySize() * NODEHANDLE_L + NTREECHILDCOUNT_L)

Definition at line 32 of file NTree_m.h.

Referenced by NTree::handlePingCall().

#define NTREEPINGCALL_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASECALL_L(msg))

Definition at line 29 of file NTree_m.h.

Referenced by NTree::pingNodes().

#define NTREEPINGRESPONSE_L (   msg)    (BASERESPONSE_L(msg))

Definition at line 31 of file NTree_m.h.

Referenced by NTree::handlePingCall().

#define NTREEREPLACE_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + (msg->getChildrenArraySize() +1)*NODEHANDLE_L + TRANSPORTADDRESS_L + 1 + BASEOVERLAY_L(msg))
#define NTREETAKEOVER_L (   msg)    (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))

Definition at line 39 of file NTree_m.h.

Referenced by NTree::handleReplaceMessage().

Function Documentation

void doPacking ( cCommBuffer *  b,
NTreeJoinCall obj 
)
inline

Definition at line 80 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeJoinResponse obj 
)
inline

Definition at line 131 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeDivideCall obj 
)
inline

Definition at line 178 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeDivideResponse obj 
)
inline

Definition at line 216 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreePingCall obj 
)
inline

Definition at line 264 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeNodePingCall obj 
)
inline

Definition at line 308 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreePingResponse obj 
)
inline

Definition at line 342 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeNodePingResponse obj 
)
inline

Definition at line 388 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeGroupDeleteMessage obj 
)
inline

Definition at line 437 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeCollapseMessage obj 
)
inline

Definition at line 485 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeLeaveMessage obj 
)
inline

Definition at line 529 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeMoveMessage obj 
)
inline

Definition at line 573 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeGroupAddMessage obj 
)
inline

Definition at line 617 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeReplaceNodeMessage obj 
)
inline

Definition at line 682 of file NTree_m.h.

{obj.parsimPack(b);}
void doPacking ( cCommBuffer *  b,
NTreeTakeOverMessage obj 
)
inline

Definition at line 730 of file NTree_m.h.

{obj.parsimPack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeJoinCall obj 
)
inline

Definition at line 81 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeJoinResponse obj 
)
inline

Definition at line 132 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeDivideCall obj 
)
inline

Definition at line 179 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeDivideResponse obj 
)
inline

Definition at line 217 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreePingCall obj 
)
inline

Definition at line 265 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeNodePingCall obj 
)
inline

Definition at line 309 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreePingResponse obj 
)
inline

Definition at line 343 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeNodePingResponse obj 
)
inline

Definition at line 389 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeGroupDeleteMessage obj 
)
inline

Definition at line 438 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeCollapseMessage obj 
)
inline

Definition at line 486 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeLeaveMessage obj 
)
inline

Definition at line 530 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeMoveMessage obj 
)
inline

Definition at line 574 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeGroupAddMessage obj 
)
inline

Definition at line 618 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeReplaceNodeMessage obj 
)
inline

Definition at line 683 of file NTree_m.h.

{obj.parsimUnpack(b);}
void doUnpacking ( cCommBuffer *  b,
NTreeTakeOverMessage obj 
)
inline

Definition at line 731 of file NTree_m.h.

{obj.parsimUnpack(b);}

Variable Documentation

const int NTREECHILDCOUNT_L = 16
static

Definition at line 23 of file NTree_m.h.

const int NTREEPOSITION_L = 128
static

Definition at line 20 of file NTree_m.h.

const int NTREEQUADRANT_L = 2
static

Definition at line 22 of file NTree_m.h.

const int NTREESIZE_L = 64
static

Definition at line 21 of file NTree_m.h.