|
| Link () |
| Create a Link with default values and where the list of delegations is empty and the meta info type is LINK.
|
|
| Link (const Name &name) |
| Create a Link with the given name and default values and where the list of delegations is empty and the meta info type is LINK. More...
|
|
| Link (const Data &data) |
| Create a Link, copying values from the other Data object. More...
|
|
virtual void | wireDecode (const Blob &input, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) |
| Override to call the base class wireDecode then populate the list of delegations from the content. More...
|
|
Link & | addDelegation (int preference, const Name &name, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) |
| Add a new delegation to the list of delegations, sorted by preference number then by name. More...
|
|
bool | removeDelegation (const Name &name, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) |
| Remove every delegation with the given name. More...
|
|
const DelegationSet & | getDelegations () const |
| Get the list of delegation for read only. More...
|
|
| Data () |
| Create a new Data object with default values and where the signature is a blank Sha256WithRsaSignature.
|
|
| Data (const Name &name) |
| Create a new Data object with the given name and default values and where the signature is a blank Sha256WithRsaSignature. More...
|
|
| Data (const Data &data) |
| The copy constructor: Create a deep copy of the given data object, including a clone of the signature object. More...
|
|
virtual | ~Data () |
| The virtual destructor.
|
|
Data & | operator= (const Data &data) |
| The assignment operator: Copy fields and make a clone of the signature. More...
|
|
SignedBlob | wireEncode (WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) const |
| Encode this Data for a particular wire format. More...
|
|
void | wireDecode (const uint8_t *input, size_t inputLength, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) |
| Decode the input using a particular wire format and update this Data. More...
|
|
void | wireDecode (const std::vector< uint8_t > &input, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat()) |
| Decode the input using a particular wire format and update this Data. More...
|
|
void | get (DataLite &dataLite) const |
| Set dataLite to point to the values in this Data object, without copying any memory. More...
|
|
void | set (const DataLite &dataLite) |
| Clear this data object, and set the values by copying from dataLite. More...
|
|
const Signature * | getSignature () const |
|
Signature * | getSignature () |
|
const Name & | getName () const |
|
Name & | getName () |
|
const MetaInfo & | getMetaInfo () const |
|
MetaInfo & | getMetaInfo () |
|
const Blob & | getContent () const |
|
uint64_t | getIncomingFaceId () const |
| Get the incoming face ID according to the incoming packet header. More...
|
|
const SignedBlob & | getDefaultWireEncoding () const |
| Return a reference to the defaultWireEncoding, which was encoded with getDefaultWireEncodingFormat(). More...
|
|
WireFormat * | getDefaultWireEncodingFormat () const |
| Get the WireFormat which is used by getDefaultWireEncoding(). More...
|
|
Data & | setSignature (const Signature &signature) |
| Set the signature to a copy of the given signature. More...
|
|
virtual Data & | setName (const Name &name) |
| Set name to a copy of the given Name. More...
|
|
Data & | setMetaInfo (const MetaInfo &metaInfo) |
| Set metaInfo to a copy of the given MetaInfo. More...
|
|
Data & | setContent (const std::vector< uint8_t > &content) |
| Set the content to a copy of the data in the vector. More...
|
|
Data & | setContent (const uint8_t *content, size_t contentLength) |
|
Data & | setContent (const Blob &content) |
|
Data & | setLpPacket (const ptr_lib::shared_ptr< LpPacket > &lpPacket) |
| An internal library method to set the LpPacket for an incoming packet. More...
|
|
uint64_t | getChangeCount () const |
| Get the change count, which is incremented each time this object (or a child object) is changed. More...
|
|
The Link class extends Data and represents a Link instance where the Data content is an encoded delegation set.
The format is defined in "link.pdf" attached to Redmine issue http://redmine.named-data.net/issues/2587 .