Data abstraction for NameLsa.
More...
#include <name-lsa.hpp>
|
typedef std::list< ndn::Name > | NameList |
|
typedef NameList::const_iterator | iterator |
|
Data abstraction for NameLsa.
NameLsa := NAME-LSA-TYPE TLV-LENGTH LsaInfo Name+
- See also
- https://redmine.named-data.net/projects/nlsr/wiki/LSDB_DataSet
Definition at line 47 of file name-lsa.hpp.
nlsr::tlv::NameLsa::NameLsa |
( |
| ) |
|
nlsr::tlv::NameLsa::NameLsa |
( |
const ndn::Block & |
block | ) |
|
|
explicit |
NameLsa& nlsr::tlv::NameLsa::addName |
( |
const ndn::Name & |
name | ) |
|
|
inline |
NameLsa& nlsr::tlv::NameLsa::clearNames |
( |
| ) |
|
|
inline |
const LsaInfo& nlsr::tlv::NameLsa::getLsaInfo |
( |
| ) |
const |
|
inline |
const std::list<ndn::Name>& nlsr::tlv::NameLsa::getNames |
( |
| ) |
const |
|
inline |
bool nlsr::tlv::NameLsa::hasNames |
( |
| ) |
const |
|
inline |
void nlsr::tlv::NameLsa::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
Populate this object by decoding the one contained in the given block.
Definition at line 90 of file name-lsa.cpp.
template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::NameLsa::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
Encodes the Name objects and some info using the method in TAG.
This function will TLV-format the Name objects and some LSA info using the implementation speciifed by TAG. Usually this is called with an estimator first to guess how long the buffer needs to be, then with an encoder to do the real work. This process is automated by the other wireEncode.
- See also
- NameLsa::wireEncode()
Definition at line 48 of file name-lsa.cpp.
const ndn::Block & nlsr::tlv::NameLsa::wireEncode |
( |
| ) |
const |
Create a TLV encoding of this object.
Create a block containing the TLV encoding of this object. That involves two steps: estimating the size that the information will take up, and then creating a buffer of that size and encoding the information into it. Both steps are accomplished by NameLsa::wireEncode(ndn::EncodingImpl<TAG>&)
Definition at line 72 of file name-lsa.cpp.