64 Link(
const Block& wire,
bool wantSort =
true);
76 Link(
const Name& name, std::initializer_list<Delegation> dels = {});
124 #endif // NDN_LINK_HPP void addDelegation(uint32_t preference, const Name &name)
Add a delegation in the format of <Name, Preference>
Copyright (c) 2013-2017 Regents of the University of California.
void wireDecode(const Block &wire, bool wantSort=true)
Decode from the wire format.
Represents a TLV element of NDN packet format.
Error(const std::string &what)
const DelegationList & getDelegationList() const
Get the delegations.
bool removeDelegation(const Name &name)
Remove a delegation whose name is name.
Represents an absolute name.
Link()
Create an empty Link object.
void setDelegationList(const DelegationList &dels)
Set the delegations.
represents a list of Delegations
Represents a Data packet.