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

Class generated from inet/linklayer/base/MACFrameBase.msg:27 by nedtool. More...

#include <MACFrameBase_m.h>

Inheritance diagram for inet::MACFrameBase:
inet::BMacFrame inet::CSMAFrame inet::LMacFrame

Public Member Functions

 MACFrameBase (const char *name=nullptr, short kind=0)
 
 MACFrameBase (const MACFrameBase &other)
 
virtual ~MACFrameBase ()
 
MACFrameBaseoperator= (const MACFrameBase &other)
 
virtual MACFrameBasedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual MACAddressgetSrcAddr ()
 
virtual const MACAddressgetSrcAddr () const
 
virtual void setSrcAddr (const MACAddress &srcAddr)
 
virtual MACAddressgetDestAddr ()
 
virtual const MACAddressgetDestAddr () const
 
virtual void setDestAddr (const MACAddress &destAddr)
 

Protected Member Functions

bool operator== (const MACFrameBase &)
 

Protected Attributes

MACAddress srcAddr
 
MACAddress destAddr
 

Private Member Functions

void copy (const MACFrameBase &other)
 

Detailed Description

Class generated from inet/linklayer/base/MACFrameBase.msg:27 by nedtool.

packet MACFrameBase
{
    MACAddress srcAddr;
    MACAddress destAddr;
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented in inet::CSMAFrame, inet::LMacFrame, and inet::BMacFrame.

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

Referenced by getDestAddr().

74 {return const_cast<MACFrameBase*>(this)->getDestAddr();}
virtual MACAddress & getDestAddr()
MACFrameBase(const char *name=nullptr, short kind=0)
virtual const MACAddress& inet::MACFrameBase::getSrcAddr ( ) const
inlinevirtual

Referenced by getSrcAddr().

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

Member Data Documentation

MACAddress inet::MACFrameBase::destAddr
protected
MACAddress inet::MACFrameBase::srcAddr
protected

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