174 std::array<Name, LINK_MAX_DELEGATIONS> delegations_;
175 size_t delegationCount_ = 0;
const Name & name() const
Get the Name (const reference)
Link & setName(const Name &name)
Set the Name.
Error addDelegation(const Name &delegation)
Add a delegation (Name)
const Name * delegation(size_t index) const
Get a delegation by index.
Link()=default
Default constructor.
void clearDelegations()
Clear all delegations.
size_t delegationCount() const
Get the number of delegations.
bool hasDelegation(const Name &name) const
Check if a given Name is in the delegation list.
Error toData(Data &data) const
Convert the Link to a Data packet.
static Result< Link > fromData(const Data &data)
Decode a Link from a Data packet.
Name & name()
Get the Name (reference)
Common definitions for the NDN protocol stack.