|
INET Framework for OMNeT++/OMNEST
|
#include <RSVPPathMsg_m.h>
Public Member Functions | |
| virtual | ~RSVPPathMsg_Base () |
| virtual RSVPPathMsg_Base * | dup () const |
| virtual void | parsimPack (cCommBuffer *b) |
| virtual void | parsimUnpack (cCommBuffer *b) |
| virtual RsvpHopObj_t & | getHop () |
| virtual const RsvpHopObj_t & | getHop () const |
| virtual void | setHop (const RsvpHopObj_t &hop) |
| virtual LabelRequestObj_t & | getLabel_request () |
| virtual const LabelRequestObj_t & | getLabel_request () const |
| virtual void | setLabel_request (const LabelRequestObj_t &label_request) |
| virtual SenderDescriptor_t & | getSender_descriptor () |
| virtual const SenderDescriptor_t & | getSender_descriptor () const |
| virtual void | setSender_descriptor (const SenderDescriptor_t &sender_descriptor) |
| virtual EroVector & | getERO () |
| virtual const EroVector & | getERO () const |
| virtual void | setERO (const EroVector &ERO) |
| virtual int | getColor () const |
| virtual void | setColor (int color) |
| virtual int | getRsvpKind () const |
| virtual void | setRsvpKind (int rsvpKind) |
Protected Member Functions | |
| bool | operator== (const RSVPPathMsg_Base &) |
| RSVPPathMsg_Base (const char *name=NULL, int kind=0) | |
| RSVPPathMsg_Base (const RSVPPathMsg_Base &other) | |
| RSVPPathMsg_Base & | operator= (const RSVPPathMsg_Base &other) |
Protected Attributes | |
| RsvpHopObj_t | hop_var |
| LabelRequestObj_t | label_request_var |
| SenderDescriptor_t | sender_descriptor_var |
| EroVector | ERO_var |
| int | color_var |
| int | rsvpKind_var |
Private Member Functions | |
| void | copy (const RSVPPathMsg_Base &other) |
Class generated from networklayer/rsvp_te/RSVPPathMsg.msg by opp_msgc.
packet RSVPPathMsg extends RSVPPacket { (true); RsvpHopObj_t hop; LabelRequestObj_t label_request; SenderDescriptor_t sender_descriptor; EroVector ERO; int color;
int rsvpKind = PATH_MESSAGE; }
RSVPPathMsg_Base is only useful if it gets subclassed, and RSVPPathMsg is derived from it. The minimum code to be written for RSVPPathMsg is the following:
class RSVPPathMsg : public RSVPPathMsg_Base { private: void copy(const RSVPPathMsg& other) { ... }
public:
RSVPPathMsg(const char *name=NULL, int kind=0) : RSVPPathMsg_Base(name,kind) {}
RSVPPathMsg(const RSVPPathMsg& other) : RSVPPathMsg_Base(other) {copy(other);}
RSVPPathMsg& operator=(const RSVPPathMsg& other) {if (this==&other) return *this; RSVPPathMsg_Base::operator=(other); copy(other); return *this;}
virtual RSVPPathMsg *dup() const {return new RSVPPathMsg(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPPathMsg_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPPathMsg);
Definition at line 63 of file RSVPPathMsg_m.h.
| RSVPPathMsg_Base::RSVPPathMsg_Base | ( | const char * | name = NULL, |
| int | kind = 0 |
||
| ) | [protected] |
| RSVPPathMsg_Base::RSVPPathMsg_Base | ( | const RSVPPathMsg_Base & | other | ) | [protected] |
| virtual RSVPPathMsg_Base::~RSVPPathMsg_Base | ( | ) | [virtual] |
| void RSVPPathMsg_Base::copy | ( | const RSVPPathMsg_Base & | other | ) | [private] |
| virtual RSVPPathMsg_Base* RSVPPathMsg_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket.
Reimplemented in RSVPPathMsg.
Definition at line 87 of file RSVPPathMsg_m.h.
{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPPathMsg");}
| virtual int RSVPPathMsg_Base::getColor | ( | ) | const [virtual] |
Referenced by RSVP::createPSB().
| virtual EroVector& RSVPPathMsg_Base::getERO | ( | ) | [virtual] |
Referenced by RSVP::createPSB(), RSVP::print(), and RSVP::processPathMsg().
| virtual const EroVector& RSVPPathMsg_Base::getERO | ( | ) | const [inline, virtual] |
Definition at line 102 of file RSVPPathMsg_m.h.
Referenced by getERO().
{return const_cast<RSVPPathMsg_Base*>(this)->getERO();}
| virtual RsvpHopObj_t& RSVPPathMsg_Base::getHop | ( | ) | [virtual] |
Referenced by RSVPPathMsg::getLIH(), and RSVPPathMsg::getNHOP().
| virtual const RsvpHopObj_t& RSVPPathMsg_Base::getHop | ( | ) | const [inline, virtual] |
Definition at line 93 of file RSVPPathMsg_m.h.
Referenced by getHop().
{return const_cast<RSVPPathMsg_Base*>(this)->getHop();}
| virtual LabelRequestObj_t& RSVPPathMsg_Base::getLabel_request | ( | ) | [virtual] |
| virtual const LabelRequestObj_t& RSVPPathMsg_Base::getLabel_request | ( | ) | const [inline, virtual] |
Definition at line 96 of file RSVPPathMsg_m.h.
Referenced by getLabel_request().
{return const_cast<RSVPPathMsg_Base*>(this)->getLabel_request();}
| virtual int RSVPPathMsg_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
| virtual SenderDescriptor_t& RSVPPathMsg_Base::getSender_descriptor | ( | ) | [virtual] |
| virtual const SenderDescriptor_t& RSVPPathMsg_Base::getSender_descriptor | ( | ) | const [inline, virtual] |
Definition at line 99 of file RSVPPathMsg_m.h.
Referenced by getSender_descriptor().
{return const_cast<RSVPPathMsg_Base*>(this)->getSender_descriptor();}
| RSVPPathMsg_Base& RSVPPathMsg_Base::operator= | ( | const RSVPPathMsg_Base & | other | ) | [protected] |
| bool RSVPPathMsg_Base::operator== | ( | const RSVPPathMsg_Base & | ) | [protected] |
| virtual void RSVPPathMsg_Base::parsimPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPPathMsg_Base::parsimUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPPathMsg_Base::setColor | ( | int | color | ) | [virtual] |
| virtual void RSVPPathMsg_Base::setERO | ( | const EroVector & | ERO | ) | [virtual] |
Referenced by RSVP::processPathMsg().
| virtual void RSVPPathMsg_Base::setHop | ( | const RsvpHopObj_t & | hop | ) | [virtual] |
| virtual void RSVPPathMsg_Base::setLabel_request | ( | const LabelRequestObj_t & | label_request | ) | [virtual] |
| virtual void RSVPPathMsg_Base::setRsvpKind | ( | int | rsvpKind | ) | [virtual] |
Reimplemented from RSVPMessage.
| virtual void RSVPPathMsg_Base::setSender_descriptor | ( | const SenderDescriptor_t & | sender_descriptor | ) | [virtual] |
int RSVPPathMsg_Base::color_var [protected] |
Definition at line 70 of file RSVPPathMsg_m.h.
EroVector RSVPPathMsg_Base::ERO_var [protected] |
Definition at line 69 of file RSVPPathMsg_m.h.
RsvpHopObj_t RSVPPathMsg_Base::hop_var [protected] |
Definition at line 66 of file RSVPPathMsg_m.h.
LabelRequestObj_t RSVPPathMsg_Base::label_request_var [protected] |
Definition at line 67 of file RSVPPathMsg_m.h.
int RSVPPathMsg_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.
Definition at line 71 of file RSVPPathMsg_m.h.
Definition at line 68 of file RSVPPathMsg_m.h.