|
| Link () |
| Create an empty Link object. More...
|
|
| Link (const Block &wire, bool wantSort=true) |
| Decode a Link object from a Block. More...
|
|
| Link (const Name &name, std::initializer_list< Delegation > dels={}) |
| Create a Link object with the given name and delegations. More...
|
|
void | addDelegation (uint32_t preference, const Name &name) |
| Add a delegation in the format of <Name, Preference> More...
|
|
uint64_t | getCongestionMark () const |
| get the value of the CongestionMark tag More...
|
|
const Block & | getContent () const |
| Get Content. More...
|
|
uint32_t | getContentType () const |
|
const DelegationList & | getDelegationList () const |
| Get the delegations. More...
|
|
const optional< name::Component > & | getFinalBlock () const |
|
time::milliseconds | getFreshnessPeriod () const |
|
const Name & | getFullName () const |
| Get full name including implicit digest. More...
|
|
const MetaInfo & | getMetaInfo () const |
| Get MetaInfo. More...
|
|
const Name & | getName () const |
| Get name. More...
|
|
const Signature & | getSignature () const |
| Get Signature. More...
|
|
template<typename T > |
shared_ptr< T > | getTag () const |
| get a tag item More...
|
|
bool | hasWire () const |
| Check if this instance has cached wire encoding. More...
|
|
bool | removeDelegation (const Name &name) |
| Remove a delegation whose name is name . More...
|
|
template<typename T > |
void | removeTag () const |
| remove tag item More...
|
|
void | setCongestionMark (uint64_t mark) |
| set the CongestionMark tag to the specified value More...
|
|
Data & | setContent (const Block &block) |
| Set Content from a block. More...
|
|
Data & | setContent (const uint8_t *value, size_t valueSize) |
| Copy Content value from raw buffer. More...
|
|
Data & | setContent (ConstBufferPtr value) |
| Set Content from wire buffer. More...
|
|
Data & | setContentType (uint32_t type) |
|
void | setDelegationList (const DelegationList &dels) |
| Set the delegations. More...
|
|
Data & | setFinalBlock (optional< name::Component > finalBlockId) |
|
Data & | setFreshnessPeriod (time::milliseconds freshnessPeriod) |
|
Data & | setMetaInfo (const MetaInfo &metaInfo) |
| Set MetaInfo. More...
|
|
Data & | setName (const Name &name) |
| Set name. More...
|
|
Data & | setSignature (const Signature &signature) |
| Set Signature. More...
|
|
Data & | setSignatureValue (const Block &value) |
| Set SignatureValue. More...
|
|
template<typename T > |
void | setTag (shared_ptr< T > tag) const |
| set a tag item More...
|
|
void | wireDecode (const Block &wire, bool wantSort=true) |
| Decode from the wire format. More...
|
|
void | wireDecode (const Block &wire) |
| Decode from wire in NDN Packet Format v0.2 or v0.3. More...
|
|
template<encoding::Tag TAG> |
size_t | wireEncode (EncodingImpl< TAG > &encoder, bool wantUnsignedPortionOnly=false) const |
| Prepend wire encoding to encoder in NDN Packet Format v0.2. More...
|
|
const Block & | wireEncode (EncodingBuffer &encoder, const Block &signatureValue) const |
| Finalize Data packet encoding with the specified SignatureValue. More...
|
|
const Block & | wireEncode () const |
| Encode to a Block . More...
|
|