22 #ifndef NDN_KEY_LOCATOR_HPP 23 #define NDN_KEY_LOCATOR_HPP 77 template<encoding::Tag TAG>
162 mutable Block m_wire;
172 #endif // NDN_KEY_LOCATOR_HPP
Copyright (c) 2013-2017 Regents of the University of California.
std::ostream & operator<<(std::ostream &os, const Data &data)
KeyLocator & setName(const Name &name)
set Name element
void wireDecode(const Block &wire)
decode from wire encoding
KeyLocator & setKeyDigest(const Block &keyDigest)
set KeyDigest element
Represents a TLV element of NDN packet format.
KeyLocator()
construct an empty KeyLocator
indicates KeyLocator contains a Name
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Error(const std::string &what)
const Name & getName() const
get Name element
const Block & getKeyDigest() const
get KeyDigest element
indicates KeyLocator is empty (internal use only)
Represents an absolute name.
indicates KeyLocator contains an unknown element
KeyLocator & clear()
clear KeyLocator
const Block & wireEncode() const
indicates KeyLocator contains a KeyDigest
bool operator==(const KeyLocator &other) const
bool operator!=(const KeyLocator &other) const
represents an error in TLV encoding or decoding
shared_ptr< const Buffer > ConstBufferPtr