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

Class generated from inet/networklayer/ipv4/IPv4Datagram.msg:115 by nedtool. More...

#include <IPv4Datagram_m.h>

Inheritance diagram for inet::IPv4OptionRecordRoute:
inet::IPv4Option inet::TLVOptionBase

Public Member Functions

 IPv4OptionRecordRoute ()
 
 IPv4OptionRecordRoute (const IPv4OptionRecordRoute &other)
 
virtual ~IPv4OptionRecordRoute ()
 
IPv4OptionRecordRouteoperator= (const IPv4OptionRecordRoute &other)
 
virtual IPv4OptionRecordRoutedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual short getNextAddressIdx () const
 
virtual void setNextAddressIdx (short nextAddressIdx)
 
virtual void setRecordAddressArraySize (unsigned int size)
 
virtual unsigned int getRecordAddressArraySize () const
 
virtual IPv4AddressgetRecordAddress (unsigned int k)
 
virtual const IPv4AddressgetRecordAddress (unsigned int k) const
 
virtual void setRecordAddress (unsigned int k, const IPv4Address &recordAddress)
 
- Public Member Functions inherited from inet::IPv4Option
 IPv4Option ()
 
 IPv4Option (const IPv4Option &other)
 
virtual ~IPv4Option ()
 
IPv4Optionoperator= (const IPv4Option &other)
 
- Public Member Functions inherited from inet::TLVOptionBase
 TLVOptionBase ()
 
 TLVOptionBase (const TLVOptionBase &other)
 
virtual ~TLVOptionBase ()
 
TLVOptionBaseoperator= (const TLVOptionBase &other)
 
virtual short getType () const
 
virtual void setType (short type)
 
virtual short getLength () const
 
virtual void setLength (short length)
 

Protected Member Functions

bool operator== (const IPv4OptionRecordRoute &)
 
- Protected Member Functions inherited from inet::IPv4Option
bool operator== (const IPv4Option &)
 
- Protected Member Functions inherited from inet::TLVOptionBase
bool operator== (const TLVOptionBase &)
 

Protected Attributes

short nextAddressIdx
 
IPv4AddressrecordAddress
 
unsigned int recordAddress_arraysize
 
- Protected Attributes inherited from inet::TLVOptionBase
short type
 
short length
 

Private Member Functions

void copy (const IPv4OptionRecordRoute &other)
 

Detailed Description

Class generated from inet/networklayer/ipv4/IPv4Datagram.msg:115 by nedtool.

//
// Option structure: Record Route
//
class IPv4OptionRecordRoute extends IPv4Option
{
    // type = IPOPTION_RECORD_ROUTE;
    // type = IPOPTION_LOOSE_SOURCE_ROUTING
    // type = IPOPTION_STRICT_SOURCE_ROUTING
    // length = 3 + 4 * getRecordAddressArraySize();
    short nextAddressIdx;
    // pointer = 4 + 4 * nextAddressIdx
    IPv4Address recordAddress[];    // max size is 9
}

Constructor & Destructor Documentation

inet::IPv4OptionRecordRoute::IPv4OptionRecordRoute ( )
inet::IPv4OptionRecordRoute::IPv4OptionRecordRoute ( const IPv4OptionRecordRoute other)
virtual inet::IPv4OptionRecordRoute::~IPv4OptionRecordRoute ( )
virtual

Member Function Documentation

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

Reimplemented from inet::IPv4Option.

281 {return new IPv4OptionRecordRoute(*this);}
virtual short inet::IPv4OptionRecordRoute::getNextAddressIdx ( ) const
virtual
virtual IPv4Address& inet::IPv4OptionRecordRoute::getRecordAddress ( unsigned int  k)
virtual
virtual const IPv4Address& inet::IPv4OptionRecordRoute::getRecordAddress ( unsigned int  k) const
inlinevirtual

Referenced by getRecordAddress().

291 {return const_cast<IPv4OptionRecordRoute*>(this)->getRecordAddress(k);}
const double k
Definition: QAM16Modulation.cc:24
virtual IPv4Address & getRecordAddress(unsigned int k)
virtual unsigned int inet::IPv4OptionRecordRoute::getRecordAddressArraySize ( ) const
virtual
IPv4OptionRecordRoute& inet::IPv4OptionRecordRoute::operator= ( const IPv4OptionRecordRoute other)
bool inet::IPv4OptionRecordRoute::operator== ( const IPv4OptionRecordRoute )
protected
virtual void inet::IPv4OptionRecordRoute::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::IPv4Option.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::IPv4Option.

Referenced by inet::doParsimUnpacking().

virtual void inet::IPv4OptionRecordRoute::setNextAddressIdx ( short  nextAddressIdx)
virtual
virtual void inet::IPv4OptionRecordRoute::setRecordAddress ( unsigned int  k,
const IPv4Address recordAddress 
)
virtual
virtual void inet::IPv4OptionRecordRoute::setRecordAddressArraySize ( unsigned int  size)
virtual

Member Data Documentation

short inet::IPv4OptionRecordRoute::nextAddressIdx
protected
IPv4Address* inet::IPv4OptionRecordRoute::recordAddress
protected
unsigned int inet::IPv4OptionRecordRoute::recordAddress_arraysize
protected

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