Base class for Test tags. More...
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, bool permissive=false) 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. | |
| Related Symbols inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid () |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
Base class for Test tags.
Definition at line 35 of file packet-test-suite.cc.
|
inline |
Definition at line 38 of file packet-test-suite.cc.
References m_data, and m_error.
Referenced by anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::ATestTag(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::ATestTag(), and anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetTypeId().
|
inline |
|
inline |
Get the tag data.
Definition at line 67 of file packet-test-suite.cc.
References m_data, and result.
Referenced by PacketTagListTest::CheckRef(), PacketTest::DoCheckData(), and PacketTest::DoRun().
Register this type.
Definition at line 56 of file packet-test-suite.cc.
References ns3::TypeId::SetParent().
Referenced by PacketTagListTest::CheckRef().
| uint8_t anonymous_namespace{packet-test-suite.cc}::ATestTagBase::m_data |
Tag data.
Definition at line 74 of file packet-test-suite.cc.
Referenced by ATestTagBase(), ATestTagBase(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::Deserialize(), GetData(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetSerializedSize(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::Print(), and anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::Serialize().
| bool anonymous_namespace{packet-test-suite.cc}::ATestTagBase::m_error |
Error in the Tag.
Definition at line 73 of file packet-test-suite.cc.
Referenced by ATestTagBase(), ATestTagBase(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::Deserialize(), PacketTest::DoCheck(), and PacketTest::DoCheckData().