#include <TagBase.h>
◆ changeRegion()
| virtual const Ptr<TagBase> inet::TagBase::changeRegion |
( |
b |
offsetDelta, |
|
|
b |
lengthDelta |
|
) |
| const |
|
inlinevirtual |
Reimplemented in inet::IdentityTag.
24 {
return const_cast<TagBase *
>(
this)->shared_from_this(); }
◆ dupShared()
| virtual const Ptr<TagBase> inet::TagBase::dupShared |
( |
| ) |
const |
|
inlinevirtual |
22 {
return Ptr<TagBase>(
static_cast<TagBase *
>(dup())); }
◆ parsimPack()
| virtual void inet::TagBase::parsimPack |
( |
cCommBuffer * |
buffer | ) |
const |
|
inlineoverridevirtual |
◆ parsimUnpack()
| virtual void inet::TagBase::parsimUnpack |
( |
cCommBuffer * |
buffer | ) |
|
|
inlineoverridevirtual |
◆ printFieldsToStream()
| std::ostream & inet::TagBase::printFieldsToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags |
|
) |
| const |
|
virtual |
24 auto descriptor = getDescriptor();
27 for (
int i = 0; i < descriptor->getFieldCount(); i++)
28 if (!descriptor->getFieldIsArray(i) && strcmp(
"omnetpp::cObject", descriptor->getFieldDeclaredOn(i)))
29 stream <<
", " <<
EV_BOLD << descriptor->getFieldName(i) <<
EV_NORMAL <<
" = " << descriptor->getFieldValueAsString(
toAnyPtr(
this), i, 0);
Referenced by printToStream(), and str().
◆ printToStream()
| std::ostream & inet::TagBase::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
14 std::string className = getClassName();
15 auto index = className.rfind(
"::");
16 if (index != std::string::npos)
17 className = className.substr(index + 2);
◆ str()
| std::string inet::TagBase::str |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: