nlsr::RoutingTablePoolEntry Class Reference

#include <routing-table-pool-entry.hpp>

+ Inheritance diagram for nlsr::RoutingTablePoolEntry:
+ Collaboration diagram for nlsr::RoutingTablePoolEntry:

Public Types

using Error = ndn::tlv::Error
 

Public Member Functions

 RoutingTablePoolEntry ()=default
 
 RoutingTablePoolEntry (const ndn::Name &dest)
 
 RoutingTablePoolEntry (const ndn::Name &dest, uint64_t useCount)
 
 RoutingTablePoolEntry (RoutingTableEntry &rte, uint64_t useCount)
 
uint64_t decrementUseCount ()
 
const ndn::Name & getDestination () const
 
NexthopListgetNexthopList ()
 
const NexthopListgetNexthopList () const
 
uint64_t getUseCount () const
 
uint64_t incrementUseCount ()
 
bool operator== (RoutingTableEntry &rhs)
 
void setNexthopList (NexthopList nhl)
 
void wireDecode (const ndn::Block &wire)
 
const ndn::Block & wireEncode () const
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 

Public Attributes

std::unordered_map< ndn::Name, std::weak_ptr< NamePrefixTableEntry > > namePrefixTableEntries
 

Protected Attributes

ndn::Name m_destination
 
NexthopList m_nexthopList
 
ndn::Block m_wire
 

Detailed Description

Definition at line 48 of file routing-table-pool-entry.hpp.

Member Typedef Documentation

◆ Error

using nlsr::RoutingTableEntry::Error = ndn::tlv::Error
inherited

Definition at line 44 of file routing-table-entry.hpp.

Constructor & Destructor Documentation

◆ RoutingTablePoolEntry() [1/4]

nlsr::RoutingTablePoolEntry::RoutingTablePoolEntry ( )
default

◆ RoutingTablePoolEntry() [2/4]

nlsr::RoutingTablePoolEntry::RoutingTablePoolEntry ( const ndn::Name &  dest)
inline

Definition at line 53 of file routing-table-pool-entry.hpp.

◆ RoutingTablePoolEntry() [3/4]

nlsr::RoutingTablePoolEntry::RoutingTablePoolEntry ( RoutingTableEntry rte,
uint64_t  useCount 
)
inline

Definition at line 59 of file routing-table-pool-entry.hpp.

◆ RoutingTablePoolEntry() [4/4]

nlsr::RoutingTablePoolEntry::RoutingTablePoolEntry ( const ndn::Name &  dest,
uint64_t  useCount 
)
inline

Definition at line 66 of file routing-table-pool-entry.hpp.

Member Function Documentation

◆ decrementUseCount()

uint64_t nlsr::RoutingTablePoolEntry::decrementUseCount ( )
inline

Definition at line 85 of file routing-table-pool-entry.hpp.

◆ getDestination()

const ndn::Name& nlsr::RoutingTableEntry::getDestination ( ) const
inlineinherited

Definition at line 59 of file routing-table-entry.hpp.

◆ getNexthopList() [1/2]

NexthopList& nlsr::RoutingTableEntry::getNexthopList ( )
inlineinherited

Definition at line 65 of file routing-table-entry.hpp.

◆ getNexthopList() [2/2]

const NexthopList& nlsr::RoutingTableEntry::getNexthopList ( ) const
inlineinherited

Definition at line 71 of file routing-table-entry.hpp.

◆ getUseCount()

uint64_t nlsr::RoutingTablePoolEntry::getUseCount ( ) const
inline

Definition at line 73 of file routing-table-pool-entry.hpp.

◆ incrementUseCount()

uint64_t nlsr::RoutingTablePoolEntry::incrementUseCount ( )
inline

Definition at line 79 of file routing-table-pool-entry.hpp.

◆ operator==()

bool nlsr::RoutingTableEntry::operator== ( RoutingTableEntry rhs)
inlineinherited

Definition at line 77 of file routing-table-entry.hpp.

◆ setNexthopList()

void nlsr::RoutingTablePoolEntry::setNexthopList ( NexthopList  nhl)
inline

Definition at line 94 of file routing-table-pool-entry.hpp.

◆ wireDecode()

void nlsr::RoutingTableEntry::wireDecode ( const ndn::Block &  wire)
inherited

Definition at line 66 of file routing-table-entry.cpp.

◆ wireEncode() [1/2]

const ndn::Block & nlsr::RoutingTableEntry::wireEncode ( ) const
inherited

Definition at line 48 of file routing-table-entry.cpp.

◆ wireEncode() [2/2]

template<ndn::encoding::Tag TAG>
size_t nlsr::RoutingTableEntry::wireEncode ( ndn::EncodingImpl< TAG > &  block) const
inherited

Definition at line 29 of file routing-table-entry.cpp.

Member Data Documentation

◆ m_destination

ndn::Name nlsr::RoutingTableEntry::m_destination
protectedinherited

Definition at line 94 of file routing-table-entry.hpp.

◆ m_nexthopList

NexthopList nlsr::RoutingTableEntry::m_nexthopList
protectedinherited

Definition at line 95 of file routing-table-entry.hpp.

◆ m_wire

ndn::Block nlsr::RoutingTableEntry::m_wire
mutableprotectedinherited

Definition at line 97 of file routing-table-entry.hpp.

◆ namePrefixTableEntries

std::unordered_map<ndn::Name, std::weak_ptr<NamePrefixTableEntry> > nlsr::RoutingTablePoolEntry::namePrefixTableEntries

Definition at line 100 of file routing-table-pool-entry.hpp.