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

Class generated from inet/common/ProtocolTag.msg:216 by opp_msgtool. More...

#include <ProtocolTag_m.h>

Inheritance diagram for inet::MacProtocolInd:
inet::ProtocolTagBase inet::TagBase inet::IPrintableObject

Public Member Functions

 MacProtocolInd ()
 
 MacProtocolInd (const MacProtocolInd &other)
 
virtual ~MacProtocolInd ()
 
MacProtocolIndoperator= (const MacProtocolInd &other)
 
virtual MacProtocolInddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual const ChunkPtrgetMacProtocolHeader () const
 
virtual ChunkPtrgetMacProtocolHeaderForUpdate ()
 
virtual void setMacProtocolHeader (const ChunkPtr &macProtocolHeader)
 
- Public Member Functions inherited from inet::ProtocolTagBase
 ProtocolTagBase ()
 
 ProtocolTagBase (const ProtocolTagBase &other)
 
virtual ~ProtocolTagBase ()
 
ProtocolTagBaseoperator= (const ProtocolTagBase &other)
 
virtual const ProtocolfindProtocol () const
 
virtual void setProtocol (const Protocol *protocol)
 
const ProtocolgetProtocol () const
 
- Public Member Functions inherited from inet::TagBase
virtual const Ptr< TagBasedupShared () const
 
virtual const Ptr< TagBasechangeRegion (b offsetDelta, b lengthDelta) const
 
virtual void parsimPack (cCommBuffer *buffer) const override
 
virtual void parsimUnpack (cCommBuffer *buffer) override
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags) const override
 Prints this object to the provided output stream. More...
 
virtual std::ostream & printFieldsToStream (std::ostream &stream, int level, int evFlags) const
 
virtual std::string str () const override
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Member Functions

bool operator== (const MacProtocolInd &)=delete
 
- Protected Member Functions inherited from inet::ProtocolTagBase
bool operator== (const ProtocolTagBase &)=delete
 

Protected Attributes

ChunkPtr macProtocolHeader
 
- Protected Attributes inherited from inet::ProtocolTagBase
const Protocolprotocol = nullptr
 

Private Member Functions

void copy (const MacProtocolInd &other)
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 

Detailed Description

Class generated from inet/common/ProtocolTag.msg:216 by opp_msgtool.

//
// This indication specifies the mac protocol that was used to receive the
// packet. It may be present from the mac protocol to the application.
//
class MacProtocolInd extends ProtocolTagBase
{
    ChunkPtr macProtocolHeader;
}

Constructor & Destructor Documentation

◆ MacProtocolInd() [1/2]

inet::MacProtocolInd::MacProtocolInd ( )

◆ MacProtocolInd() [2/2]

inet::MacProtocolInd::MacProtocolInd ( const MacProtocolInd other)

◆ ~MacProtocolInd()

virtual inet::MacProtocolInd::~MacProtocolInd ( )
virtual

Member Function Documentation

◆ copy()

void inet::MacProtocolInd::copy ( const MacProtocolInd other)
private

◆ dup()

virtual MacProtocolInd* inet::MacProtocolInd::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::ProtocolTagBase.

653 {return new MacProtocolInd(*this);}

◆ getMacProtocolHeader()

virtual const ChunkPtr& inet::MacProtocolInd::getMacProtocolHeader ( ) const
virtual

◆ getMacProtocolHeaderForUpdate()

virtual ChunkPtr& inet::MacProtocolInd::getMacProtocolHeaderForUpdate ( )
inlinevirtual
658 { return const_cast<ChunkPtr&>(const_cast<MacProtocolInd*>(this)->getMacProtocolHeader());}

◆ operator=()

MacProtocolInd& inet::MacProtocolInd::operator= ( const MacProtocolInd other)

◆ operator==()

bool inet::MacProtocolInd::operator== ( const MacProtocolInd )
protecteddelete

◆ parsimPack()

virtual void inet::MacProtocolInd::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::ProtocolTagBase.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::ProtocolTagBase.

Referenced by inet::doParsimUnpacking().

◆ setMacProtocolHeader()

virtual void inet::MacProtocolInd::setMacProtocolHeader ( const ChunkPtr macProtocolHeader)
virtual

Member Data Documentation

◆ macProtocolHeader

ChunkPtr inet::MacProtocolInd::macProtocolHeader
protected

The documentation for this class was generated from the following file:
inet::ChunkPtr
Ptr< const Chunk > ChunkPtr
Definition: ProtocolTag_m.h:61
inet::MacProtocolInd::MacProtocolInd
MacProtocolInd()
inet::MacProtocolInd::getMacProtocolHeader
virtual const ChunkPtr & getMacProtocolHeader() const