NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::name Namespace Reference

Classes

class  Component
 Represents a name component. More...
 

Functions

static const std::string & getSha256DigestUriPrefix ()
 
static Component parseSha256DigestUri (std::string input)
 
 NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (Component)
 
 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (Component)
 
std::ostream & operator<< (std::ostream &os, const Component &component)
 

Variables

 WireEncodable< Component >
 
 WireEncodableWithEncodingBuffer< Component >
 
 WireDecodable< Component >
 
static const uint8_t SEGMENT_MARKER = 0x00
 Segment marker for NDN naming conventions. More...
 
static const uint8_t SEGMENT_OFFSET_MARKER = 0xFB
 Segment offset marker for NDN naming conventions. More...
 
static const uint8_t VERSION_MARKER = 0xFD
 Version marker for NDN naming conventions. More...
 
static const uint8_t TIMESTAMP_MARKER = 0xFC
 Timestamp marker for NDN naming conventions. More...
 
static const uint8_t SEQUENCE_NUMBER_MARKER = 0xFE
 Sequence number marker for NDN naming conventions. More...
 

Function Documentation

◆ getSha256DigestUriPrefix()

static const std::string& ndn::name::getSha256DigestUriPrefix ( )
static

◆ parseSha256DigestUri()

static Component ndn::name::parseSha256DigestUri ( std::string  input)
static

◆ NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS()

ndn::name::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS ( Component  )

◆ NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS()

ndn::name::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS ( Component  )

◆ operator<<()

std::ostream& ndn::name::operator<< ( std::ostream &  os,
const Component component 
)
inline

Definition at line 591 of file name-component.hpp.

References ndn::name::Component::toUri().

Variable Documentation

◆ WireEncodable< Component >

ndn::name::WireEncodable< Component >

Definition at line 40 of file name-component.cpp.

◆ WireEncodableWithEncodingBuffer< Component >

ndn::name::WireEncodableWithEncodingBuffer< Component >

Definition at line 41 of file name-component.cpp.

◆ WireDecodable< Component >

ndn::name::WireDecodable< Component >

Definition at line 42 of file name-component.cpp.

◆ SEGMENT_MARKER

const uint8_t ndn::name::SEGMENT_MARKER = 0x00
static

Segment marker for NDN naming conventions.

Definition at line 34 of file name-component.hpp.

Referenced by ndn::name::Component::fromSegment(), ndn::name::Component::isSegment(), and ndn::name::Component::toSegment().

◆ SEGMENT_OFFSET_MARKER

const uint8_t ndn::name::SEGMENT_OFFSET_MARKER = 0xFB
static

Segment offset marker for NDN naming conventions.

Definition at line 36 of file name-component.hpp.

Referenced by ndn::name::Component::fromSegmentOffset(), ndn::name::Component::isSegmentOffset(), and ndn::name::Component::toSegmentOffset().

◆ VERSION_MARKER

const uint8_t ndn::name::VERSION_MARKER = 0xFD
static

Version marker for NDN naming conventions.

Definition at line 38 of file name-component.hpp.

Referenced by ndn::name::Component::fromVersion(), ndn::name::Component::isVersion(), and ndn::name::Component::toVersion().

◆ TIMESTAMP_MARKER

const uint8_t ndn::name::TIMESTAMP_MARKER = 0xFC
static

Timestamp marker for NDN naming conventions.

Definition at line 40 of file name-component.hpp.

Referenced by ndn::name::Component::fromTimestamp(), ndn::name::Component::isTimestamp(), and ndn::name::Component::toTimestamp().

◆ SEQUENCE_NUMBER_MARKER

const uint8_t ndn::name::SEQUENCE_NUMBER_MARKER = 0xFE
static

Sequence number marker for NDN naming conventions.

Definition at line 42 of file name-component.hpp.

Referenced by ndn::name::Component::fromSequenceNumber(), ndn::name::Component::isSequenceNumber(), and ndn::name::Component::toSequenceNumber().