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

Class generated from inet/linklayer/ideal/IdealMacFrame.msg:34 by nedtool. More...

#include <IdealMacFrame_m.h>

Inheritance diagram for inet::IdealMacFrame:

Public Member Functions

 IdealMacFrame (const char *name=nullptr, short kind=0)
 
 IdealMacFrame (const IdealMacFrame &other)
 
virtual ~IdealMacFrame ()
 
IdealMacFrameoperator= (const IdealMacFrame &other)
 
virtual IdealMacFramedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual MACAddressgetSrc ()
 
virtual const MACAddressgetSrc () const
 
virtual void setSrc (const MACAddress &src)
 
virtual MACAddressgetDest ()
 
virtual const MACAddressgetDest () const
 
virtual void setDest (const MACAddress &dest)
 
virtual int getSrcModuleId () const
 
virtual void setSrcModuleId (int srcModuleId)
 

Protected Member Functions

bool operator== (const IdealMacFrame &)
 

Protected Attributes

MACAddress src
 
MACAddress dest
 
int srcModuleId
 

Private Member Functions

void copy (const IdealMacFrame &other)
 

Detailed Description

Class generated from inet/linklayer/ideal/IdealMacFrame.msg:34 by nedtool.

//
// Packet for ~IdealMac. Packet size is configurable
// in the MAC layer. 
//
packet IdealMacFrame
{
    MACAddress src;     // source address
    MACAddress dest;    // destination address
    int srcModuleId;    // technical data, uses instead of sending back an ACK packet
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Referenced by inet::IdealMac::startTransmitting().

72 {return new IdealMacFrame(*this);}
IdealMacFrame(const char *name=nullptr, short kind=0)
virtual MACAddress& inet::IdealMacFrame::getDest ( )
virtual
virtual const MACAddress& inet::IdealMacFrame::getDest ( ) const
inlinevirtual

Referenced by getDest().

81 {return const_cast<IdealMacFrame*>(this)->getDest();}
virtual MACAddress & getDest()
IdealMacFrame(const char *name=nullptr, short kind=0)
virtual MACAddress& inet::IdealMacFrame::getSrc ( )
virtual
virtual const MACAddress& inet::IdealMacFrame::getSrc ( ) const
inlinevirtual

Referenced by getSrc().

78 {return const_cast<IdealMacFrame*>(this)->getSrc();}
virtual MACAddress & getSrc()
IdealMacFrame(const char *name=nullptr, short kind=0)
virtual int inet::IdealMacFrame::getSrcModuleId ( ) const
virtual
IdealMacFrame& inet::IdealMacFrame::operator= ( const IdealMacFrame other)
bool inet::IdealMacFrame::operator== ( const IdealMacFrame )
protected
virtual void inet::IdealMacFrame::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::IdealMacFrame::setDest ( const MACAddress dest)
virtual
virtual void inet::IdealMacFrame::setSrc ( const MACAddress src)
virtual
virtual void inet::IdealMacFrame::setSrcModuleId ( int  srcModuleId)
virtual

Member Data Documentation

MACAddress inet::IdealMacFrame::dest
protected
MACAddress inet::IdealMacFrame::src
protected
int inet::IdealMacFrame::srcModuleId
protected

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