|
INET Framework for OMNeT++/OMNEST
|
#include <Message.h>
◆ Message() [1/2]
| inet::Message::Message |
( |
const char * |
name = nullptr, |
|
|
short |
kind = 0 |
|
) |
| |
|
explicit |
◆ Message() [2/2]
| inet::Message::Message |
( |
const Message & |
other | ) |
|
◆ _getTag()
| const TagBase* inet::Message::_getTag |
( |
int |
index | ) |
|
|
inlineprotected |
◆ addTag()
template<typename T >
| const Ptr<T> inet::Message::addTag |
( |
| ) |
|
|
inline |
Returns a newly added message tag for the provided type, or throws an exception if such a message tag is already present.
Referenced by inet::SctpSocket::abort(), inet::SctpSocket::accept(), inet::SctpSocket::acceptSocket(), inet::SctpSocket::close(), inet::SctpSocket::connect(), inet::SctpSocket::destroy(), inet::sctp::SctpAssociation::generateSendQueueAbatedIndication(), inet::SctpSocket::getSocketOptions(), inet::NetPerfMeter::handleMessage(), inet::SctpNatServer::handleMessage(), inet::SctpServer::handleMessage(), inet::SctpPeer::handleMessage(), inet::SctpNatPeer::handleMessage(), inet::SctpNatServer::handleTimer(), inet::SctpServer::handleTimer(), inet::SctpPeer::handleTimer(), inet::SctpNatPeer::handleTimer(), inet::SctpSocket::listen(), inet::SctpServer::makeAbortNotification(), inet::SctpServer::makeDefaultReceive(), inet::sctp::SctpAssociation::pathStatusIndication(), inet::SctpSocket::requestStatus(), inet::sctp::SctpAssociation::sendAvailableIndicationToApp(), inet::sctp::SctpAssociation::sendDataArrivedNotification(), inet::sctp::SctpAssociation::sendEstabIndicationToApp(), inet::sctp::SctpAssociation::sendIndicationToApp(), inet::SctpNatServer::sendInfo(), inet::SctpClient::sendQueueRequest(), inet::SctpPeer::sendQueueRequest(), inet::SctpNatPeer::sendQueueRequest(), inet::NetPerfMeter::sendSCTPQueueRequest(), inet::SctpClient::sendStreamResetNotification(), inet::SctpClient::setPrimaryPath(), inet::SctpSocket::setRtoInfo(), inet::SctpSocket::setStreamPriority(), inet::SctpSocket::shutdown(), inet::SctpClient::shutdownReceivedArrived(), inet::SctpPeer::shutdownReceivedArrived(), inet::SctpNatPeer::shutdownReceivedArrived(), and inet::SctpNatPeer::socketEstablished().
◆ addTagIfAbsent()
template<typename T >
| const Ptr<T> inet::Message::addTagIfAbsent |
( |
| ) |
|
|
inline |
◆ clearTags()
| void inet::Message::clearTags |
( |
| ) |
|
|
inline |
Clears the set of message tags.
◆ copyTags()
| void inet::Message::copyTags |
( |
const Message & |
source | ) |
|
|
inline |
Copies the set of message tags from the other message.
◆ dup()
| virtual Message* inet::Message::dup |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ findTag()
template<typename T >
| const Ptr<const T> inet::Message::findTag |
( |
| ) |
const |
|
inline |
◆ findTagForUpdate()
template<typename T >
| const Ptr<T> inet::Message::findTagForUpdate |
( |
| ) |
|
|
inline |
Returns the message tag for the provided type or returns nullptr if no such message tag is found.
◆ getNumTags()
| int inet::Message::getNumTags |
( |
| ) |
const |
|
inline |
Returns the number of message tags.
◆ getTag() [1/2]
template<typename T >
| const Ptr<const T> inet::Message::getTag |
( |
| ) |
const |
|
inline |
Returns the message tag for the provided type or throws an exception if no such message tag is found.
◆ getTag() [2/2]
| const Ptr<const TagBase> inet::Message::getTag |
( |
int |
index | ) |
const |
|
inline |
Returns the message tag at the given index.
Referenced by inet::EthernetSocketCommandProcessor::handleCommand(), inet::Ieee8022LlcSocketCommandProcessor::handleCommand(), inet::Ieee8021qSocketCommandProcessor::handleCommand(), inet::NextHopForwarding::handleCommand(), inet::NetPerfMeter::handleMessage(), inet::SctpNatServer::handleMessage(), inet::SctpServer::handleMessage(), inet::SctpPeer::handleMessage(), inet::SctpNatPeer::handleMessage(), inet::Ipv4Encap::handleRequest(), inet::Ipv6::handleRequest(), inet::Ipv4::handleRequest(), inet::NetworkProtocolBase::handleUpperCommand(), inet::Ieee8022Llc::processCommandFromHigherLayer(), and inet::EthernetEncapsulation::processCommandFromHigherLayer().
◆ getTagForUpdate()
template<typename T >
| const Ptr<T> inet::Message::getTagForUpdate |
( |
| ) |
|
|
inline |
Returns the message tag for the provided type or throws an exception if no such message tag is found.
◆ getTags()
◆ printToStream()
| std::ostream & inet::Message::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
27 std::string className = getClassName();
28 auto index = className.rfind(
"::");
29 if (index != std::string::npos)
30 className = className.substr(index + 2);
◆ removeTag()
template<typename T >
| const Ptr<T> inet::Message::removeTag |
( |
| ) |
|
|
inline |
Removes the message tag for the provided type, or throws an exception if no such message tag is found.
◆ removeTagIfPresent()
template<typename T >
| const Ptr<T> inet::Message::removeTagIfPresent |
( |
| ) |
|
|
inline |
◆ MessageDescriptor
| friend class MessageDescriptor |
|
friend |
◆ tags
The documentation for this class was generated from the following files:
Message(const char *name=nullptr, short kind=0)
Definition: Message.cc:14
compose< Wb, pow< m, -2 > > T
Definition: Units.h:951
void copyTags(const SharingTagSet &other)
Copies the set of tags from the other set.
Definition: SharingTagSet.h:191
@ PRINT_LEVEL_DETAIL
Definition: IPrintableObject.h:24
const Ptr< const T > findTag() const
Returns the shared tag of the provided type, or returns nullptr if no such tag is present.
Definition: SharingTagSet.h:203
#define EV_FAINT
Definition: INETDefs.h:104
const Ptr< TagBase > removeTag(int index)
Definition: SharingTagSet.cc:35
const Ptr< const TagBase > & getTag(int index) const
Returns the shared tag at the given index.
Definition: SharingTagSet.h:169
SharingTagSet tags
Definition: Message.h:22
const Ptr< T > removeTagIfPresent()
Removes the tag of the provided type if present and returns it for update, or returns nullptr if no s...
Definition: SharingTagSet.h:275
removed DscpReq kind
Definition: IUdp-gates.txt:12
const Ptr< TagBase > getTagForUpdate(int index)
Returns the exclusively owned tag at the given index for update.
Definition: SharingTagSet.h:174
#define EV_ITALIC
Definition: INETDefs.h:105
#define EV_NORMAL
Definition: INETDefs.h:102
void addTag(const Ptr< const TagBase > &tag)
Definition: SharingTagSet.cc:28
const Ptr< T > addTagIfAbsent()
Returns a newly added exclusively owned tag of the provided type if absent, or returns the exclusivel...
Definition: SharingTagSet.h:251
void clearTags()
Clears the set of tags.
Definition: SharingTagSet.h:183
int getNumTags() const
Returns the number of tags.
Definition: SharingTagSet.h:159
const Ptr< T > findTagForUpdate()
Returns the exclusively owned tag of the provided type for update, or returns nullptr if no such tag ...
Definition: SharingTagSet.h:211