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

#include <SDU.h>

Inheritance diagram for SDU:
SDU_Base Data Data_Base

Public Member Functions

virtual ~SDU ()
 
 SDU (const char *name=NULL, int kind=0)
 
 SDU (const SDU &other)
 
SDUoperator= (const SDU &other)
 
virtual SDUdup () const
 
unsigned int getSize () const
 
unsigned int getAbsoluteSize () const
 
unsigned int getRestSize () const
 
bool addUserData (cPacket *msg)
 
cPacket * getUserData ()
 
std::vector< SDU * > fragment (unsigned int size)
 
SDUgenFragment (unsigned int size, unsigned int fSeqNum, unsigned int fOffset)
 
void setFragment (unsigned int size, unsigned int fSeqNum, unsigned int fOffset)
 
- Public Member Functions inherited from SDU_Base
virtual ~SDU_Base ()
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b)
 
virtual void setSize (unsigned int size)
 
virtual unsigned int getOffset () const
 
virtual void setOffset (unsigned int offset)
 
virtual unsigned int getFSize () const
 
virtual void setFSize (unsigned int fSize)
 
virtual unsigned int getFOffset () const
 
virtual void setFOffset (unsigned int fOffset)
 
virtual unsigned int getSeqNum () const
 
virtual void setSeqNum (unsigned int seqNum)
 
virtual unsigned int getFSeqNum () const
 
virtual void setFSeqNum (unsigned int fSeqNum)
 
virtual int getFragType () const
 
virtual void setFragType (int fragType)
 
- Public Member Functions inherited from Data
 Data (const char *name=NULL, int kind=0)
 
 Data (const Data &other)
 
Dataoperator= (const Data &other)
 
- Public Member Functions inherited from Data_Base
virtual ~Data_Base ()
 
virtual int getDataType () const
 
virtual void setDataType (int dataType)
 
virtual int64_t getEncapMsgLength () const
 
virtual void setEncapMsgLength (int64_t encapMsgLength)
 

Private Member Functions

void copy (const SDU &other)
 

Private Attributes

mUserDataType mUserData_var
 

Additional Inherited Members

- Protected Member Functions inherited from SDU_Base
bool operator== (const SDU_Base &)
 
 SDU_Base (const char *name=nullptr, int kind=0)
 
 SDU_Base (const SDU_Base &other)
 
SDU_Baseoperator= (const SDU_Base &other)
 
- Protected Member Functions inherited from Data_Base
bool operator== (const Data_Base &)
 
 Data_Base (const char *name=nullptr, int kind=0)
 
 Data_Base (const Data_Base &other)
 
Data_Baseoperator= (const Data_Base &other)
 
- Protected Attributes inherited from SDU_Base
unsigned int size
 
unsigned int offset
 
unsigned int fSize
 
unsigned int fOffset
 
unsigned int seqNum
 
unsigned int fSeqNum
 
int fragType
 
- Protected Attributes inherited from Data_Base
int dataType
 
int64_t encapMsgLength
 

Detailed Description

Definition at line 47 of file SDU.h.

Constructor & Destructor Documentation

SDU::~SDU ( )
virtual

Definition at line 188 of file SDU.cc.

SDU::SDU ( const char *  name = NULL,
int  kind = 0 
)

Definition at line 31 of file SDU.cc.

Referenced by dup(), and genFragment().

SDU::SDU ( const SDU other)

Definition at line 37 of file SDU.cc.

Member Function Documentation

bool SDU::addUserData ( cPacket *  msg)

Definition at line 120 of file SDU.cc.

void SDU::copy ( const SDU other)
private

Definition at line 41 of file SDU.cc.

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

virtual SDU* SDU::dup ( ) const
inlinevirtual

Reimplemented from SDU_Base.

Definition at line 72 of file SDU.h.

Referenced by genFragment().

std::vector< SDU * > SDU::fragment ( unsigned int  size)

Returns SDU Fragments vector of specified size

Definition at line 154 of file SDU.cc.

SDU * SDU::genFragment ( unsigned int  size,
unsigned int  fSeqNum,
unsigned int  fOffset 
)

Definition at line 166 of file SDU.cc.

Referenced by fragment().

unsigned int SDU::getAbsoluteSize ( ) const

Definition at line 71 of file SDU.cc.

unsigned int SDU::getRestSize ( ) const

Definition at line 77 of file SDU.cc.

unsigned int SDU::getSize ( ) const
virtual

Reimplemented from SDU_Base.

Definition at line 55 of file SDU.cc.

cPacket * SDU::getUserData ( )

Definition at line 134 of file SDU.cc.

SDU& SDU::operator= ( const SDU other)
inline

Definition at line 64 of file SDU.h.

void SDU::setFragment ( unsigned int  size,
unsigned int  fSeqNum,
unsigned int  fOffset 
)

Definition at line 174 of file SDU.cc.

Referenced by genFragment().

Member Data Documentation

mUserDataType SDU::mUserData_var
private

Definition at line 54 of file SDU.h.

Referenced by addUserData(), copy(), getUserData(), and ~SDU().


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