#include <Signal.h>
◆ Signal() [1/2]
| inet::physicallayer::Signal::Signal |
( |
const char * |
name = nullptr, |
|
|
short |
kind = 0, |
|
|
int64_t |
bitLength = 0 |
|
) |
| |
|
explicit |
21 cPacket(name,
kind, bitLength)
◆ Signal() [2/2]
| inet::physicallayer::Signal::Signal |
( |
const Signal & |
other | ) |
|
◆ dup()
| virtual Signal* inet::physicallayer::Signal::dup |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getFullName()
| const char * inet::physicallayer::Signal::getFullName |
( |
| ) |
const |
|
overridevirtual |
36 if (getRemainingDuration().isZero())
38 else if (getRemainingDuration() == getDuration())
42 static std::set<std::string> pool;
43 std::string fullname = std::string(getName()) + suffix;
44 auto it = pool.insert(fullname).first;
◆ printToStream()
| std::ostream & inet::physicallayer::Signal::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
Reimplemented in inet::physicallayer::WirelessSignal.
51 std::string className = getClassName();
52 auto index = className.rfind(
"::");
53 if (index != std::string::npos)
54 className = className.substr(index + 2);
58 auto packet = check_and_cast<Packet *>(getEncapsulatedPacket());
59 packet->printToStream(stream, level + 1,
evFlags);
◆ str()
| std::string inet::physicallayer::Signal::str |
( |
| ) |
const |
|
overridevirtual |
65 std::stringstream stream;
66 stream <<
"(" <<
simsec(getDuration()) <<
" " <<
b(getBitLength()) <<
")";
67 if (
auto packet = getEncapsulatedPacket())
68 stream <<
" " << packet;
The documentation for this class was generated from the following files: