Class implementing Pending Interests Table. More...
#include <ndn-pit.h>
Public Member Functions | |
Pit () | |
PIT constructor. | |
virtual | ~Pit () |
Destructor. | |
virtual Ptr< pit::Entry > | Lookup (const Data &header)=0 |
Find corresponding PIT entry for the given content name. More... | |
virtual Ptr< pit::Entry > | Lookup (const Interest &header)=0 |
Find a PIT entry for the given content interest. More... | |
virtual Ptr< pit::Entry > | Find (const Name &prefix)=0 |
Get PIT entry for the prefix (exact match) More... | |
virtual Ptr< pit::Entry > | Create (Ptr< const Interest > header)=0 |
Creates a PIT entry for the given interest. More... | |
virtual void | MarkErased (Ptr< pit::Entry > entry)=0 |
Mark PIT entry deleted. More... | |
virtual void | Print (std::ostream &os) const =0 |
Print out PIT contents for debugging purposes. More... | |
virtual uint32_t | GetSize () const =0 |
Get number of entries in PIT. | |
virtual Ptr< pit::Entry > | Begin ()=0 |
Return first element of FIB (no order guaranteed) | |
virtual Ptr< pit::Entry > | End ()=0 |
Return item next after last (no order guaranteed) | |
virtual Ptr< pit::Entry > | Next (Ptr< pit::Entry >)=0 |
Advance the iterator. | |
const Time & | GetMaxPitEntryLifetime () const |
Get maximum PIT entry lifetime. | |
void | SetMaxPitEntryLifetime (const Time &maxLifetime) |
Set maximum PIT entry lifetime. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Interface ID. More... | |
static Ptr< Pit > | GetPit (Ptr< Object > node) |
Static call to cheat python bindings. | |
Protected Attributes | |
Time | m_PitEntryPruningTimout |
Time | m_maxPitEntryLifetime |
Class implementing Pending Interests Table.
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
|
pure virtual |
Creates a PIT entry for the given interest.
header | parsed interest header |
Note. This call assumes that the entry does not exist (i.e., there was a Lookup call before)
Implemented in ns3::ndn::pit::PitImpl< Policy >, ns3::ndn::pit::PitImpl< persistent_policy_traits >, ns3::ndn::pit::PitImpl< serialized_size_policy_traits >, ns3::ndn::pit::PitImpl< random_policy_traits >, and ns3::ndn::pit::PitImpl< lru_policy_traits >.
|
pure virtual |
Get PIT entry for the prefix (exact match)
prefix | Name for PIT entry |
Implemented in ns3::ndn::pit::PitImpl< Policy >, ns3::ndn::pit::PitImpl< persistent_policy_traits >, ns3::ndn::pit::PitImpl< serialized_size_policy_traits >, ns3::ndn::pit::PitImpl< random_policy_traits >, and ns3::ndn::pit::PitImpl< lru_policy_traits >.
|
static |
Interface ID.
Definition at line 43 of file ndn-pit.cc.
References GetMaxPitEntryLifetime(), and SetMaxPitEntryLifetime().
|
pure virtual |
Find corresponding PIT entry for the given content name.
Not that this call should be repeated enough times until it return 0. This way all records with shorter or equal prefix as in content object will be found and satisfied.
prefix | Prefix for which to lookup the entry |
Implemented in ns3::ndn::pit::PitImpl< Policy >, ns3::ndn::pit::PitImpl< persistent_policy_traits >, ns3::ndn::pit::PitImpl< serialized_size_policy_traits >, ns3::ndn::pit::PitImpl< random_policy_traits >, and ns3::ndn::pit::PitImpl< lru_policy_traits >.
|
pure virtual |
Find a PIT entry for the given content interest.
header | parsed interest header |
Implemented in ns3::ndn::pit::PitImpl< Policy >, ns3::ndn::pit::PitImpl< persistent_policy_traits >, ns3::ndn::pit::PitImpl< serialized_size_policy_traits >, ns3::ndn::pit::PitImpl< random_policy_traits >, and ns3::ndn::pit::PitImpl< lru_policy_traits >.
|
pure virtual |
Mark PIT entry deleted.
entry | PIT entry |
Effectively, this method removes all incoming/outgoing faces and set lifetime +m_PitEntryDefaultLifetime from Now ()
|
pure virtual |
Print out PIT contents for debugging purposes.
Note that there is no definite order in which entries are printed out
Implemented in ns3::ndn::pit::PitImpl< Policy >, ns3::ndn::pit::PitImpl< persistent_policy_traits >, ns3::ndn::pit::PitImpl< serialized_size_policy_traits >, ns3::ndn::pit::PitImpl< random_policy_traits >, and ns3::ndn::pit::PitImpl< lru_policy_traits >.