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

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

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

Public Member Functions

 HistoryTrailerBase ()
 
bool IsOk () const
 Checks if the header has deserialization errors.
 
- Public Member Functions inherited from ns3::Trailer
 ~Trailer () override
 
uint32_t Deserialize (Buffer::Iterator end) override=0
 
uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end) override
 
virtual uint32_t GetSerializedSize () const =0
 
void Print (std::ostream &os) const override=0
 
virtual void Serialize (Buffer::Iterator start) const =0
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator.
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
virtual void Print (std::ostream &os) const =0
 Print the object contents.
 
- 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 ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Trailer
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Protected Member Functions

void ReportError ()
 Signal that an error has been found in deserialization.
 
- 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.
 

Private Attributes

bool m_ok
 True if no error is signalled.
 

Additional Inherited Members

Detailed Description

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

Note
Class internal to packet-metadata-test.cc

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

Constructor & Destructor Documentation

◆ HistoryTrailerBase()

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

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

Member Function Documentation

◆ GetTypeId()

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

Get the type ID.

Returns
The object TypeId.

Definition at line 209 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}::HistoryTrailerBase::IsOk ( ) const

Checks if the header has deserialization errors.

Returns
True if no error found.

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

References m_ok.

◆ ReportError()

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

Signal that an error has been found in deserialization.

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

References m_ok.

Member Data Documentation

◆ m_ok

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

True if no error is signalled.

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

Referenced by IsOk(), and ReportError().


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