INET Framework for OMNeT++/OMNEST
inet::ospf::Link Class Reference

Class generated from inet/routing/ospfv2/OSPFPacket.msg:129 by nedtool. More...

#include <OSPFPacket_m.h>

Inheritance diagram for inet::ospf::Link:

Public Member Functions

 Link ()
 
 Link (const Link &other)
 
virtual ~Link ()
 
Linkoperator= (const Link &other)
 
virtual Linkdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual IPv4AddressgetLinkID ()
 
virtual const IPv4AddressgetLinkID () const
 
virtual void setLinkID (const IPv4Address &linkID)
 
virtual unsigned long getLinkData () const
 
virtual void setLinkData (unsigned long linkData)
 
virtual unsigned char getType () const
 
virtual void setType (unsigned char type)
 
virtual unsigned char getNumberOfTOS () const
 
virtual void setNumberOfTOS (unsigned char numberOfTOS)
 
virtual unsigned long getLinkCost () const
 
virtual void setLinkCost (unsigned long linkCost)
 
virtual void setTosDataArraySize (unsigned int size)
 
virtual unsigned int getTosDataArraySize () const
 
virtual TOSDatagetTosData (unsigned int k)
 
virtual const TOSDatagetTosData (unsigned int k) const
 
virtual void setTosData (unsigned int k, const TOSData &tosData)
 

Protected Member Functions

bool operator== (const Link &)
 

Protected Attributes

IPv4Address linkID
 
unsigned long linkData
 
unsigned char type
 
unsigned char numberOfTOS
 
unsigned long linkCost
 
TOSDatatosData
 
unsigned int tosData_arraysize
 

Private Member Functions

void copy (const Link &other)
 

Detailed Description

Class generated from inet/routing/ospfv2/OSPFPacket.msg:129 by nedtool.

class Link
{
    IPv4Address linkID;
    unsigned long linkData = 0;
    unsigned char type @enum(LinkType) = POINTTOPOINT_LINK;
    unsigned char numberOfTOS = 0;
    unsigned long linkCost = 1;
    TOSData tosData[];
}

Constructor & Destructor Documentation

inet::ospf::Link::Link ( )
inet::ospf::Link::Link ( const Link other)
virtual inet::ospf::Link::~Link ( )
virtual

Member Function Documentation

void inet::ospf::Link::copy ( const Link other)
private
virtual Link* inet::ospf::Link::dup ( ) const
inlineoverridevirtual
436 {return new Link(*this);}
virtual unsigned long inet::ospf::Link::getLinkCost ( ) const
virtual
virtual const IPv4Address& inet::ospf::Link::getLinkID ( ) const
inlinevirtual

Referenced by getLinkID().

442 {return const_cast<Link*>(this)->getLinkID();}
virtual unsigned char inet::ospf::Link::getNumberOfTOS ( ) const
virtual
virtual TOSData& inet::ospf::Link::getTosData ( unsigned int  k)
virtual

Referenced by inet::ospf::operator<<().

virtual const TOSData& inet::ospf::Link::getTosData ( unsigned int  k) const
inlinevirtual

Referenced by getTosData().

455 {return const_cast<Link*>(this)->getTosData(k);}
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::ospf::Link::getTosDataArraySize ( ) const
virtual
Link& inet::ospf::Link::operator= ( const Link other)
bool inet::ospf::Link::operator== ( const Link )
protected
virtual void inet::ospf::Link::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::ospf::Link::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::ospf::Link::setLinkCost ( unsigned long  linkCost)
virtual
virtual void inet::ospf::Link::setLinkData ( unsigned long  linkData)
virtual
virtual void inet::ospf::Link::setLinkID ( const IPv4Address linkID)
virtual
virtual void inet::ospf::Link::setNumberOfTOS ( unsigned char  numberOfTOS)
virtual
virtual void inet::ospf::Link::setTosData ( unsigned int  k,
const TOSData tosData 
)
virtual
virtual void inet::ospf::Link::setTosDataArraySize ( unsigned int  size)
virtual
virtual void inet::ospf::Link::setType ( unsigned char  type)
virtual

Member Data Documentation

unsigned long inet::ospf::Link::linkCost
protected
unsigned long inet::ospf::Link::linkData
protected
IPv4Address inet::ospf::Link::linkID
protected
unsigned char inet::ospf::Link::numberOfTOS
protected
TOSData* inet::ospf::Link::tosData
protected
unsigned int inet::ospf::Link::tosData_arraysize
protected
unsigned char inet::ospf::Link::type
protected

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