INET Framework for OMNeT++/OMNEST
inet::RSVPPathMsg_Base Class Reference

Class generated from inet/networklayer/rsvp_te/RSVPPathMsg.msg:44 by nedtool. More...

#include <RSVPPathMsg_m.h>

Inheritance diagram for inet::RSVPPathMsg_Base:
inet::RSVPPacket inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPPathMsg

Public Member Functions

virtual ~RSVPPathMsg_Base ()
 
virtual RSVPPathMsg_Basedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual RsvpHopObj_tgetHop ()
 
virtual const RsvpHopObj_tgetHop () const
 
virtual void setHop (const RsvpHopObj_t &hop)
 
virtual LabelRequestObj_tgetLabel_request ()
 
virtual const LabelRequestObj_tgetLabel_request () const
 
virtual void setLabel_request (const LabelRequestObj_t &label_request)
 
virtual SenderDescriptor_tgetSender_descriptor ()
 
virtual const SenderDescriptor_tgetSender_descriptor () const
 
virtual void setSender_descriptor (const SenderDescriptor_t &sender_descriptor)
 
virtual EroVectorgetERO ()
 
virtual const EroVectorgetERO () const
 
virtual void setERO (const EroVector &ERO)
 
virtual int getColor () const
 
virtual void setColor (int color)
 
- Public Member Functions inherited from inet::RSVPPacket
 RSVPPacket (const char *name=nullptr, int kind=0)
 
 RSVPPacket (const RSVPPacket &other)
 
RSVPPacketoperator= (const RSVPPacket &other)
 
IPv4Address getDestAddress ()
 
int getTunnelId ()
 
int getExTunnelId ()
 
int getSetupPri ()
 
int getHoldingPri ()
 
bool isInSession (SessionObj_t *s)
 
- Public Member Functions inherited from inet::RSVPPacket_Base
virtual ~RSVPPacket_Base ()
 
virtual SessionObj_tgetSession ()
 
virtual const SessionObj_tgetSession () const
 
virtual void setSession (const SessionObj_t &session)
 
virtual bool getChecksumValid () const
 
virtual void setChecksumValid (bool checksumValid)
 
- Public Member Functions inherited from inet::RSVPMessage
 RSVPMessage (const char *name=nullptr, short kind=0)
 
 RSVPMessage (const RSVPMessage &other)
 
virtual ~RSVPMessage ()
 
RSVPMessageoperator= (const RSVPMessage &other)
 
virtual int getRsvpKind () const
 
virtual void setRsvpKind (int rsvpKind)
 

Protected Member Functions

bool operator== (const RSVPPathMsg_Base &)
 
 RSVPPathMsg_Base (const char *name=nullptr, short kind=0)
 
 RSVPPathMsg_Base (const RSVPPathMsg_Base &other)
 
RSVPPathMsg_Baseoperator= (const RSVPPathMsg_Base &other)
 
- Protected Member Functions inherited from inet::RSVPPacket_Base
bool operator== (const RSVPPacket_Base &)
 
 RSVPPacket_Base (const char *name=nullptr, short kind=0)
 
 RSVPPacket_Base (const RSVPPacket_Base &other)
 
RSVPPacket_Baseoperator= (const RSVPPacket_Base &other)
 
- Protected Member Functions inherited from inet::RSVPMessage
bool operator== (const RSVPMessage &)
 

Protected Attributes

RsvpHopObj_t hop
 
LabelRequestObj_t label_request
 
SenderDescriptor_t sender_descriptor
 
EroVector ERO
 
int color
 
- Protected Attributes inherited from inet::RSVPPacket_Base
SessionObj_t session
 
bool checksumValid
 
- Protected Attributes inherited from inet::RSVPMessage
int rsvpKind
 

Private Member Functions

void copy (const RSVPPathMsg_Base &other)
 

Detailed Description

Class generated from inet/networklayer/rsvp_te/RSVPPathMsg.msg:44 by nedtool.

//
// FIXME missing documentation
//
packet RSVPPathMsg extends RSVPPacket
{
    @customize(true);
    RsvpHopObj_t hop;
    LabelRequestObj_t label_request;
    SenderDescriptor_t sender_descriptor;
    EroVector ERO;
    int color;
    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 INET_API RSVPPathMsg : public RSVPPathMsg_Base
{
  private:
    void copy(const RSVPPathMsg& other) { ... }
  public:
    RSVPPathMsg(const char *name=nullptr, short 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 override {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)

Constructor & Destructor Documentation

inet::RSVPPathMsg_Base::RSVPPathMsg_Base ( const char *  name = nullptr,
short  kind = 0 
)
protected
inet::RSVPPathMsg_Base::RSVPPathMsg_Base ( const RSVPPathMsg_Base other)
protected
virtual inet::RSVPPathMsg_Base::~RSVPPathMsg_Base ( )
virtual

Member Function Documentation

void inet::RSVPPathMsg_Base::copy ( const RSVPPathMsg_Base other)
private
virtual RSVPPathMsg_Base* inet::RSVPPathMsg_Base::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::RSVPPacket.

Reimplemented in inet::RSVPPathMsg.

104 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class RSVPPathMsg");}
virtual int inet::RSVPPathMsg_Base::getColor ( ) const
virtual

Referenced by inet::RSVP::createPSB().

virtual EroVector& inet::RSVPPathMsg_Base::getERO ( )
virtual
virtual const EroVector& inet::RSVPPathMsg_Base::getERO ( ) const
inlinevirtual

Referenced by getERO().

119 {return const_cast<RSVPPathMsg_Base*>(this)->getERO();}
RSVPPathMsg_Base(const char *name=nullptr, short kind=0)
virtual EroVector & getERO()
virtual RsvpHopObj_t& inet::RSVPPathMsg_Base::getHop ( )
virtual
virtual const RsvpHopObj_t& inet::RSVPPathMsg_Base::getHop ( ) const
inlinevirtual

Referenced by getHop().

110 {return const_cast<RSVPPathMsg_Base*>(this)->getHop();}
RSVPPathMsg_Base(const char *name=nullptr, short kind=0)
virtual RsvpHopObj_t & getHop()
virtual LabelRequestObj_t& inet::RSVPPathMsg_Base::getLabel_request ( )
virtual
virtual const LabelRequestObj_t& inet::RSVPPathMsg_Base::getLabel_request ( ) const
inlinevirtual

Referenced by getLabel_request().

113 {return const_cast<RSVPPathMsg_Base*>(this)->getLabel_request();}
RSVPPathMsg_Base(const char *name=nullptr, short kind=0)
virtual LabelRequestObj_t & getLabel_request()
virtual SenderDescriptor_t& inet::RSVPPathMsg_Base::getSender_descriptor ( )
virtual
virtual const SenderDescriptor_t& inet::RSVPPathMsg_Base::getSender_descriptor ( ) const
inlinevirtual

Referenced by getSender_descriptor().

116 {return const_cast<RSVPPathMsg_Base*>(this)->getSender_descriptor();}
RSVPPathMsg_Base(const char *name=nullptr, short kind=0)
virtual SenderDescriptor_t & getSender_descriptor()
RSVPPathMsg_Base& inet::RSVPPathMsg_Base::operator= ( const RSVPPathMsg_Base other)
protected
bool inet::RSVPPathMsg_Base::operator== ( const RSVPPathMsg_Base )
protected
virtual void inet::RSVPPathMsg_Base::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPPathMsg_Base::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPPathMsg_Base::setColor ( int  color)
virtual
virtual void inet::RSVPPathMsg_Base::setERO ( const EroVector ERO)
virtual
virtual void inet::RSVPPathMsg_Base::setHop ( const RsvpHopObj_t hop)
virtual
virtual void inet::RSVPPathMsg_Base::setLabel_request ( const LabelRequestObj_t label_request)
virtual
virtual void inet::RSVPPathMsg_Base::setSender_descriptor ( const SenderDescriptor_t sender_descriptor)
virtual

Member Data Documentation

int inet::RSVPPathMsg_Base::color
protected
EroVector inet::RSVPPathMsg_Base::ERO
protected
RsvpHopObj_t inet::RSVPPathMsg_Base::hop
protected
LabelRequestObj_t inet::RSVPPathMsg_Base::label_request
protected
SenderDescriptor_t inet::RSVPPathMsg_Base::sender_descriptor
protected

The documentation for this class was generated from the following file: