A Discrete-Event Network Simulator
API
anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase Class Reference

Base header-type class to check the proper header concatenation. More...

+ Inheritance diagram for anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase:
+ Collaboration diagram for anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase:

Public Member Functions

 HistoryHeaderBase ()
 
bool IsOk (void) const
 Checks if the header has deserialization errors. More...
 
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
virtual uint32_t GetSerializedSize (void) const =0
 
virtual void Print (std::ostream &os) const =0
 
virtual void Serialize (Buffer::Iterator start) const =0
 
- Public Member Functions inherited from ns3::Chunk
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising erros. More...
 
virtual TypeId GetInstanceTypeId (void) const =0
 Get the most derived TypeId for this Object. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Protected Member Functions

void ReportError (void)
 Signal that an error has been found in deserialization. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes. More...
 
virtual void NotifyConstructionCompleted (void)
 Notifier called once the ObjectBase is fully constructed. More...
 

Private Attributes

bool m_ok
 True if no error is signalled. More...
 

Additional Inherited Members

Detailed Description

Base header-type class to check the proper header concatenation.

Note
Class internal to packet-metadata-test.cc

Definition at line 41 of file packet-metadata-test.cc.

Constructor & Destructor Documentation

◆ HistoryHeaderBase()

anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::HistoryHeaderBase ( )

Definition at line 73 of file packet-metadata-test.cc.

Member Function Documentation

◆ GetTypeId()

TypeId anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::GetTypeId ( void  )
static

Get the type ID.

Returns
The object TypeId.

Definition at line 65 of file packet-metadata-test.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ IsOk()

bool anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::IsOk ( void  ) const

Checks if the header has deserialization errors.

Returns
True if no error found.

Definition at line 79 of file packet-metadata-test.cc.

References m_ok.

◆ ReportError()

void anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::ReportError ( void  )
protected

Signal that an error has been found in deserialization.

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

References m_ok.

Member Data Documentation

◆ m_ok

bool anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::m_ok
private

True if no error is signalled.

Definition at line 61 of file packet-metadata-test.cc.

Referenced by IsOk(), and ReportError().


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