|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 BOOST_CONCEPT_ASSERT((boost::EqualityComparable<Link>));
30 static_assert(std::is_base_of<Data::Error, Link::Error>::value,
31 "Link::Error should inherit from Data::Error");
52 if (m_delList.
size() > 0) {
uint32_t getContentType() const
size_t size() const noexcept
size_t wireEncode(EncodingImpl< TAG > &encoder, uint32_t type=tlv::ForwardingHint) const
encode into wire format
Data & setContentType(uint32_t type)
void setDelegationList(const DelegationList &dels)
Set the delegations.
const Block & getContent() const
Get Content.
void wireDecode(const Block &wire, bool wantSort=true)
Decode from the wire format.
bool removeDelegation(const Name &name)
Remove a delegation whose name is name.
a concept check for TLV abstraction with .wireDecode method and constructible from Block
EncodingImpl< EstimatorTag > EncodingEstimator
Represents an absolute name.
bool insert(uint64_t preference, const Name &name, InsertConflictResolution onConflict=INS_REPLACE)
insert Delegation
@ ContentType_Link
another name that identifies the actual data content
a concept check for TLV abstraction with .wireEncode method
void wireDecode(const Block &wire)
Decode from wire in NDN Packet Format v0.2 or v0.3.
Data & setContent(const Block &block)
Set Content from a block.
represents a list of Delegations
Represents a Data packet.
@ INS_REPLACE
existing delegation(s) with the same name are replaced with the new delegation
Represents a TLV element of NDN packet format.
std::string to_string(const T &val)
void addDelegation(uint32_t preference, const Name &name)
Add a delegation in the format of <Name, Preference>
Link()
Create an empty Link object.
void wireDecode(const Block &block, bool wantSort=true)
decode a DelegationList
a concept check for TLV abstraction with .wireEncode method
Copyright (c) 2011-2015 Regents of the University of California.
EncodingImpl< EncoderTag > EncodingBuffer
size_t erase(uint64_t preference, const Name &name)
delete Delegation(s) with specified preference and name