A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{packet-test-suite.cc}::ATestTagBase Class Reference

Base class for Test tags. More...

+ Inheritance diagram for anonymous_namespace{packet-test-suite.cc}::ATestTagBase:
+ Collaboration diagram for anonymous_namespace{packet-test-suite.cc}::ATestTagBase:

Public Member Functions

 ATestTagBase ()
 
 ATestTagBase (uint8_t data)
 Constructor.
 
int GetData () const
 Get the tag data.
 
- Public Member Functions inherited from ns3::Tag
virtual void Deserialize (TagBuffer i)=0
 
virtual uint32_t GetSerializedSize () const =0
 
virtual void Print (std::ostream &os) const =0
 
virtual void Serialize (TagBuffer i) const =0
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
virtual TypeId GetInstanceTypeId () const =0
 Get the most derived TypeId for this Object.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Register this type.
 
- Static Public Member Functions inherited from ns3::Tag
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Public Attributes

uint8_t m_data
 Tag data.
 
bool m_error
 Error in the Tag.
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Detailed Description

Base class for Test tags.

Note
Class internal to packet-test-suite.cc

Definition at line 46 of file packet-test-suite.cc.

Constructor & Destructor Documentation

◆ ATestTagBase() [1/2]

anonymous_namespace{packet-test-suite.cc}::ATestTagBase::ATestTagBase ( )
inline

Definition at line 49 of file packet-test-suite.cc.

◆ ATestTagBase() [2/2]

anonymous_namespace{packet-test-suite.cc}::ATestTagBase::ATestTagBase ( uint8_t  data)
inline

Constructor.

Parameters
dataTag data

Definition at line 57 of file packet-test-suite.cc.

Member Function Documentation

◆ GetData()

int anonymous_namespace{packet-test-suite.cc}::ATestTagBase::GetData ( ) const
inline

Get the tag data.

Returns
the tag data.

Definition at line 78 of file packet-test-suite.cc.

Referenced by PacketTagListTest::CheckRef(), PacketTest::DoCheckData(), and PacketTest::DoRun().

+ Here is the caller graph for this function:

◆ GetTypeId()

static TypeId anonymous_namespace{packet-test-suite.cc}::ATestTagBase::GetTypeId ( )
inlinestatic

Register this type.

Returns
The TypeId.

Definition at line 67 of file packet-test-suite.cc.

References ns3::TypeId::SetParent().

Referenced by PacketTagListTest::CheckRef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_data

uint8_t anonymous_namespace{packet-test-suite.cc}::ATestTagBase::m_data

Tag data.

Definition at line 85 of file packet-test-suite.cc.

◆ m_error

bool anonymous_namespace{packet-test-suite.cc}::ATestTagBase::m_error

Error in the Tag.

Definition at line 84 of file packet-test-suite.cc.

Referenced by PacketTest::DoCheck(), and PacketTest::DoCheckData().


The documentation for this class was generated from the following file: