#include <PIMPacket.h>
inet::PIMHello::PIMHello |
( |
const char * |
name = nullptr , |
|
|
int |
kind = 0 |
|
) |
| |
unsigned int options_arraysize
Definition: PIMPacket.h:29
virtual void setType(short type)
PIMHello_Base(const char *name=nullptr, short kind=0)
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
Definition: PIMPacket_m.h:62
inet::PIMHello::PIMHello |
( |
const PIMHello & |
other | ) |
|
unsigned int options_arraysize
Definition: PIMPacket.h:29
PIMHello_Base(const char *name=nullptr, short kind=0)
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
void copy(const PIMHello &other)
Definition: PIMPacket.cc:57
inet::PIMHello::~PIMHello |
( |
| ) |
|
|
virtual |
unsigned int options_arraysize
Definition: PIMPacket.h:29
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
void inet::PIMHello::copy |
( |
const PIMHello & |
other | ) |
|
|
private |
Referenced by operator=(), and PIMHello().
64 options_arraysize = other.options_arraysize;
unsigned int options_arraysize
Definition: PIMPacket.h:29
HelloOption * HelloOptionPtr
Definition: PIMPacket_m.h:302
virtual HelloOption * dup() const override
Definition: PIMPacket_m.h:124
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
virtual PIMHello* inet::PIMHello::dup |
( |
| ) |
const |
|
inlineoverridevirtual |
Reimplemented from inet::PIMHello_Base.
PIMHello(const char *name=nullptr, int kind=0)
Definition: PIMPacket.cc:24
virtual const HelloOptionPtr& inet::PIMHello::getOptions |
( |
unsigned int |
k | ) |
const |
|
inlineoverridevirtual |
Reimplemented from inet::PIMHello_Base.
Referenced by getOptions().
virtual HelloOptionPtr & getOptions(unsigned int k) override
Definition: PIMPacket.cc:147
PIMHello(const char *name=nullptr, int kind=0)
Definition: PIMPacket.cc:24
const double k
Definition: QAM16Modulation.cc:24
unsigned int inet::PIMHello::getOptionsArraySize |
( |
| ) |
const |
|
overridevirtual |
PIMPacket & operator=(const PIMPacket &other)
void copy(const PIMHello &other)
Definition: PIMPacket.cc:57
bool inet::PIMHello::operator== |
( |
const PIMHello & |
| ) |
|
|
protected |
void inet::PIMHello::parsimPack |
( |
cCommBuffer * |
b | ) |
const |
|
overridevirtual |
unsigned int options_arraysize
Definition: PIMPacket.h:29
virtual short getType() const
void doParsimPacking(omnetpp::cCommBuffer *b, const ApplicationPacket &obj)
Definition: ApplicationPacket_m.h:71
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
virtual void parsimPack(omnetpp::cCommBuffer *b) const override
value< double, units::m > b
Definition: Units.h:1054
void inet::PIMHello::parsimUnpack |
( |
cCommBuffer * |
b | ) |
|
|
overridevirtual |
89 b->unpack(options_arraysize);
90 if (options_arraysize == 0) {
122 throw cRuntimeError(
"PIMHello::parsimUnpack(): unknown option type: %sd.", type);
unsigned int options_arraysize
Definition: PIMPacket.h:29
HelloOption * HelloOptionPtr
Definition: PIMPacket_m.h:302
virtual void parsimUnpack(omnetpp::cCommBuffer *b) override
void doParsimUnpacking(omnetpp::cCommBuffer *b, ApplicationPacket &obj)
Definition: ApplicationPacket_m.h:72
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
Definition: PIMPacket_m.h:90
Definition: PIMPacket_m.h:91
Definition: PIMPacket_m.h:92
short type
Definition: PIMPacket_m.h:397
Definition: PIMPacket_m.h:93
value< double, units::m > b
Definition: Units.h:1054
void inet::PIMHello::setOptions |
( |
unsigned int |
k, |
|
|
const HelloOptionPtr & |
options |
|
) |
| |
|
overridevirtual |
void inet::PIMHello::setOptionsArraySize |
( |
unsigned int |
size | ) |
|
|
overridevirtual |
Implements inet::PIMHello_Base.
Referenced by inet::PIMBase::sendHelloPacket().
133 for (
unsigned int i = 0; i < size; i++)
137 options_arraysize = size;
unsigned int options_arraysize
Definition: PIMPacket.h:29
HelloOption * HelloOptionPtr
Definition: PIMPacket_m.h:302
HelloOptionPtr * options_var
Definition: PIMPacket.h:28
unsigned int inet::PIMHello::options_arraysize |
|
protected |
The documentation for this class was generated from the following files: