nlsr::NamePrefixTableEntry Class Reference

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

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

nlsr::NamePrefixTableEntry::NamePrefixTableEntry ( )
inline

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

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

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

Member Function Documentation

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 65 of file name-prefix-table-entry.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Here is the caller graph for this function:

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

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

Here is the call graph for this function:

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

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

Here is the caller graph for this function:

size_t nlsr::NamePrefixTableEntry::getRteListSize ( )
inline

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

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.

Here is the call graph for this function:

Here is the caller graph for this function:

void nlsr::NamePrefixTableEntry::resetRteListNextHop ( )
inline

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

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

void nlsr::NamePrefixTableEntry::writeLog ( )

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

Here is the call graph for this function:

Here is the caller graph for this function: