INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:122
by nedtool.
More...
#include <TCPSegment_m.h>
Public Member Functions | |
virtual | ~Sack_Base () |
virtual Sack_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
Public Member Functions inherited from inet::tcp::SackItem | |
SackItem () | |
SackItem (const SackItem &other) | |
virtual | ~SackItem () |
SackItem & | operator= (const SackItem &other) |
virtual unsigned int | getStart () const |
virtual void | setStart (unsigned int start) |
virtual unsigned int | getEnd () const |
virtual void | setEnd (unsigned int end) |
Protected Member Functions | |
bool | operator== (const Sack_Base &) |
Sack_Base () | |
Sack_Base (const Sack_Base &other) | |
Sack_Base & | operator= (const Sack_Base &other) |
Protected Member Functions inherited from inet::tcp::SackItem | |
bool | operator== (const SackItem &) |
Private Member Functions | |
void | copy (const Sack_Base &other) |
Additional Inherited Members | |
Protected Attributes inherited from inet::tcp::SackItem | |
unsigned int | start |
unsigned int | end |
Class generated from inet/transportlayer/tcp_common/TCPSegment.msg:122
by nedtool.
class Sack extends SackItem { @customize(true); }
Sack_Base is only useful if it gets subclassed, and Sack is derived from it. The minimum code to be written for Sack is the following:
class INET_API Sack : public Sack_Base { private: void copy(const Sack& other) { ... }
public: Sack() : Sack_Base() {} Sack(const Sack& other) : Sack_Base(other) {copy(other);} Sack& operator=(const Sack& other) {if (this==&other) return *this; Sack_Base::operator=(other); copy(other); return *this;} virtual Sack *dup() const override {return new Sack(*this);} // ADD CODE HERE to redefine and implement pure virtual functions from Sack_Base };
The following should go into a .cc (.cpp) file:
Register_Class(Sack)
|
protected |
|
protected |
|
virtual |
|
private |
Referenced by inet::tcp::TCPSegment::operator=().
|
inlineoverridevirtual |
Reimplemented from inet::tcp::SackItem.
Reimplemented in inet::tcp::Sack.
Referenced by inet::tcp::Sack::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::tcp::SackItem.
|
overridevirtual |
Reimplemented from inet::tcp::SackItem.