RINASim  October 2016
Documentation of framework for OMNeT++
PDU_Base Class Reference

#include <PDU_m.h>

Inheritance diagram for PDU_Base:
PDU ControlPDU DataTransferPDU_Base ManagementPDU ControlAckPDU NAckPDU DataTransferPDU RendezvousPDU AckOnlyPDU FlowControlPDU NackOnlyPDU InfectedDataTransferPDU AckFlowPDU FlowControlOnlyPDU NackFlowPDU SelectiveNAckFlow SelectiveAckFlowPDU SelectiveAckPDU SelectiveNackFlowPDU SelectiveNackPDU

Public Member Functions

virtual ~PDU_Base ()
 
virtual PDU_Basedup () const
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b)
 
virtual const char * getDisplayString () const
 
virtual void setDisplayString (const char *displayString)
 
virtual unsigned int getVersion () const
 
virtual void setVersion (unsigned int version)
 
virtual AddressgetSrcAddr ()
 
virtual const AddressgetSrcAddr () const
 
virtual void setSrcAddr (const Address &srcAddr)
 
virtual AddressgetDstAddr ()
 
virtual const AddressgetDstAddr () const
 
virtual void setDstAddr (const Address &dstAddr)
 
virtual APNgetSrcApn ()
 
virtual const APNgetSrcApn () const
 
virtual void setSrcApn (const APN &srcApn)
 
virtual APNgetDstApn ()
 
virtual const APNgetDstApn () const
 
virtual void setDstApn (const APN &dstApn)
 
virtual ConnectionIdgetConnId ()
 
virtual const ConnectionIdgetConnId () const
 
virtual void setConnId (const ConnectionId &connId)
 
virtual int getType () const
 
virtual void setType (int type)
 
virtual int getFlags () const
 
virtual void setFlags (int flags)
 
virtual unsigned int getPduLen () const
 
virtual void setPduLen (unsigned int pduLen)
 
virtual unsigned int getSeqNum () const
 
virtual void setSeqNum (unsigned int seqNum)
 
virtual unsigned int getHopCount () const
 
virtual void setHopCount (unsigned int hopCount)
 

Protected Member Functions

bool operator== (const PDU_Base &)
 
 PDU_Base (const char *name=nullptr, int kind=0)
 
 PDU_Base (const PDU_Base &other)
 
PDU_Baseoperator= (const PDU_Base &other)
 

Protected Attributes

::omnetpp::opp_string displayString
 
unsigned int version
 
Address srcAddr
 
Address dstAddr
 
APN srcApn
 
APN dstApn
 
ConnectionId connId
 
int type
 
int flags
 
unsigned int pduLen
 
unsigned int seqNum
 
unsigned int hopCount
 

Private Member Functions

void copy (const PDU_Base &other)
 

Detailed Description

Definition at line 172 of file PDU_m.h.

Constructor & Destructor Documentation

PDU_Base::PDU_Base ( const char *  name = nullptr,
int  kind = 0 
)
protected

Definition at line 196 of file PDU_m.cc.

PDU_Base::PDU_Base ( const PDU_Base other)
protected

Definition at line 209 of file PDU_m.cc.

PDU_Base::~PDU_Base ( )
virtual

Definition at line 214 of file PDU_m.cc.

Member Function Documentation

void PDU_Base::copy ( const PDU_Base other)
private

Definition at line 226 of file PDU_m.cc.

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

virtual const ConnectionId& PDU_Base::getConnId ( ) const
inlinevirtual

Definition at line 224 of file PDU_m.h.

Referenced by getConnId().

const char * PDU_Base::getDisplayString ( ) const
virtual

Definition at line 276 of file PDU_m.cc.

Referenced by PDUDescriptor::getFieldValueAsString().

virtual const Address& PDU_Base::getDstAddr ( ) const
inlinevirtual

Definition at line 215 of file PDU_m.h.

Referenced by getDstAddr().

APN & PDU_Base::getDstApn ( )
virtual
virtual const APN& PDU_Base::getDstApn ( ) const
inlinevirtual

Definition at line 221 of file PDU_m.h.

Referenced by getDstApn().

unsigned int PDU_Base::getHopCount ( ) const
virtual
unsigned int PDU_Base::getPduLen ( ) const
virtual

Definition at line 366 of file PDU_m.cc.

Referenced by PDUDescriptor::getFieldValueAsString(), and PDU::getSize().

virtual const Address& PDU_Base::getSrcAddr ( ) const
inlinevirtual

Definition at line 212 of file PDU_m.h.

Referenced by getSrcAddr().

APN & PDU_Base::getSrcApn ( )
virtual
virtual const APN& PDU_Base::getSrcApn ( ) const
inlinevirtual

Definition at line 218 of file PDU_m.h.

Referenced by getSrcApn().

unsigned int PDU_Base::getVersion ( ) const
virtual

Definition at line 286 of file PDU_m.cc.

Referenced by PDUDescriptor::getFieldValueAsString().

PDU_Base & PDU_Base::operator= ( const PDU_Base other)
protected

Definition at line 218 of file PDU_m.cc.

Referenced by PDU::operator=().

bool PDU_Base::operator== ( const PDU_Base )
protected
void PDU_Base::setConnId ( const ConnectionId connId)
virtual
void PDU_Base::setDisplayString ( const char *  displayString)
virtual
void PDU_Base::setDstAddr ( const Address dstAddr)
virtual
void PDU_Base::setDstApn ( const APN dstApn)
virtual
void PDU_Base::setHopCount ( unsigned int  hopCount)
virtual
void PDU_Base::setPduLen ( unsigned int  pduLen)
virtual

Definition at line 371 of file PDU_m.cc.

Referenced by PDUDescriptor::setFieldValueAsString().

void PDU_Base::setSrcAddr ( const Address srcAddr)
virtual
void PDU_Base::setSrcApn ( const APN srcApn)
virtual
void PDU_Base::setVersion ( unsigned int  version)
virtual

Definition at line 291 of file PDU_m.cc.

Referenced by PDUDescriptor::setFieldValueAsString().

Member Data Documentation

ConnectionId PDU_Base::connId
protected

Definition at line 181 of file PDU_m.h.

Referenced by copy(), getConnId(), parsimPack(), parsimUnpack(), and setConnId().

::omnetpp::opp_string PDU_Base::displayString
protected

Definition at line 175 of file PDU_m.h.

Referenced by copy(), getDisplayString(), parsimPack(), parsimUnpack(), and setDisplayString().

Address PDU_Base::dstAddr
protected

Definition at line 178 of file PDU_m.h.

Referenced by copy(), getDstAddr(), parsimPack(), parsimUnpack(), and setDstAddr().

APN PDU_Base::dstApn
protected

Definition at line 180 of file PDU_m.h.

Referenced by copy(), getDstApn(), parsimPack(), parsimUnpack(), and setDstApn().

int PDU_Base::flags
protected

Definition at line 183 of file PDU_m.h.

Referenced by copy(), getFlags(), parsimPack(), parsimUnpack(), PDU_Base(), and setFlags().

unsigned int PDU_Base::hopCount
protected

Definition at line 186 of file PDU_m.h.

Referenced by copy(), getHopCount(), parsimPack(), parsimUnpack(), PDU_Base(), and setHopCount().

unsigned int PDU_Base::pduLen
protected

Definition at line 184 of file PDU_m.h.

Referenced by copy(), getPduLen(), parsimPack(), parsimUnpack(), PDU_Base(), and setPduLen().

unsigned int PDU_Base::seqNum
protected

Definition at line 185 of file PDU_m.h.

Referenced by copy(), getSeqNum(), parsimPack(), parsimUnpack(), PDU_Base(), and setSeqNum().

Address PDU_Base::srcAddr
protected

Definition at line 177 of file PDU_m.h.

Referenced by copy(), getSrcAddr(), parsimPack(), parsimUnpack(), and setSrcAddr().

APN PDU_Base::srcApn
protected

Definition at line 179 of file PDU_m.h.

Referenced by copy(), getSrcApn(), parsimPack(), parsimUnpack(), and setSrcApn().

int PDU_Base::type
protected

Definition at line 182 of file PDU_m.h.

Referenced by copy(), getType(), parsimPack(), parsimUnpack(), PDU_Base(), and setType().

unsigned int PDU_Base::version
protected

Definition at line 176 of file PDU_m.h.

Referenced by copy(), getVersion(), parsimPack(), parsimUnpack(), PDU_Base(), and setVersion().


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