Data abstraction for LsdbStatus.
More...
#include <lsdb-status.hpp>
Data abstraction for LsdbStatus.
LsdbStatus := LSDB-STATUS-TYPE TLV-LENGTH AdjacencyLsa* CoordinateLsa* NameLsa*
- See also
- https://redmine.named-data.net/projects/nlsr/wiki/LSDB_DataSet
Definition at line 49 of file lsdb-status.hpp.
nlsr::tlv::LsdbStatus::LsdbStatus |
( |
| ) |
|
nlsr::tlv::LsdbStatus::LsdbStatus |
( |
const ndn::Block & |
block | ) |
|
|
explicit |
LsdbStatus & nlsr::tlv::LsdbStatus::clearAdjacencyLsas |
( |
| ) |
|
LsdbStatus & nlsr::tlv::LsdbStatus::clearCoordinateLsas |
( |
| ) |
|
LsdbStatus & nlsr::tlv::LsdbStatus::clearNameLsas |
( |
| ) |
|
const std::list<AdjacencyLsa>& nlsr::tlv::LsdbStatus::getAdjacencyLsas |
( |
| ) |
const |
|
inline |
const std::list<CoordinateLsa>& nlsr::tlv::LsdbStatus::getCoordinateLsas |
( |
| ) |
const |
|
inline |
const std::list<NameLsa>& nlsr::tlv::LsdbStatus::getNameLsas |
( |
| ) |
const |
|
inline |
bool nlsr::tlv::LsdbStatus::hasAdjacencyLsas |
( |
| ) |
|
|
inline |
bool nlsr::tlv::LsdbStatus::hasCoordinateLsas |
( |
| ) |
|
|
inline |
bool nlsr::tlv::LsdbStatus::hasNameLsas |
( |
| ) |
|
|
inline |
void nlsr::tlv::LsdbStatus::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
Populate this object by decoding the one contained in the given block.
Definition at line 153 of file lsdb-status.cpp.
template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::LsdbStatus::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
Encodes the LSA objects and some info for each LSA using the method in TAG.
This function will TLV-format the LSA objects and some LSA info using the implementation specified 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
- LsdbStatus::wireEncode()
Definition at line 101 of file lsdb-status.cpp.
const ndn::Block & nlsr::tlv::LsdbStatus::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 LsdbStatus::wireEncode(ndn::EncodingImpl<TAG>&)
Definition at line 135 of file lsdb-status.cpp.