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

Class generated from inet/networklayer/contract/generic/GenericNetworkProtocolControlInfo.msg:52 by nedtool. More...

#include <GenericNetworkProtocolControlInfo_m.h>

Inheritance diagram for inet::GenericRoutingDecision:

Public Member Functions

 GenericRoutingDecision ()
 
 GenericRoutingDecision (const GenericRoutingDecision &other)
 
virtual ~GenericRoutingDecision ()
 
GenericRoutingDecisionoperator= (const GenericRoutingDecision &other)
 
virtual GenericRoutingDecisiondup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getInterfaceId () const
 
virtual void setInterfaceId (int interfaceId)
 
virtual L3AddressgetNextHop ()
 
virtual const L3AddressgetNextHop () const
 
virtual void setNextHop (const L3Address &nextHop)
 

Protected Member Functions

bool operator== (const GenericRoutingDecision &)
 

Protected Attributes

int interfaceId
 
L3Address nextHop
 

Private Member Functions

void copy (const GenericRoutingDecision &other)
 

Detailed Description

Class generated from inet/networklayer/contract/generic/GenericNetworkProtocolControlInfo.msg:52 by nedtool.

//
// Control info attached to packets sent from ~GenericNetworkProtocol to ~GenericARP.
//
// Next hop address is used on a LAN to determine the MAC destination
// address (and it may be used on other multicast networks for similar
// addressing purpose).
//
class GenericRoutingDecision
{
    int interfaceId = -1;
    L3Address nextHop;
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::GenericRoutingDecision::copy ( const GenericRoutingDecision other)
private
virtual GenericRoutingDecision* inet::GenericRoutingDecision::dup ( ) const
inlineoverridevirtual
157 {return new GenericRoutingDecision(*this);}
virtual int inet::GenericRoutingDecision::getInterfaceId ( ) const
virtual
virtual L3Address& inet::GenericRoutingDecision::getNextHop ( )
virtual
virtual const L3Address& inet::GenericRoutingDecision::getNextHop ( ) const
inlinevirtual

Referenced by getNextHop().

165 {return const_cast<GenericRoutingDecision*>(this)->getNextHop();}
virtual L3Address & getNextHop()
GenericRoutingDecision& inet::GenericRoutingDecision::operator= ( const GenericRoutingDecision other)
bool inet::GenericRoutingDecision::operator== ( const GenericRoutingDecision )
protected
virtual void inet::GenericRoutingDecision::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::GenericRoutingDecision::setInterfaceId ( int  interfaceId)
virtual
virtual void inet::GenericRoutingDecision::setNextHop ( const L3Address nextHop)
virtual

Member Data Documentation

int inet::GenericRoutingDecision::interfaceId
protected
L3Address inet::GenericRoutingDecision::nextHop
protected

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