Data abstraction for AdjacencyLsa.
More...
#include <adjacency-lsa.hpp>
nlsr::tlv::AdjacencyLsa::AdjacencyLsa |
( |
| ) |
|
nlsr::tlv::AdjacencyLsa::AdjacencyLsa |
( |
const ndn::Block & |
block | ) |
|
|
explicit |
const std::list<Adjacency>& nlsr::tlv::AdjacencyLsa::getAdjacencies |
( |
| ) |
const |
|
inline |
const LsaInfo& nlsr::tlv::AdjacencyLsa::getLsaInfo |
( |
| ) |
const |
|
inline |
bool nlsr::tlv::AdjacencyLsa::hasAdjacencies |
( |
| ) |
const |
|
inline |
void nlsr::tlv::AdjacencyLsa::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
Populate this object by decoding the one contained in the given block.
Definition at line 90 of file adjacency-lsa.cpp.
template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::AdjacencyLsa::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
Encodes the Adjacent objects and some info using the method in TAG.
This function will TLV-format the Adjacent 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
- AdjacencyLsa::wireEncode()
Definition at line 48 of file adjacency-lsa.cpp.
const ndn::Block & nlsr::tlv::AdjacencyLsa::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 AdjacencyLsa::wireEncode(ndn::EncodingImpl<TAG>&)
Definition at line 72 of file adjacency-lsa.cpp.