Represents an LSA of hyperbolic coordinates of the origin router. More...
#include <coordinate-lsa.hpp>
Inheritance diagram for nlsr::CoordinateLsa:
Collaboration diagram for nlsr::CoordinateLsa:Public Types | |
| enum class | Type { ADJACENCY , COORDINATE , NAME , BASE } |
Public Member Functions | |
| CoordinateLsa ()=default | |
| CoordinateLsa (const ndn::Block &block) | |
| CoordinateLsa (const ndn::Name &originRouter, uint64_t seqNo, const ndn::time::system_clock::time_point &timepoint, double radius, std::vector< double > angles) | |
| const ndn::time::system_clock::time_point & | getExpirationTimePoint () const |
| const ndn::Name & | getOriginRouter () const |
| double | getRadius () const |
| uint64_t | getSeqNo () const |
| const std::vector< double > & | getTheta () const |
| Lsa::Type | getType () const override |
| void | setExpirationTimePoint (const ndn::time::system_clock::time_point <) |
| void | setExpiringEventId (ndn::scheduler::EventId eid) |
| void | setRadius (double cr) |
| void | setSeqNo (uint64_t seqNo) |
| void | setTheta (std::vector< double > ct) |
| std::tuple< bool, std::list< ndn::Name >, std::list< ndn::Name > > | update (const std::shared_ptr< Lsa > &lsa) override |
| void | wireDecode (const ndn::Block &wire) |
| const ndn::Block & | wireEncode () const override |
| template<ndn::encoding::Tag TAG> | |
| size_t | wireEncode (ndn::EncodingImpl< TAG > &block) const |
Static Public Member Functions | |
| static constexpr Lsa::Type | type () |
Protected Attributes | |
| ndn::time::system_clock::time_point | m_expirationTimePoint |
| ndn::scheduler::ScopedEventId | m_expiringEventId |
| ndn::Name | m_originRouter |
| uint64_t | m_seqNo = 0 |
| ndn::Block | m_wire |
Friends | |
| bool | operator== (const CoordinateLsa &lhs, const CoordinateLsa &rhs) |
Represents an LSA of hyperbolic coordinates of the origin router.
CoordinateLsa is encoded as:
Definition at line 49 of file coordinate-lsa.hpp.
|
stronginherited |
|
default |
| nlsr::CoordinateLsa::CoordinateLsa | ( | const ndn::Name & | originRouter, |
| uint64_t | seqNo, | ||
| const ndn::time::system_clock::time_point & | timepoint, | ||
| double | radius, | ||
| std::vector< double > | angles | ||
| ) |
Definition at line 27 of file coordinate-lsa.cpp.
|
explicit |
Definition at line 36 of file coordinate-lsa.cpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 74 of file coordinate-lsa.hpp.
|
inline |
Definition at line 87 of file coordinate-lsa.hpp.
|
inlineoverridevirtual |
Implements nlsr::Lsa.
Definition at line 62 of file coordinate-lsa.hpp.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 80 of file coordinate-lsa.hpp.
|
inline |
Definition at line 93 of file coordinate-lsa.hpp.
|
inlinestaticconstexpr |
Definition at line 68 of file coordinate-lsa.hpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 133 of file coordinate-lsa.cpp.
| void nlsr::CoordinateLsa::wireDecode | ( | const ndn::Block & | wire | ) |
Definition at line 82 of file coordinate-lsa.cpp.
|
overridevirtual |
Implements nlsr::Lsa.
Definition at line 64 of file coordinate-lsa.cpp.
| size_t nlsr::CoordinateLsa::wireEncode | ( | ndn::EncodingImpl< TAG > & | block | ) | const |
Definition at line 43 of file coordinate-lsa.cpp.
|
friend |
Definition at line 122 of file coordinate-lsa.hpp.
|
protectedinherited |
|
protectedinherited |