60 Link(
const Block& wire,
bool wantSort =
true);
72 Link(
const Name& name, std::initializer_list<Delegation> dels = {});
120 #endif // NDN_LINK_HPP void addDelegation(uint32_t preference, const Name &name)
Add a delegation in the format of <Name, Preference>
const DelegationList & getDelegationList() const
Get the delegations.
void wireDecode(const Block &wire, bool wantSort=true)
Decode from the wire format.
Represents a TLV element of NDN packet format.
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.
Error(const char *expectedType, uint32_t actualType)