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

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

#include <RSVPPathMsg_m.h>

Inheritance diagram for inet::RSVPPathTear_Base:
inet::RSVPPacket inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPPathTear

Public Member Functions

virtual ~RSVPPathTear_Base ()
 
virtual RSVPPathTear_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 SenderTemplateObj_tgetSenderTemplate ()
 
virtual const SenderTemplateObj_tgetSenderTemplate () const
 
virtual void setSenderTemplate (const SenderTemplateObj_t &senderTemplate)
 
virtual bool getForce () const
 
virtual void setForce (bool force)
 
- 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 RSVPPathTear_Base &)
 
 RSVPPathTear_Base (const char *name=nullptr, short kind=0)
 
 RSVPPathTear_Base (const RSVPPathTear_Base &other)
 
RSVPPathTear_Baseoperator= (const RSVPPathTear_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
 
SenderTemplateObj_t senderTemplate
 
bool force
 
- 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 RSVPPathTear_Base &other)
 

Detailed Description

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

//
// FIXME missing documentation
//
packet RSVPPathTear extends RSVPPacket
{
    @customize(true);
    RsvpHopObj_t hop;
    SenderTemplateObj_t senderTemplate;
    bool force;
    rsvpKind = PTEAR_MESSAGE;
}

RSVPPathTear_Base is only useful if it gets subclassed, and RSVPPathTear is derived from it. The minimum code to be written for RSVPPathTear is the following:

class INET_API RSVPPathTear : public RSVPPathTear_Base
{
  private:
    void copy(const RSVPPathTear& other) { ... }
  public:
    RSVPPathTear(const char *name=nullptr, short kind=0) : RSVPPathTear_Base(name,kind) {}
    RSVPPathTear(const RSVPPathTear& other) : RSVPPathTear_Base(other) {copy(other);}
    RSVPPathTear& operator=(const RSVPPathTear& other) {if (this==&other) return *this; RSVPPathTear_Base::operator=(other); copy(other); return *this;}
    virtual RSVPPathTear *dup() const override {return new RSVPPathTear(*this);}
    // ADD CODE HERE to redefine and implement pure virtual functions from RSVPPathTear_Base
};

The following should go into a .cc (.cpp) file:

Register_Class(RSVPPathTear)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::RSVPPacket.

Reimplemented in inet::RSVPPathTear.

186 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class RSVPPathTear");}
virtual bool inet::RSVPPathTear_Base::getForce ( ) const
virtual
virtual RsvpHopObj_t& inet::RSVPPathTear_Base::getHop ( )
virtual
virtual const RsvpHopObj_t& inet::RSVPPathTear_Base::getHop ( ) const
inlinevirtual

Referenced by getHop().

192 {return const_cast<RSVPPathTear_Base*>(this)->getHop();}
RSVPPathTear_Base(const char *name=nullptr, short kind=0)
virtual RsvpHopObj_t & getHop()
virtual SenderTemplateObj_t& inet::RSVPPathTear_Base::getSenderTemplate ( )
virtual
virtual const SenderTemplateObj_t& inet::RSVPPathTear_Base::getSenderTemplate ( ) const
inlinevirtual

Referenced by getSenderTemplate().

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

Reimplemented from inet::RSVPPacket_Base.

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

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPPathTear_Base::setForce ( bool  force)
virtual
virtual void inet::RSVPPathTear_Base::setHop ( const RsvpHopObj_t hop)
virtual
virtual void inet::RSVPPathTear_Base::setSenderTemplate ( const SenderTemplateObj_t senderTemplate)
virtual

Member Data Documentation

bool inet::RSVPPathTear_Base::force
protected
RsvpHopObj_t inet::RSVPPathTear_Base::hop
protected
SenderTemplateObj_t inet::RSVPPathTear_Base::senderTemplate
protected

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