NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ns3::ndn::FwHopCountTag Class Reference

Packet tag that is used to track hop count for Interest-Data pairs. More...

#include <ndn-fw-hop-count-tag.hpp>

Inheritance diagram for ns3::ndn::FwHopCountTag:
Collaboration diagram for ns3::ndn::FwHopCountTag:

Public Member Functions

 FwHopCountTag ()
 Default constructor. More...
 
 ~FwHopCountTag ()
 Destructor. More...
 
void Increment ()
 Increment hop count. More...
 
uint32_t Get () const
 Get value of hop count. More...
 
virtual TypeId GetInstanceTypeId () const
 
virtual uint32_t GetSerializedSize () const
 
virtual void Serialize (TagBuffer i) const
 
virtual void Deserialize (TagBuffer i)
 
virtual void Print (std::ostream &os) const
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Detailed Description

Packet tag that is used to track hop count for Interest-Data pairs.

Definition at line 32 of file ndn-fw-hop-count-tag.hpp.

Constructor & Destructor Documentation

ns3::ndn::FwHopCountTag::FwHopCountTag ( )
inline

Default constructor.

Definition at line 40 of file ndn-fw-hop-count-tag.hpp.

ns3::ndn::FwHopCountTag::~FwHopCountTag ( )
inline

Destructor.

Definition at line 46 of file ndn-fw-hop-count-tag.hpp.

Member Function Documentation

void ns3::ndn::FwHopCountTag::Deserialize ( TagBuffer  i)
virtual

Definition at line 52 of file ndn-fw-hop-count-tag.cpp.

uint32_t ns3::ndn::FwHopCountTag::Get ( void  ) const
inline

Get value of hop count.

Definition at line 63 of file ndn-fw-hop-count-tag.hpp.

Referenced by ns3::ndn::Consumer::OnData().

TypeId ns3::ndn::FwHopCountTag::GetInstanceTypeId ( void  ) const
virtual

Definition at line 34 of file ndn-fw-hop-count-tag.cpp.

References GetTypeId().

uint32_t ns3::ndn::FwHopCountTag::GetSerializedSize ( void  ) const
virtual

Definition at line 40 of file ndn-fw-hop-count-tag.cpp.

TypeId ns3::ndn::FwHopCountTag::GetTypeId ( void  )
static

Definition at line 26 of file ndn-fw-hop-count-tag.cpp.

Referenced by GetInstanceTypeId().

void ns3::ndn::FwHopCountTag::Increment ( )
inline

Increment hop count.

Definition at line 54 of file ndn-fw-hop-count-tag.hpp.

void ns3::ndn::FwHopCountTag::Print ( std::ostream &  os) const
virtual

Definition at line 58 of file ndn-fw-hop-count-tag.cpp.

void ns3::ndn::FwHopCountTag::Serialize ( TagBuffer  i) const
virtual

Definition at line 46 of file ndn-fw-hop-count-tag.cpp.


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