Loading...
Searching...
No Matches
nlsr::NamePrefixTableEntry Class Reference

#include <name-prefix-table-entry.hpp>

Public Member Functions

 NamePrefixTableEntry ()
 
 NamePrefixTableEntry (const ndn::Name &namePrefix, uint64_t routeFlags)
 
void addRoutingTableEntry (std::shared_ptr< RoutingTablePoolEntry > rtpePtr)
 Adds a routing entry to this NPT entry.
 
void generateNhlfromRteList ()
 Collect all next-hops that are advertised by this entry's routing entries.
 
uint64_t getFlags () const
 
const ndn::Name & getNamePrefix () const
 
const NexthopListgetNexthopList () const
 
NexthopListgetNexthopListForModification ()
 
const std::list< std::shared_ptr< RoutingTablePoolEntry > > & getRteList () const
 
size_t getRteListSize ()
 
uint64_t removeRoutingTableEntry (std::shared_ptr< RoutingTablePoolEntry > rtpePtr)
 Removes a routing entry from this NPT entry.
 
void resetRteListNextHop ()
 Resets the next hop lists of all routing table entries that advertise this name prefix.
 
void setFlags (uint64_t flags)
 
void writeLog ()
 

Detailed Description

Definition at line 34 of file name-prefix-table-entry.hpp.

Constructor & Destructor Documentation

◆ NamePrefixTableEntry() [1/2]

nlsr::NamePrefixTableEntry::NamePrefixTableEntry ( )
inline

Definition at line 37 of file name-prefix-table-entry.hpp.

◆ NamePrefixTableEntry() [2/2]

nlsr::NamePrefixTableEntry::NamePrefixTableEntry ( const ndn::Name &  namePrefix,
uint64_t  routeFlags 
)
inline

Definition at line 41 of file name-prefix-table-entry.hpp.

Member Function Documentation

◆ addRoutingTableEntry()

void nlsr::NamePrefixTableEntry::addRoutingTableEntry ( std::shared_ptr< RoutingTablePoolEntry rtpePtr)

Adds a routing entry to this NPT entry.

Parameters
rtpePtrThe routing entry.

Adds a routing table pool entry to this NPT entry's list (reminder: each RTPE has a next-hop list). They are used to calculate this entry's overall next-hop list.

Definition at line 64 of file name-prefix-table-entry.cpp.

◆ generateNhlfromRteList()

void nlsr::NamePrefixTableEntry::generateNhlfromRteList ( )

Collect all next-hops that are advertised by this entry's routing entries.

Definition at line 33 of file name-prefix-table-entry.cpp.

◆ getFlags()

uint64_t nlsr::NamePrefixTableEntry::getFlags ( ) const
inline

Definition at line 98 of file name-prefix-table-entry.hpp.

◆ getNamePrefix()

const ndn::Name & nlsr::NamePrefixTableEntry::getNamePrefix ( ) const
inline

Definition at line 49 of file name-prefix-table-entry.hpp.

◆ getNexthopList()

const NexthopList & nlsr::NamePrefixTableEntry::getNexthopList ( ) const
inline

Definition at line 80 of file name-prefix-table-entry.hpp.

◆ getNexthopListForModification()

NexthopList & nlsr::NamePrefixTableEntry::getNexthopListForModification ( )
inline

Definition at line 86 of file name-prefix-table-entry.hpp.

◆ getRteList()

const std::list< std::shared_ptr< RoutingTablePoolEntry > > & nlsr::NamePrefixTableEntry::getRteList ( ) const
inline

Definition at line 55 of file name-prefix-table-entry.hpp.

◆ getRteListSize()

size_t nlsr::NamePrefixTableEntry::getRteListSize ( )
inline

Definition at line 74 of file name-prefix-table-entry.hpp.

◆ removeRoutingTableEntry()

uint64_t nlsr::NamePrefixTableEntry::removeRoutingTableEntry ( std::shared_ptr< RoutingTablePoolEntry rtpePtr)

Removes a routing entry from this NPT entry.

Returns
The number of NPTs using the just-removed routing entry.

Definition at line 46 of file name-prefix-table-entry.cpp.

◆ resetRteListNextHop()

void nlsr::NamePrefixTableEntry::resetRteListNextHop ( )
inline

Resets the next hop lists of all routing table entries that advertise this name prefix.

Definition at line 64 of file name-prefix-table-entry.hpp.

◆ setFlags()

void nlsr::NamePrefixTableEntry::setFlags ( uint64_t  flags)
inline

Definition at line 92 of file name-prefix-table-entry.hpp.

◆ writeLog()

void nlsr::NamePrefixTableEntry::writeLog ( )