|
INET Framework for OMNeT++/OMNEST
|
#include <RSVPResvMsg_m.h>
Public Member Functions | |
| virtual | ~RSVPResvTear_Base () |
| virtual RSVPResvTear_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 FlowDescriptorVector & | getFlowDescriptor () |
| virtual const FlowDescriptorVector & | getFlowDescriptor () const |
| virtual void | setFlowDescriptor (const FlowDescriptorVector &flowDescriptor) |
| virtual int | getRsvpKind () const |
| virtual void | setRsvpKind (int rsvpKind) |
Protected Member Functions | |
| bool | operator== (const RSVPResvTear_Base &) |
| RSVPResvTear_Base (const char *name=NULL, int kind=0) | |
| RSVPResvTear_Base (const RSVPResvTear_Base &other) | |
| RSVPResvTear_Base & | operator= (const RSVPResvTear_Base &other) |
Protected Attributes | |
| RsvpHopObj_t | hop_var |
| FlowDescriptorVector | flowDescriptor_var |
| int | rsvpKind_var |
Private Member Functions | |
| void | copy (const RSVPResvTear_Base &other) |
Class generated from networklayer/rsvp_te/RSVPResvMsg.msg by opp_msgc.
packet RSVPResvTear extends RSVPPacket { (true); RsvpHopObj_t hop; FlowDescriptorVector flowDescriptor; int rsvpKind = RTEAR_MESSAGE; }
RSVPResvTear_Base is only useful if it gets subclassed, and RSVPResvTear is derived from it. The minimum code to be written for RSVPResvTear is the following:
class RSVPResvTear : public RSVPResvTear_Base { private: void copy(const RSVPResvTear& other) { ... }
public:
RSVPResvTear(const char *name=NULL, int kind=0) : RSVPResvTear_Base(name,kind) {}
RSVPResvTear(const RSVPResvTear& other) : RSVPResvTear_Base(other) {copy(other);}
RSVPResvTear& operator=(const RSVPResvTear& other) {if (this==&other) return *this; RSVPResvTear_Base::operator=(other); copy(other); return *this;}
virtual RSVPResvTear *dup() const {return new RSVPResvTear(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from RSVPResvTear_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(RSVPResvTear);
Definition at line 131 of file RSVPResvMsg_m.h.
| RSVPResvTear_Base::RSVPResvTear_Base | ( | const char * | name = NULL, |
| int | kind = 0 |
||
| ) | [protected] |
| RSVPResvTear_Base::RSVPResvTear_Base | ( | const RSVPResvTear_Base & | other | ) | [protected] |
| virtual RSVPResvTear_Base::~RSVPResvTear_Base | ( | ) | [virtual] |
| void RSVPResvTear_Base::copy | ( | const RSVPResvTear_Base & | other | ) | [private] |
| virtual RSVPResvTear_Base* RSVPResvTear_Base::dup | ( | ) | const [inline, virtual] |
Reimplemented from RSVPPacket.
Reimplemented in RSVPResvTear.
Definition at line 152 of file RSVPResvMsg_m.h.
{throw cRuntimeError("You forgot to manually add a dup() function to class RSVPResvTear");}
| virtual FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor | ( | ) | [virtual] |
| virtual const FlowDescriptorVector& RSVPResvTear_Base::getFlowDescriptor | ( | ) | const [inline, virtual] |
Definition at line 161 of file RSVPResvMsg_m.h.
Referenced by getFlowDescriptor().
{return const_cast<RSVPResvTear_Base*>(this)->getFlowDescriptor();}
| virtual RsvpHopObj_t& RSVPResvTear_Base::getHop | ( | ) | [virtual] |
Referenced by RSVPResvTear::getLIH(), and RSVPResvTear::getNHOP().
| virtual const RsvpHopObj_t& RSVPResvTear_Base::getHop | ( | ) | const [inline, virtual] |
Definition at line 158 of file RSVPResvMsg_m.h.
Referenced by getHop().
{return const_cast<RSVPResvTear_Base*>(this)->getHop();}
| virtual int RSVPResvTear_Base::getRsvpKind | ( | ) | const [virtual] |
Reimplemented from RSVPMessage.
| RSVPResvTear_Base& RSVPResvTear_Base::operator= | ( | const RSVPResvTear_Base & | other | ) | [protected] |
| bool RSVPResvTear_Base::operator== | ( | const RSVPResvTear_Base & | ) | [protected] |
| virtual void RSVPResvTear_Base::parsimPack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPResvTear_Base::parsimUnpack | ( | cCommBuffer * | b | ) | [virtual] |
Reimplemented from RSVPPacket_Base.
| virtual void RSVPResvTear_Base::setFlowDescriptor | ( | const FlowDescriptorVector & | flowDescriptor | ) | [virtual] |
| virtual void RSVPResvTear_Base::setHop | ( | const RsvpHopObj_t & | hop | ) | [virtual] |
| virtual void RSVPResvTear_Base::setRsvpKind | ( | int | rsvpKind | ) | [virtual] |
Reimplemented from RSVPMessage.
Definition at line 135 of file RSVPResvMsg_m.h.
RsvpHopObj_t RSVPResvTear_Base::hop_var [protected] |
Definition at line 134 of file RSVPResvMsg_m.h.
int RSVPResvTear_Base::rsvpKind_var [protected] |
Reimplemented from RSVPMessage.
Definition at line 136 of file RSVPResvMsg_m.h.