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

Represents an Ethernet PHY frame. More...

#include <EtherFrame.h>

Inheritance diagram for inet::EtherPhyFrame:
inet::EtherPhyFrame_Base inet::EtherTraffic

Public Member Functions

 EtherPhyFrame (const char *name=nullptr, int kind=0)
 
 EtherPhyFrame (const EtherPhyFrame &other)
 
EtherPhyFrameoperator= (const EtherPhyFrame &other)
 
virtual EtherPhyFramedup () const override
 
virtual const char * getDisplayString () const override
 
- Public Member Functions inherited from inet::EtherPhyFrame_Base
virtual ~EtherPhyFrame_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual bool getSrcMacFullDuplex () const
 
virtual void setSrcMacFullDuplex (bool srcMacFullDuplex)
 
- Public Member Functions inherited from inet::EtherTraffic
 EtherTraffic (const char *name=nullptr, short kind=0)
 
 EtherTraffic (const EtherTraffic &other)
 
virtual ~EtherTraffic ()
 
EtherTrafficoperator= (const EtherTraffic &other)
 

Private Member Functions

void copy (const EtherPhyFrame &other)
 

Additional Inherited Members

- Protected Member Functions inherited from inet::EtherPhyFrame_Base
bool operator== (const EtherPhyFrame_Base &)
 
 EtherPhyFrame_Base (const char *name=nullptr, short kind=0)
 
 EtherPhyFrame_Base (const EtherPhyFrame_Base &other)
 
EtherPhyFrame_Baseoperator= (const EtherPhyFrame_Base &other)
 
- Protected Member Functions inherited from inet::EtherTraffic
bool operator== (const EtherTraffic &)
 
- Protected Attributes inherited from inet::EtherPhyFrame_Base
bool srcMacFullDuplex
 

Detailed Description

Represents an Ethernet PHY frame.

See EtherFrame.msg for details.

Constructor & Destructor Documentation

inet::EtherPhyFrame::EtherPhyFrame ( const char *  name = nullptr,
int  kind = 0 
)
inline

Referenced by dup().

17 : EtherPhyFrame_Base(name,kind) {}
EtherPhyFrame_Base(const char *name=nullptr, short kind=0)
inet::EtherPhyFrame::EtherPhyFrame ( const EtherPhyFrame other)
inline
18 : EtherPhyFrame_Base(other) {copy(other);}
void copy(const EtherPhyFrame &other)
Definition: EtherFrame.h:14
EtherPhyFrame_Base(const char *name=nullptr, short kind=0)

Member Function Documentation

void inet::EtherPhyFrame::copy ( const EtherPhyFrame other)
inlineprivate

Referenced by EtherPhyFrame(), and operator=().

14 {}
virtual EtherPhyFrame* inet::EtherPhyFrame::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::EtherPhyFrame_Base.

20 {return new EtherPhyFrame(*this);}
EtherPhyFrame(const char *name=nullptr, int kind=0)
Definition: EtherFrame.h:17
virtual const char* inet::EtherPhyFrame::getDisplayString ( ) const
inlineoverridevirtual

Referenced by getDisplayString().

22 { return hasEncapsulatedPacket() ? const_cast<EtherPhyFrame *>(this)->getEncapsulatedPacket()->getDisplayString() : EtherPhyFrame_Base::getDisplayString(); }
EtherPhyFrame(const char *name=nullptr, int kind=0)
Definition: EtherFrame.h:17
EtherPhyFrame& inet::EtherPhyFrame::operator= ( const EtherPhyFrame other)
inline
19 {if (this==&other) return *this; EtherPhyFrame_Base::operator=(other); copy(other); return *this;}
void copy(const EtherPhyFrame &other)
Definition: EtherFrame.h:14
EtherPhyFrame_Base & operator=(const EtherPhyFrame_Base &other)

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