22 #ifndef NLSR_TLV_COORDINATE_LSA_HPP 23 #define NLSR_TLV_COORDINATE_LSA_HPP 27 #include <ndn-cxx/util/time.hpp> 28 #include <ndn-cxx/encoding/block.hpp> 29 #include <ndn-cxx/encoding/encoding-buffer.hpp> 30 #include <ndn-cxx/encoding/tlv.hpp> 31 #include <ndn-cxx/name.hpp> 81 return m_hyperbolicRadius;
87 m_hyperbolicRadius = hyperbolicRadius;
92 const std::vector<double>
95 return m_hyperbolicAngle;
101 m_hyperbolicAngle = hyperbolicAngle;
115 template<ndn::encoding::Tag TAG>
117 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
138 double m_hyperbolicRadius;
139 std::vector<double> m_hyperbolicAngle;
141 mutable ndn::Block m_wire;
152 #endif // NLSR_TLV_COORDINATE_LSA_HPP Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
CoordinateLsa & setHyperbolicAngle(const std::vector< double > &hyperbolicAngle)
const LsaInfo & getLsaInfo() const
Data abstraction for CoordinateLsa.
CoordinateLsa & setHyperbolicRadius(double hyperbolicRadius)
const ndn::Block & wireEncode() const
Create a TLV encoding of this object.
Error(const std::string &what)
const std::vector< double > getHyperbolicAngle() const
Data abstraction for LsaInfo.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
double getHyperbolicRadius() const
std::ostream & operator<<(std::ostream &os, const AdjacencyLsa &adjacencyLsa)
void wireDecode(const ndn::Block &wire)
Populate this object by decoding the one contained in the given block.
CoordinateLsa & setLsaInfo(const LsaInfo &lsaInfo)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(AdjacencyLsa)