Data abstraction for RouteTableInfo. More...
#include <routing-table-entry.hpp>
Data Structures | |
class | Error |
Public Types | |
typedef std::list< NextHop > | HopList |
typedef HopList::const_iterator | const_iterator |
Public Member Functions | |
RoutingTable () | |
RoutingTable (const ndn::Block &block) | |
const Destination & | getDestination () const |
RoutingTable & | setDestination (const Destination &des) |
uint64_t | getRtSize () const |
RoutingTable & | setRtSize (uint64_t size) |
bool | hasNexthops () const |
const std::list< NextHop > & | getNextHops () const |
RoutingTable & | addNexthops (const NextHop &nexthop) |
RoutingTable & | clearNexthops () |
template<ndn::encoding::Tag TAG> | |
size_t | wireEncode (ndn::EncodingImpl< TAG > &block) const |
const ndn::Block & | wireEncode () const |
void | wireDecode (const ndn::Block &wire) |
const_iterator | begin () const |
const_iterator | end () const |
Data abstraction for RouteTableInfo.
RouteTableInfo := ROUTINGTABLE-TYPE TLV-LENGTH Destination NexthopList*
Definition at line 47 of file tlv/routing-table-entry.hpp.
typedef HopList::const_iterator nlsr::tlv::RoutingTable::const_iterator |
Definition at line 61 of file tlv/routing-table-entry.hpp.
typedef std::list<NextHop> nlsr::tlv::RoutingTable::HopList |
Definition at line 60 of file tlv/routing-table-entry.hpp.
nlsr::tlv::RoutingTable::RoutingTable | ( | ) |
Definition at line 36 of file tlv/routing-table-entry.cpp.
|
explicit |
Definition at line 41 of file tlv/routing-table-entry.cpp.
RoutingTable & nlsr::tlv::RoutingTable::addNexthops | ( | const NextHop & | nexthop | ) |
Definition at line 53 of file tlv/routing-table-entry.cpp.
|
inline |
Definition at line 139 of file tlv/routing-table-entry.hpp.
RoutingTable & nlsr::tlv::RoutingTable::clearNexthops | ( | ) |
Definition at line 62 of file tlv/routing-table-entry.cpp.
|
inline |
Definition at line 145 of file tlv/routing-table-entry.hpp.
|
inline |
Definition at line 69 of file tlv/routing-table-entry.hpp.
|
inline |
Definition at line 100 of file tlv/routing-table-entry.hpp.
|
inline |
Definition at line 83 of file tlv/routing-table-entry.hpp.
bool nlsr::tlv::RoutingTable::hasNexthops | ( | ) | const |
Definition at line 47 of file tlv/routing-table-entry.cpp.
|
inline |
Definition at line 75 of file tlv/routing-table-entry.hpp.
|
inline |
Definition at line 89 of file tlv/routing-table-entry.hpp.
void nlsr::tlv::RoutingTable::wireDecode | ( | const ndn::Block & | wire | ) |
Definition at line 109 of file tlv/routing-table-entry.cpp.
size_t nlsr::tlv::RoutingTable::wireEncode | ( | ndn::EncodingImpl< TAG > & | block | ) | const |
Definition at line 71 of file tlv/routing-table-entry.cpp.
const ndn::Block & nlsr::tlv::RoutingTable::wireEncode | ( | ) | const |
Definition at line 91 of file tlv/routing-table-entry.cpp.