INET Framework for OMNeT++/OMNEST
inet::ospfv2::Ospfv2NetworkLsa Class Reference

Class generated from inet/routing/ospfv2/Ospfv2Packet.msg:159 by opp_msgtool. More...

#include <Ospfv2Packet_m.h>

Inheritance diagram for inet::ospfv2::Ospfv2NetworkLsa:
inet::ospfv2::Ospfv2Lsa inet::ospfv2::NetworkLsa

Public Member Functions

 Ospfv2NetworkLsa ()
 
 Ospfv2NetworkLsa (const Ospfv2NetworkLsa &other)
 
virtual ~Ospfv2NetworkLsa ()
 
Ospfv2NetworkLsaoperator= (const Ospfv2NetworkLsa &other)
 
virtual Ospfv2NetworkLsadup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual const ::inet::Ipv4AddressgetNetworkMask () const
 
virtual ::inet::Ipv4AddressgetNetworkMaskForUpdate ()
 
virtual void setNetworkMask (const ::inet::Ipv4Address &networkMask)
 
virtual void setAttachedRoutersArraySize (size_t size)
 
virtual size_t getAttachedRoutersArraySize () const
 
virtual const ::inet::Ipv4AddressgetAttachedRouters (size_t k) const
 
virtual ::inet::Ipv4AddressgetAttachedRoutersForUpdate (size_t k)
 
virtual void setAttachedRouters (size_t k, const ::inet::Ipv4Address &attachedRouters)
 
virtual void insertAttachedRouters (size_t k, const ::inet::Ipv4Address &attachedRouters)
 
void insertAttachedRouters (const ::inet::Ipv4Address &attachedRouters)
 
virtual void appendAttachedRouters (const ::inet::Ipv4Address &attachedRouters)
 
virtual void eraseAttachedRouters (size_t k)
 
- Public Member Functions inherited from inet::ospfv2::Ospfv2Lsa
 Ospfv2Lsa ()
 
 Ospfv2Lsa (const Ospfv2Lsa &other)
 
virtual ~Ospfv2Lsa ()
 
Ospfv2Lsaoperator= (const Ospfv2Lsa &other)
 
virtual const Ospfv2LsaHeadergetHeader () const
 
virtual Ospfv2LsaHeadergetHeaderForUpdate ()
 
virtual void setHeader (const Ospfv2LsaHeader &header)
 

Protected Member Functions

bool operator== (const Ospfv2NetworkLsa &)=delete
 
- Protected Member Functions inherited from inet::ospfv2::Ospfv2Lsa
bool operator== (const Ospfv2Lsa &)=delete
 

Protected Attributes

::inet::Ipv4Address networkMask
 
::inet::Ipv4AddressattachedRouters = nullptr
 
size_t attachedRouters_arraysize = 0
 
- Protected Attributes inherited from inet::ospfv2::Ospfv2Lsa
Ospfv2LsaHeader header
 

Private Member Functions

void copy (const Ospfv2NetworkLsa &other)
 

Detailed Description

Class generated from inet/routing/ospfv2/Ospfv2Packet.msg:159 by opp_msgtool.

//
// Represents an OSPF Network LSA
//
class Ospfv2NetworkLsa extends Ospfv2Lsa
{
    // header.lsType = NETWORKLSA_TYPE;
    Ipv4Address networkMask;
    Ipv4Address attachedRouters[];
}

Constructor & Destructor Documentation

◆ Ospfv2NetworkLsa() [1/2]

inet::ospfv2::Ospfv2NetworkLsa::Ospfv2NetworkLsa ( )

◆ Ospfv2NetworkLsa() [2/2]

inet::ospfv2::Ospfv2NetworkLsa::Ospfv2NetworkLsa ( const Ospfv2NetworkLsa other)

◆ ~Ospfv2NetworkLsa()

virtual inet::ospfv2::Ospfv2NetworkLsa::~Ospfv2NetworkLsa ( )
virtual

Member Function Documentation

◆ appendAttachedRouters()

virtual void inet::ospfv2::Ospfv2NetworkLsa::appendAttachedRouters ( const ::inet::Ipv4Address attachedRouters)
virtual

◆ copy()

void inet::ospfv2::Ospfv2NetworkLsa::copy ( const Ospfv2NetworkLsa other)
private

◆ dup()

virtual Ospfv2NetworkLsa* inet::ospfv2::Ospfv2NetworkLsa::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::ospfv2::Ospfv2Lsa.

638 {return new Ospfv2NetworkLsa(*this);}

◆ eraseAttachedRouters()

virtual void inet::ospfv2::Ospfv2NetworkLsa::eraseAttachedRouters ( size_t  k)
virtual

◆ getAttachedRouters()

◆ getAttachedRoutersArraySize()

◆ getAttachedRoutersForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv2::Ospfv2NetworkLsa::getAttachedRoutersForUpdate ( size_t  k)
inline
649 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv2NetworkLsa*>(this)->getAttachedRouters(k));}

◆ getNetworkMask()

◆ getNetworkMaskForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv2::Ospfv2NetworkLsa::getNetworkMaskForUpdate ( )
inline
643 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv2NetworkLsa*>(this)->getNetworkMask());}

◆ insertAttachedRouters() [1/2]

void inet::ospfv2::Ospfv2NetworkLsa::insertAttachedRouters ( const ::inet::Ipv4Address attachedRouters)
inline

◆ insertAttachedRouters() [2/2]

virtual void inet::ospfv2::Ospfv2NetworkLsa::insertAttachedRouters ( size_t  k,
const ::inet::Ipv4Address attachedRouters 
)
virtual

◆ operator=()

Ospfv2NetworkLsa& inet::ospfv2::Ospfv2NetworkLsa::operator= ( const Ospfv2NetworkLsa other)

◆ operator==()

bool inet::ospfv2::Ospfv2NetworkLsa::operator== ( const Ospfv2NetworkLsa )
protecteddelete

◆ parsimPack()

virtual void inet::ospfv2::Ospfv2NetworkLsa::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::ospfv2::Ospfv2Lsa.

Referenced by inet::ospfv2::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::ospfv2::Ospfv2Lsa.

Referenced by inet::ospfv2::doParsimUnpacking().

◆ setAttachedRouters()

virtual void inet::ospfv2::Ospfv2NetworkLsa::setAttachedRouters ( size_t  k,
const ::inet::Ipv4Address attachedRouters 
)
virtual

◆ setAttachedRoutersArraySize()

virtual void inet::ospfv2::Ospfv2NetworkLsa::setAttachedRoutersArraySize ( size_t  size)
virtual

◆ setNetworkMask()

virtual void inet::ospfv2::Ospfv2NetworkLsa::setNetworkMask ( const ::inet::Ipv4Address networkMask)
virtual

Member Data Documentation

◆ attachedRouters

::inet::Ipv4Address* inet::ospfv2::Ospfv2NetworkLsa::attachedRouters = nullptr
protected

◆ attachedRouters_arraysize

size_t inet::ospfv2::Ospfv2NetworkLsa::attachedRouters_arraysize = 0
protected

◆ networkMask

::inet::Ipv4Address inet::ospfv2::Ospfv2NetworkLsa::networkMask
protected

The documentation for this class was generated from the following file:
inet::ospfv2::Ospfv2NetworkLsa::Ospfv2NetworkLsa
Ospfv2NetworkLsa()
inet::ospfv2::Ospfv2NetworkLsa::getAttachedRouters
virtual const ::inet::Ipv4Address & getAttachedRouters(size_t k) const
inet::Ipv4Address
Ipv4 address.
Definition: Ipv4Address.h:34
inet::ospfv2::Ospfv2NetworkLsa::appendAttachedRouters
virtual void appendAttachedRouters(const ::inet::Ipv4Address &attachedRouters)
inet::ospfv2::Ospfv2NetworkLsa::attachedRouters
::inet::Ipv4Address * attachedRouters
Definition: Ospfv2Packet_m.h:624
inet::physicallayer::k
const double k
Definition: Qam1024Modulation.cc:14
inet::ospfv2::Ospfv2NetworkLsa::getNetworkMask
virtual const ::inet::Ipv4Address & getNetworkMask() const