NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::PacketHeader< Pkt > Class Template Reference

#include <ndn-header.hpp>

Inheritance diagram for ns3::ndn::PacketHeader< Pkt >:
Collaboration diagram for ns3::ndn::PacketHeader< Pkt >:

Public Member Functions

virtual TypeId GetInstanceTypeId (void) const
 
 PacketHeader ()
 
 PacketHeader (const Pkt &packet)
 
virtual uint32_t GetSerializedSize (void) const
 
virtual void Serialize (ns3::Buffer::Iterator start) const
 
virtual uint32_t Deserialize (ns3::Buffer::Iterator start)
 
virtual void Print (std::ostream &os) const
 
shared_ptr< const Pkt > getPacket ()
 
template<>
ns3::TypeId GetTypeId ()
 
template<>
ns3::TypeId GetTypeId ()
 
template<>
void Print (std::ostream &os) const
 
template<>
void Print (std::ostream &os) const
 

Static Public Member Functions

static ns3::TypeId GetTypeId ()
 

Detailed Description

template<class Pkt>
class ns3::ndn::PacketHeader< Pkt >

Definition at line 31 of file ndn-header.hpp.

Constructor & Destructor Documentation

template<class Pkt >
ns3::ndn::PacketHeader< Pkt >::PacketHeader ( )

Definition at line 66 of file ndn-header.cpp.

template<class Pkt >
ns3::ndn::PacketHeader< Pkt >::PacketHeader ( const Pkt &  packet)

Definition at line 71 of file ndn-header.cpp.

Member Function Documentation

template<class Pkt>
static ns3::TypeId ns3::ndn::PacketHeader< Pkt >::GetTypeId ( )
static
template<class Pkt >
TypeId ns3::ndn::PacketHeader< Pkt >::GetInstanceTypeId ( void  ) const
virtual

Definition at line 60 of file ndn-header.cpp.

template<class Pkt >
uint32_t ns3::ndn::PacketHeader< Pkt >::GetSerializedSize ( void  ) const
virtual

Definition at line 78 of file ndn-header.cpp.

template<class Pkt >
void ns3::ndn::PacketHeader< Pkt >::Serialize ( ns3::Buffer::Iterator  start) const
virtual

Definition at line 85 of file ndn-header.cpp.

template<class Pkt >
uint32_t ns3::ndn::PacketHeader< Pkt >::Deserialize ( ns3::Buffer::Iterator  start)
virtual

Definition at line 118 of file ndn-header.cpp.

References ndn::Block::fromStream().

template<class Pkt>
virtual void ns3::ndn::PacketHeader< Pkt >::Print ( std::ostream &  os) const
virtual
template<class Pkt >
shared_ptr< const Pkt > ns3::ndn::PacketHeader< Pkt >::getPacket ( )

Definition at line 143 of file ndn-header.cpp.

Referenced by ns3::ndn::Convert::FromPacket().

template<>
ns3::TypeId ns3::ndn::PacketHeader< Interest >::GetTypeId ( void  )

Definition at line 33 of file ndn-header.cpp.

template<>
ns3::TypeId ns3::ndn::PacketHeader< Data >::GetTypeId ( void  )

Definition at line 47 of file ndn-header.cpp.

template<>
void ns3::ndn::PacketHeader< Interest >::Print ( std::ostream &  os) const

Definition at line 129 of file ndn-header.cpp.

template<>
void ns3::ndn::PacketHeader< Data >::Print ( std::ostream &  os) const

Definition at line 136 of file ndn-header.cpp.


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