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

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

Constructor & Destructor Documentation

◆ RoutingTablePoolEntry() [1/4]

nlsr::RoutingTablePoolEntry::RoutingTablePoolEntry ( )
inline

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

◆ ~RoutingTablePoolEntry()

nlsr::RoutingTablePoolEntry::~RoutingTablePoolEntry ( )
inline

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

◆ RoutingTablePoolEntry() [2/4]

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

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

◆ RoutingTablePoolEntry() [3/4]

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

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

+ Here is the call graph for this function:

◆ RoutingTablePoolEntry() [4/4]

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

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

Member Function Documentation

◆ decrementUseCount()

uint64_t nlsr::RoutingTablePoolEntry::decrementUseCount ( )
inline

Definition at line 91 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.

+ Here is the caller graph for this function:

◆ getNexthopList() [1/2]

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

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

+ Here is the caller graph for this function:

◆ 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 ( )
inline

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

◆ incrementUseCount()

uint64_t nlsr::RoutingTablePoolEntry::incrementUseCount ( )
inline

Definition at line 85 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.

+ Here is the call graph for this function:

◆ setNexthopList()

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

Definition at line 100 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.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wireEncode() [1/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.

+ Here is the call graph for this function:

◆ wireEncode() [2/2]

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

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

+ Here is the caller graph for this function:

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 107 of file routing-table-pool-entry.hpp.