INET Framework for OMNeT++/OMNEST
inet::Request Class Reference

#include <Message.h>

Inheritance diagram for inet::Request:
inet::Message inet::IPrintableObject inet::ITaggedObject

Public Member Functions

 Request (const char *name="Req", short kind=0)
 
 Request (const Request &other)
 
virtual Requestdup () const override
 
- Public Member Functions inherited from inet::Message
virtual SharingTagSetgetTags () override
 Returns all tags. More...
 
int getNumTags () const
 Returns the number of message tags. More...
 
const Ptr< const TagBasegetTag (int index) const
 Returns the message tag at the given index. More...
 
void clearTags ()
 Clears the set of message tags. More...
 
void copyTags (const Message &source)
 Copies the set of message tags from the other message. More...
 
template<typename T >
const Ptr< const TfindTag () const
 Returns the message tag for the provided type or returns nullptr if no such message tag is found. More...
 
template<typename T >
const Ptr< TfindTagForUpdate ()
 Returns the message tag for the provided type or returns nullptr if no such message tag is found. More...
 
template<typename T >
const Ptr< const TgetTag () const
 Returns the message tag for the provided type or throws an exception if no such message tag is found. More...
 
template<typename T >
const Ptr< TgetTagForUpdate ()
 Returns the message tag for the provided type or throws an exception if no such message tag is found. More...
 
template<typename T >
const Ptr< TaddTag ()
 Returns a newly added message tag for the provided type, or throws an exception if such a message tag is already present. More...
 
template<typename T >
const Ptr< TaddTagIfAbsent ()
 Returns a newly added message tag for the provided type if absent, or returns the message tag that is already present. More...
 
template<typename T >
const Ptr< TremoveTag ()
 Removes the message tag for the provided type, or throws an exception if no such message tag is found. More...
 
template<typename T >
const Ptr< TremoveTagIfPresent ()
 Removes the message tag for the provided type if present, or returns nullptr if no such message tag is found. More...
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
 Message (const char *name=nullptr, short kind=0)
 
 Message (const Message &other)
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 
- Protected Member Functions inherited from inet::Message
const TagBase_getTag (int index)
 
- Protected Attributes inherited from inet::Message
SharingTagSet tags
 

Constructor & Destructor Documentation

◆ Request() [1/2]

inet::Request::Request ( const char *  name = "Req",
short  kind = 0 
)
explicit
37  :
38  Message(name, kind)
39 {
40 }

◆ Request() [2/2]

inet::Request::Request ( const Request other)
42  :
43  Message(other)
44 {
45 }

Member Function Documentation

◆ dup()

virtual Request* inet::Request::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::Message.

141 { return new Request(*this); }

The documentation for this class was generated from the following files:
inet::Message::Message
Message(const char *name=nullptr, short kind=0)
Definition: Message.cc:14
kind
removed DscpReq kind
Definition: IUdp-gates.txt:12
inet::Request::Request
Request(const char *name="Req", short kind=0)
Definition: Message.cc:37