OverSim
NTree_m.h
Go to the documentation of this file.
1 //
2 // Generated file, do not edit! Created by opp_msgc 4.2 from overlay/ntree/NTree.msg.
3 //
4 
5 #ifndef _NTREE_M_H_
6 #define _NTREE_M_H_
7 
8 #include <omnetpp.h>
9 
10 // opp_msgc version check
11 #define MSGC_VERSION 0x0402
12 #if (MSGC_VERSION!=OMNETPP_VERSION)
13 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help.
14 #endif
15 
16 // cplusplus {{
17 #include <CommonMessages_m.h>
18 #include <Vector2D.h>
19 
20 static const int NTREEPOSITION_L = 128;
21 static const int NTREESIZE_L = 64;
22 static const int NTREEQUADRANT_L = 2;
23 static const int NTREECHILDCOUNT_L = 16;
24 
25 #define NTREEJOINCALL_L(msg) (NTREEPOSITION_L + BASECALL_L(msg))
26 #define NTREEJOINRESPONSE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + msg->getMembersArraySize() * NODEHANDLE_L + BASERESPONSE_L(msg))
27 #define NTREEDIVIDECALL_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NTREEQUADRANT_L + BASECALL_L(msg))
28 #define NTREEDIVIDERESPONSE_L(msg) (BASERESPONSE_L(msg))
29 #define NTREEPINGCALL_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASECALL_L(msg))
30 #define NTREENODEPINGCALL_L(msg) (NTREEPINGCALL_L(msg) + 4*NODEHANDLE_L + NTREEQUADRANT_L)
31 #define NTREEPINGRESPONSE_L(msg) (BASERESPONSE_L(msg))
32 #define NTREENODEPINGRESPONSE_L(msg) (NTREEPINGRESPONSE_L(msg) + msg->getMembersArraySize() * NODEHANDLE_L + NTREECHILDCOUNT_L)
33 #define NTREEDELETE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + 4*NODEHANDLE_L + BASEOVERLAY_L(msg))
34 #define NTREECOLLAPSE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
35 #define NTREELEAVE_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
36 #define NTREEMOVE_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
37 #define NTREEADD_L(msg) (NTREEPOSITION_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
38 #define NTREEREPLACE_L(msg) (NTREEPOSITION_L + NTREESIZE_L + (msg->getChildrenArraySize() +1)*NODEHANDLE_L + TRANSPORTADDRESS_L + 1 + BASEOVERLAY_L(msg))
39 #define NTREETAKEOVER_L(msg) (NTREEPOSITION_L + NTREESIZE_L + NODEHANDLE_L + BASEOVERLAY_L(msg))
40 // }}
41 
42 
43 
54 {
55  protected:
57 
58  private:
59  void copy(const NTreeJoinCall& other);
60 
61  protected:
62  // protected and unimplemented operator==(), to prevent accidental usage
63  bool operator==(const NTreeJoinCall&);
64 
65  public:
66  NTreeJoinCall(const char *name=NULL, int kind=0);
67  NTreeJoinCall(const NTreeJoinCall& other);
68  virtual ~NTreeJoinCall();
69  NTreeJoinCall& operator=(const NTreeJoinCall& other);
70  virtual NTreeJoinCall *dup() const {return new NTreeJoinCall(*this);}
71  virtual void parsimPack(cCommBuffer *b);
72  virtual void parsimUnpack(cCommBuffer *b);
73 
74  // field getter/setter methods
75  virtual Vector2D& getPosition();
76  virtual const Vector2D& getPosition() const {return const_cast<NTreeJoinCall*>(this)->getPosition();}
77  virtual void setPosition(const Vector2D& position);
78 };
79 
80 inline void doPacking(cCommBuffer *b, NTreeJoinCall& obj) {obj.parsimPack(b);}
81 inline void doUnpacking(cCommBuffer *b, NTreeJoinCall& obj) {obj.parsimUnpack(b);}
82 
95 {
96  protected:
98  double size_var;
99  NodeHandle *members_var; // array ptr
100  unsigned int members_arraysize;
101 
102  private:
103  void copy(const NTreeJoinResponse& other);
104 
105  protected:
106  // protected and unimplemented operator==(), to prevent accidental usage
107  bool operator==(const NTreeJoinResponse&);
108 
109  public:
110  NTreeJoinResponse(const char *name=NULL, int kind=0);
111  NTreeJoinResponse(const NTreeJoinResponse& other);
112  virtual ~NTreeJoinResponse();
114  virtual NTreeJoinResponse *dup() const {return new NTreeJoinResponse(*this);}
115  virtual void parsimPack(cCommBuffer *b);
116  virtual void parsimUnpack(cCommBuffer *b);
117 
118  // field getter/setter methods
119  virtual Vector2D& getOrigin();
120  virtual const Vector2D& getOrigin() const {return const_cast<NTreeJoinResponse*>(this)->getOrigin();}
121  virtual void setOrigin(const Vector2D& origin);
122  virtual double getSize() const;
123  virtual void setSize(double size);
124  virtual void setMembersArraySize(unsigned int size);
125  virtual unsigned int getMembersArraySize() const;
126  virtual NodeHandle& getMembers(unsigned int k);
127  virtual const NodeHandle& getMembers(unsigned int k) const {return const_cast<NTreeJoinResponse*>(this)->getMembers(k);}
128  virtual void setMembers(unsigned int k, const NodeHandle& members);
129 };
130 
131 inline void doPacking(cCommBuffer *b, NTreeJoinResponse& obj) {obj.parsimPack(b);}
132 inline void doUnpacking(cCommBuffer *b, NTreeJoinResponse& obj) {obj.parsimUnpack(b);}
133 
146 {
147  protected:
149  double size_var;
151 
152  private:
153  void copy(const NTreeDivideCall& other);
154 
155  protected:
156  // protected and unimplemented operator==(), to prevent accidental usage
157  bool operator==(const NTreeDivideCall&);
158 
159  public:
160  NTreeDivideCall(const char *name=NULL, int kind=0);
161  NTreeDivideCall(const NTreeDivideCall& other);
162  virtual ~NTreeDivideCall();
164  virtual NTreeDivideCall *dup() const {return new NTreeDivideCall(*this);}
165  virtual void parsimPack(cCommBuffer *b);
166  virtual void parsimUnpack(cCommBuffer *b);
167 
168  // field getter/setter methods
169  virtual Vector2D& getOrigin();
170  virtual const Vector2D& getOrigin() const {return const_cast<NTreeDivideCall*>(this)->getOrigin();}
171  virtual void setOrigin(const Vector2D& origin);
172  virtual double getSize() const;
173  virtual void setSize(double size);
174  virtual int getQuadrant() const;
175  virtual void setQuadrant(int quadrant);
176 };
177 
178 inline void doPacking(cCommBuffer *b, NTreeDivideCall& obj) {obj.parsimPack(b);}
179 inline void doUnpacking(cCommBuffer *b, NTreeDivideCall& obj) {obj.parsimUnpack(b);}
180 
191 {
192  protected:
194 
195  private:
196  void copy(const NTreeDivideResponse& other);
197 
198  protected:
199  // protected and unimplemented operator==(), to prevent accidental usage
200  bool operator==(const NTreeDivideResponse&);
201 
202  public:
203  NTreeDivideResponse(const char *name=NULL, int kind=0);
205  virtual ~NTreeDivideResponse();
207  virtual NTreeDivideResponse *dup() const {return new NTreeDivideResponse(*this);}
208  virtual void parsimPack(cCommBuffer *b);
209  virtual void parsimUnpack(cCommBuffer *b);
210 
211  // field getter/setter methods
212  virtual int getQuadrant() const;
213  virtual void setQuadrant(int quadrant);
214 };
215 
216 inline void doPacking(cCommBuffer *b, NTreeDivideResponse& obj) {obj.parsimPack(b);}
217 inline void doUnpacking(cCommBuffer *b, NTreeDivideResponse& obj) {obj.parsimUnpack(b);}
218 
231 {
232  protected:
234  double size_var;
236 
237  private:
238  void copy(const NTreePingCall& other);
239 
240  protected:
241  // protected and unimplemented operator==(), to prevent accidental usage
242  bool operator==(const NTreePingCall&);
243 
244  public:
245  NTreePingCall(const char *name=NULL, int kind=0);
246  NTreePingCall(const NTreePingCall& other);
247  virtual ~NTreePingCall();
248  NTreePingCall& operator=(const NTreePingCall& other);
249  virtual NTreePingCall *dup() const {return new NTreePingCall(*this);}
250  virtual void parsimPack(cCommBuffer *b);
251  virtual void parsimUnpack(cCommBuffer *b);
252 
253  // field getter/setter methods
254  virtual Vector2D& getOrigin();
255  virtual const Vector2D& getOrigin() const {return const_cast<NTreePingCall*>(this)->getOrigin();}
256  virtual void setOrigin(const Vector2D& origin);
257  virtual double getSize() const;
258  virtual void setSize(double size);
259  virtual NodeHandle& getParent();
260  virtual const NodeHandle& getParent() const {return const_cast<NTreePingCall*>(this)->getParent();}
261  virtual void setParent(const NodeHandle& parent);
262 };
263 
264 inline void doPacking(cCommBuffer *b, NTreePingCall& obj) {obj.parsimPack(b);}
265 inline void doUnpacking(cCommBuffer *b, NTreePingCall& obj) {obj.parsimUnpack(b);}
266 
278 {
279  protected:
282 
283  private:
284  void copy(const NTreeNodePingCall& other);
285 
286  protected:
287  // protected and unimplemented operator==(), to prevent accidental usage
288  bool operator==(const NTreeNodePingCall&);
289 
290  public:
291  NTreeNodePingCall(const char *name=NULL, int kind=0);
292  NTreeNodePingCall(const NTreeNodePingCall& other);
293  virtual ~NTreeNodePingCall();
295  virtual NTreeNodePingCall *dup() const {return new NTreeNodePingCall(*this);}
296  virtual void parsimPack(cCommBuffer *b);
297  virtual void parsimUnpack(cCommBuffer *b);
298 
299  // field getter/setter methods
300  virtual unsigned int getSiblingsArraySize() const;
301  virtual NodeHandle& getSiblings(unsigned int k);
302  virtual const NodeHandle& getSiblings(unsigned int k) const {return const_cast<NTreeNodePingCall*>(this)->getSiblings(k);}
303  virtual void setSiblings(unsigned int k, const NodeHandle& siblings);
304  virtual int getQuadrant() const;
305  virtual void setQuadrant(int quadrant);
306 };
307 
308 inline void doPacking(cCommBuffer *b, NTreeNodePingCall& obj) {obj.parsimPack(b);}
309 inline void doUnpacking(cCommBuffer *b, NTreeNodePingCall& obj) {obj.parsimUnpack(b);}
310 
320 {
321  protected:
322 
323  private:
324  void copy(const NTreePingResponse& other);
325 
326  protected:
327  // protected and unimplemented operator==(), to prevent accidental usage
328  bool operator==(const NTreePingResponse&);
329 
330  public:
331  NTreePingResponse(const char *name=NULL, int kind=0);
332  NTreePingResponse(const NTreePingResponse& other);
333  virtual ~NTreePingResponse();
335  virtual NTreePingResponse *dup() const {return new NTreePingResponse(*this);}
336  virtual void parsimPack(cCommBuffer *b);
337  virtual void parsimUnpack(cCommBuffer *b);
338 
339  // field getter/setter methods
340 };
341 
342 inline void doPacking(cCommBuffer *b, NTreePingResponse& obj) {obj.parsimPack(b);}
343 inline void doUnpacking(cCommBuffer *b, NTreePingResponse& obj) {obj.parsimUnpack(b);}
344 
356 {
357  protected:
358  NodeHandle *members_var; // array ptr
359  unsigned int members_arraysize;
361 
362  private:
363  void copy(const NTreeNodePingResponse& other);
364 
365  protected:
366  // protected and unimplemented operator==(), to prevent accidental usage
367  bool operator==(const NTreeNodePingResponse&);
368 
369  public:
370  NTreeNodePingResponse(const char *name=NULL, int kind=0);
372  virtual ~NTreeNodePingResponse();
374  virtual NTreeNodePingResponse *dup() const {return new NTreeNodePingResponse(*this);}
375  virtual void parsimPack(cCommBuffer *b);
376  virtual void parsimUnpack(cCommBuffer *b);
377 
378  // field getter/setter methods
379  virtual void setMembersArraySize(unsigned int size);
380  virtual unsigned int getMembersArraySize() const;
381  virtual NodeHandle& getMembers(unsigned int k);
382  virtual const NodeHandle& getMembers(unsigned int k) const {return const_cast<NTreeNodePingResponse*>(this)->getMembers(k);}
383  virtual void setMembers(unsigned int k, const NodeHandle& members);
384  virtual int getAggChildCount() const;
385  virtual void setAggChildCount(int aggChildCount);
386 };
387 
388 inline void doPacking(cCommBuffer *b, NTreeNodePingResponse& obj) {obj.parsimPack(b);}
389 inline void doUnpacking(cCommBuffer *b, NTreeNodePingResponse& obj) {obj.parsimUnpack(b);}
390 
403 {
404  protected:
406  double size_var;
408 
409  private:
410  void copy(const NTreeGroupDeleteMessage& other);
411 
412  protected:
413  // protected and unimplemented operator==(), to prevent accidental usage
414  bool operator==(const NTreeGroupDeleteMessage&);
415 
416  public:
417  NTreeGroupDeleteMessage(const char *name=NULL, int kind=0);
419  virtual ~NTreeGroupDeleteMessage();
421  virtual NTreeGroupDeleteMessage *dup() const {return new NTreeGroupDeleteMessage(*this);}
422  virtual void parsimPack(cCommBuffer *b);
423  virtual void parsimUnpack(cCommBuffer *b);
424 
425  // field getter/setter methods
426  virtual Vector2D& getOrigin();
427  virtual const Vector2D& getOrigin() const {return const_cast<NTreeGroupDeleteMessage*>(this)->getOrigin();}
428  virtual void setOrigin(const Vector2D& origin);
429  virtual double getSize() const;
430  virtual void setSize(double size);
431  virtual unsigned int getNewChildArraySize() const;
432  virtual NodeHandle& getNewChild(unsigned int k);
433  virtual const NodeHandle& getNewChild(unsigned int k) const {return const_cast<NTreeGroupDeleteMessage*>(this)->getNewChild(k);}
434  virtual void setNewChild(unsigned int k, const NodeHandle& newChild);
435 };
436 
437 inline void doPacking(cCommBuffer *b, NTreeGroupDeleteMessage& obj) {obj.parsimPack(b);}
438 inline void doUnpacking(cCommBuffer *b, NTreeGroupDeleteMessage& obj) {obj.parsimUnpack(b);}
439 
452 {
453  protected:
455  double size_var;
457 
458  private:
459  void copy(const NTreeCollapseMessage& other);
460 
461  protected:
462  // protected and unimplemented operator==(), to prevent accidental usage
463  bool operator==(const NTreeCollapseMessage&);
464 
465  public:
466  NTreeCollapseMessage(const char *name=NULL, int kind=0);
468  virtual ~NTreeCollapseMessage();
470  virtual NTreeCollapseMessage *dup() const {return new NTreeCollapseMessage(*this);}
471  virtual void parsimPack(cCommBuffer *b);
472  virtual void parsimUnpack(cCommBuffer *b);
473 
474  // field getter/setter methods
475  virtual Vector2D& getOrigin();
476  virtual const Vector2D& getOrigin() const {return const_cast<NTreeCollapseMessage*>(this)->getOrigin();}
477  virtual void setOrigin(const Vector2D& origin);
478  virtual double getSize() const;
479  virtual void setSize(double size);
480  virtual NodeHandle& getPlayer();
481  virtual const NodeHandle& getPlayer() const {return const_cast<NTreeCollapseMessage*>(this)->getPlayer();}
482  virtual void setPlayer(const NodeHandle& player);
483 };
484 
485 inline void doPacking(cCommBuffer *b, NTreeCollapseMessage& obj) {obj.parsimPack(b);}
486 inline void doUnpacking(cCommBuffer *b, NTreeCollapseMessage& obj) {obj.parsimUnpack(b);}
487 
499 {
500  protected:
503 
504  private:
505  void copy(const NTreeLeaveMessage& other);
506 
507  protected:
508  // protected and unimplemented operator==(), to prevent accidental usage
509  bool operator==(const NTreeLeaveMessage&);
510 
511  public:
512  NTreeLeaveMessage(const char *name=NULL, int kind=0);
513  NTreeLeaveMessage(const NTreeLeaveMessage& other);
514  virtual ~NTreeLeaveMessage();
516  virtual NTreeLeaveMessage *dup() const {return new NTreeLeaveMessage(*this);}
517  virtual void parsimPack(cCommBuffer *b);
518  virtual void parsimUnpack(cCommBuffer *b);
519 
520  // field getter/setter methods
521  virtual NodeHandle& getPlayer();
522  virtual const NodeHandle& getPlayer() const {return const_cast<NTreeLeaveMessage*>(this)->getPlayer();}
523  virtual void setPlayer(const NodeHandle& player);
524  virtual Vector2D& getPosition();
525  virtual const Vector2D& getPosition() const {return const_cast<NTreeLeaveMessage*>(this)->getPosition();}
526  virtual void setPosition(const Vector2D& position);
527 };
528 
529 inline void doPacking(cCommBuffer *b, NTreeLeaveMessage& obj) {obj.parsimPack(b);}
530 inline void doUnpacking(cCommBuffer *b, NTreeLeaveMessage& obj) {obj.parsimUnpack(b);}
531 
543 {
544  protected:
547 
548  private:
549  void copy(const NTreeMoveMessage& other);
550 
551  protected:
552  // protected and unimplemented operator==(), to prevent accidental usage
553  bool operator==(const NTreeMoveMessage&);
554 
555  public:
556  NTreeMoveMessage(const char *name=NULL, int kind=0);
557  NTreeMoveMessage(const NTreeMoveMessage& other);
558  virtual ~NTreeMoveMessage();
560  virtual NTreeMoveMessage *dup() const {return new NTreeMoveMessage(*this);}
561  virtual void parsimPack(cCommBuffer *b);
562  virtual void parsimUnpack(cCommBuffer *b);
563 
564  // field getter/setter methods
565  virtual NodeHandle& getPlayer();
566  virtual const NodeHandle& getPlayer() const {return const_cast<NTreeMoveMessage*>(this)->getPlayer();}
567  virtual void setPlayer(const NodeHandle& player);
568  virtual Vector2D& getPosition();
569  virtual const Vector2D& getPosition() const {return const_cast<NTreeMoveMessage*>(this)->getPosition();}
570  virtual void setPosition(const Vector2D& position);
571 };
572 
573 inline void doPacking(cCommBuffer *b, NTreeMoveMessage& obj) {obj.parsimPack(b);}
574 inline void doUnpacking(cCommBuffer *b, NTreeMoveMessage& obj) {obj.parsimUnpack(b);}
575 
587 {
588  protected:
591 
592  private:
593  void copy(const NTreeGroupAddMessage& other);
594 
595  protected:
596  // protected and unimplemented operator==(), to prevent accidental usage
597  bool operator==(const NTreeGroupAddMessage&);
598 
599  public:
600  NTreeGroupAddMessage(const char *name=NULL, int kind=0);
602  virtual ~NTreeGroupAddMessage();
604  virtual NTreeGroupAddMessage *dup() const {return new NTreeGroupAddMessage(*this);}
605  virtual void parsimPack(cCommBuffer *b);
606  virtual void parsimUnpack(cCommBuffer *b);
607 
608  // field getter/setter methods
609  virtual NodeHandle& getPlayer();
610  virtual const NodeHandle& getPlayer() const {return const_cast<NTreeGroupAddMessage*>(this)->getPlayer();}
611  virtual void setPlayer(const NodeHandle& player);
612  virtual Vector2D& getOrigin();
613  virtual const Vector2D& getOrigin() const {return const_cast<NTreeGroupAddMessage*>(this)->getOrigin();}
614  virtual void setOrigin(const Vector2D& origin);
615 };
616 
617 inline void doPacking(cCommBuffer *b, NTreeGroupAddMessage& obj) {obj.parsimPack(b);}
618 inline void doUnpacking(cCommBuffer *b, NTreeGroupAddMessage& obj) {obj.parsimUnpack(b);}
619 
635 {
636  protected:
638  double size_var;
640  NodeHandle *children_var; // array ptr
641  unsigned int children_arraysize;
644 
645  private:
646  void copy(const NTreeReplaceNodeMessage& other);
647 
648  protected:
649  // protected and unimplemented operator==(), to prevent accidental usage
650  bool operator==(const NTreeReplaceNodeMessage&);
651 
652  public:
653  NTreeReplaceNodeMessage(const char *name=NULL, int kind=0);
655  virtual ~NTreeReplaceNodeMessage();
657  virtual NTreeReplaceNodeMessage *dup() const {return new NTreeReplaceNodeMessage(*this);}
658  virtual void parsimPack(cCommBuffer *b);
659  virtual void parsimUnpack(cCommBuffer *b);
660 
661  // field getter/setter methods
662  virtual Vector2D& getOrigin();
663  virtual const Vector2D& getOrigin() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getOrigin();}
664  virtual void setOrigin(const Vector2D& origin);
665  virtual double getSize() const;
666  virtual void setSize(double size);
667  virtual NodeHandle& getParent();
668  virtual const NodeHandle& getParent() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getParent();}
669  virtual void setParent(const NodeHandle& parent);
670  virtual void setChildrenArraySize(unsigned int size);
671  virtual unsigned int getChildrenArraySize() const;
672  virtual NodeHandle& getChildren(unsigned int k);
673  virtual const NodeHandle& getChildren(unsigned int k) const {return const_cast<NTreeReplaceNodeMessage*>(this)->getChildren(k);}
674  virtual void setChildren(unsigned int k, const NodeHandle& children);
675  virtual TransportAddress& getOldNode();
676  virtual const TransportAddress& getOldNode() const {return const_cast<NTreeReplaceNodeMessage*>(this)->getOldNode();}
677  virtual void setOldNode(const TransportAddress& oldNode);
678  virtual bool getIsLeaf() const;
679  virtual void setIsLeaf(bool isLeaf);
680 };
681 
682 inline void doPacking(cCommBuffer *b, NTreeReplaceNodeMessage& obj) {obj.parsimPack(b);}
683 inline void doUnpacking(cCommBuffer *b, NTreeReplaceNodeMessage& obj) {obj.parsimUnpack(b);}
684 
697 {
698  protected:
700  double size_var;
702 
703  private:
704  void copy(const NTreeTakeOverMessage& other);
705 
706  protected:
707  // protected and unimplemented operator==(), to prevent accidental usage
708  bool operator==(const NTreeTakeOverMessage&);
709 
710  public:
711  NTreeTakeOverMessage(const char *name=NULL, int kind=0);
713  virtual ~NTreeTakeOverMessage();
715  virtual NTreeTakeOverMessage *dup() const {return new NTreeTakeOverMessage(*this);}
716  virtual void parsimPack(cCommBuffer *b);
717  virtual void parsimUnpack(cCommBuffer *b);
718 
719  // field getter/setter methods
720  virtual Vector2D& getOrigin();
721  virtual const Vector2D& getOrigin() const {return const_cast<NTreeTakeOverMessage*>(this)->getOrigin();}
722  virtual void setOrigin(const Vector2D& origin);
723  virtual double getSize() const;
724  virtual void setSize(double size);
725  virtual NodeHandle& getPlayer();
726  virtual const NodeHandle& getPlayer() const {return const_cast<NTreeTakeOverMessage*>(this)->getPlayer();}
727  virtual void setPlayer(const NodeHandle& player);
728 };
729 
730 inline void doPacking(cCommBuffer *b, NTreeTakeOverMessage& obj) {obj.parsimPack(b);}
731 inline void doUnpacking(cCommBuffer *b, NTreeTakeOverMessage& obj) {obj.parsimUnpack(b);}
732 
733 
734 #endif // _NTREE_M_H_