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

Class generated from inet/networklayer/rsvp_te/RSVPResvMsg.msg:49 by nedtool. More...

#include <RSVPResvMsg_m.h>

Inheritance diagram for inet::RSVPResvTear_Base:
inet::RSVPPacket inet::RSVPPacket_Base inet::RSVPMessage inet::RSVPResvTear

Public Member Functions

virtual ~RSVPResvTear_Base ()
 
virtual RSVPResvTear_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 FlowDescriptorVectorgetFlowDescriptor ()
 
virtual const FlowDescriptorVectorgetFlowDescriptor () const
 
virtual void setFlowDescriptor (const FlowDescriptorVector &flowDescriptor)
 
- 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 RSVPResvTear_Base &)
 
 RSVPResvTear_Base (const char *name=nullptr, short kind=0)
 
 RSVPResvTear_Base (const RSVPResvTear_Base &other)
 
RSVPResvTear_Baseoperator= (const RSVPResvTear_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
 
FlowDescriptorVector flowDescriptor
 
- 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 RSVPResvTear_Base &other)
 

Detailed Description

Class generated from inet/networklayer/rsvp_te/RSVPResvMsg.msg:49 by nedtool.

//
// FIXME missing documentation
//
packet RSVPResvTear extends RSVPPacket
{
    @customize(true);
    RsvpHopObj_t hop;
    FlowDescriptorVector flowDescriptor;
    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 INET_API RSVPResvTear : public RSVPResvTear_Base
{
  private:
    void copy(const RSVPResvTear& other) { ... }
  public:
    RSVPResvTear(const char *name=nullptr, short 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 override {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)

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::RSVPPacket.

Reimplemented in inet::RSVPResvTear.

169 {throw omnetpp::cRuntimeError("You forgot to manually add a dup() function to class RSVPResvTear");}
virtual FlowDescriptorVector& inet::RSVPResvTear_Base::getFlowDescriptor ( )
virtual
virtual const FlowDescriptorVector& inet::RSVPResvTear_Base::getFlowDescriptor ( ) const
inlinevirtual

Referenced by getFlowDescriptor().

178 {return const_cast<RSVPResvTear_Base*>(this)->getFlowDescriptor();}
virtual FlowDescriptorVector & getFlowDescriptor()
RSVPResvTear_Base(const char *name=nullptr, short kind=0)
virtual RsvpHopObj_t& inet::RSVPResvTear_Base::getHop ( )
virtual
virtual const RsvpHopObj_t& inet::RSVPResvTear_Base::getHop ( ) const
inlinevirtual

Referenced by getHop().

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

Reimplemented from inet::RSVPPacket_Base.

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

Reimplemented from inet::RSVPPacket_Base.

virtual void inet::RSVPResvTear_Base::setFlowDescriptor ( const FlowDescriptorVector flowDescriptor)
virtual
virtual void inet::RSVPResvTear_Base::setHop ( const RsvpHopObj_t hop)
virtual

Member Data Documentation

FlowDescriptorVector inet::RSVPResvTear_Base::flowDescriptor
protected
RsvpHopObj_t inet::RSVPResvTear_Base::hop
protected

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