Data abstraction for CoordinateLsa.
More...
#include <coordinate-lsa.hpp>
Data abstraction for CoordinateLsa.
CoordinateLsa := COORDINATE-LSA-TYPE TLV-LENGTH LsaInfo HyperbolicRadius HyperbolicAngle+
- See also
- https://redmine.named-data.net/projects/nlsr/wiki/LSDB_DataSet
Definition at line 46 of file coordinate-lsa.hpp.
nlsr::tlv::CoordinateLsa::CoordinateLsa |
( |
| ) |
|
nlsr::tlv::CoordinateLsa::CoordinateLsa |
( |
const ndn::Block & |
block | ) |
|
|
explicit |
const std::vector<double> nlsr::tlv::CoordinateLsa::getHyperbolicAngle |
( |
| ) |
const |
|
inline |
double nlsr::tlv::CoordinateLsa::getHyperbolicRadius |
( |
| ) |
const |
|
inline |
const LsaInfo& nlsr::tlv::CoordinateLsa::getLsaInfo |
( |
| ) |
const |
|
inline |
CoordinateLsa& nlsr::tlv::CoordinateLsa::setHyperbolicAngle |
( |
const std::vector< double > & |
hyperbolicAngle | ) |
|
|
inline |
CoordinateLsa& nlsr::tlv::CoordinateLsa::setHyperbolicRadius |
( |
double |
hyperbolicRadius | ) |
|
|
inline |
void nlsr::tlv::CoordinateLsa::wireDecode |
( |
const ndn::Block & |
wire | ) |
|
Populate this object by decoding the one contained in the given block.
Definition at line 105 of file coordinate-lsa.cpp.
template<ndn::encoding::Tag TAG>
size_t nlsr::tlv::CoordinateLsa::wireEncode |
( |
ndn::EncodingImpl< TAG > & |
block | ) |
const |
Encodes the hyperbolic coordinates and some info using the method in TAG.
This function will TLV-format the hyperbolic coordinates 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
- CoordinateLsa::wireEncode()
Definition at line 53 of file coordinate-lsa.cpp.
const ndn::Block & nlsr::tlv::CoordinateLsa::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 CoordinateLsa::wireEncode(ndn::EncodingImpl<TAG>&)
Definition at line 87 of file coordinate-lsa.cpp.